Quantcast
Channel: Active questions tagged mount+fstab - Ask Ubuntu
Viewing all articles
Browse latest Browse all 699

new internal drive can't mount as user on ubuntu 22.04

$
0
0

if I add an internal drive either pcie or sata (both are SSD's), GPT or MBR with only EXT4 partitions (home directory : one partition per drive, contains only data) it will not mount automatically and if i double-click on them from "other places" they will be mounted as root, so I won't be able to write inside them

but if I plug an external USB drive, it will automatically be mounted as user and will be writable, as I should expect

I also tried to put the entry (mainly copied and adapted from /etc/mtab) in fstab, but this results in an unrecoverable error at boot

# 4TB GPT table + EXT4 partition, NVMe SSD drivePARTUUID=ff13e777-ec6b-47bb-9d1d-58f988808097 /media/aly/homepart ext4 rw,nosuid,nodev,relatime,user-id=1000,gid=1000,noatime,errors=remount-ro 0 1# 2TB MBR table + EXT4 partition, SATA SSD driveUUID=838ba5da-7d28-4592-9009-6ee6ed0da2cb /media/aly/home ext4 rw,nosuid,nodev,relatime,uid=1000,gid=1000,noatime,errors=remount-ro 0 1

NB : the 2TB SATA drive is my old home which I need to copy into my new 4TB NVME drive. Then I plan to mount the latter in /home from fstab

What am I doing wrong ?

More details with /var/log/syslog :

mounting external USB drive (plugging the USB cable) :

Jul 15 18:27:19 aly-G752VSK kernel: [ 6685.859701] usb 2-2: new SuperSpeed USB device number 3 using xhci_hcdJul 15 18:27:19 aly-G752VSK kernel: [ 6685.880597] usb 2-2: New USB device found, idVendor=0bc2, idProduct=61b7, bcdDevice= 0.00Jul 15 18:27:19 aly-G752VSK kernel: [ 6685.880613] usb 2-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1Jul 15 18:27:19 aly-G752VSK kernel: [ 6685.880620] usb 2-2: Product: M3 PortableJul 15 18:27:19 aly-G752VSK kernel: [ 6685.880626] usb 2-2: Manufacturer: SeagateJul 15 18:27:19 aly-G752VSK kernel: [ 6685.880631] usb 2-2: SerialNumber: NM16BRTAJul 15 18:27:19 aly-G752VSK kernel: [ 6685.896040] scsi host4: uasJul 15 18:27:19 aly-G752VSK kernel: [ 6685.896948] scsi 4:0:0:0: Direct-Access     Seagate  M3 Portable      9300 PQ: 0 ANSI: 6Jul 15 18:27:19 aly-G752VSK kernel: [ 6685.899078] sd 4:0:0:0: Attached scsi generic sg2 type 0Jul 15 18:27:19 aly-G752VSK kernel: [ 6685.899533] sd 4:0:0:0: [sdb] Spinning up disk...Jul 15 18:27:19 aly-G752VSK mtp-probe: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2"Jul 15 18:27:19 aly-G752VSK mtp-probe: bus: 2, device: 3 was not an MTP deviceJul 15 18:27:19 aly-G752VSK mtp-probe: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2"Jul 15 18:27:19 aly-G752VSK mtp-probe: bus: 2, device: 3 was not an MTP deviceJul 15 18:27:27 aly-G752VSK rtkit-daemon[944]: Supervising 8 threads of 6 processes of 1 users.Jul 15 18:27:28 aly-G752VSK kernel: [ 6686.911601] .........readyJul 15 18:27:28 aly-G752VSK kernel: [ 6695.103738] sd 4:0:0:0: [sdb] 7814037167 512-byte logical blocks: (4.00 TB/3.64 TiB)Jul 15 18:27:28 aly-G752VSK kernel: [ 6695.526628] sd 4:0:0:0: [sdb] Write Protect is offJul 15 18:27:28 aly-G752VSK kernel: [ 6695.526632] sd 4:0:0:0: [sdb] Mode Sense: 4f 00 00 00Jul 15 18:27:28 aly-G752VSK kernel: [ 6695.526785] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUAJul 15 18:27:28 aly-G752VSK kernel: [ 6695.526946] sd 4:0:0:0: [sdb] Preferred minimum I/O size 512 bytesJul 15 18:27:28 aly-G752VSK kernel: [ 6695.526948] sd 4:0:0:0: [sdb] Optimal transfer size 33553920 bytesJul 15 18:27:29 aly-G752VSK kernel: [ 6695.607896]  sdb: sdb1Jul 15 18:27:29 aly-G752VSK kernel: [ 6695.608271] sd 4:0:0:0: [sdb] Attached SCSI diskJul 15 18:27:30 aly-G752VSK kernel: [ 6696.593558] EXT4-fs (sdb1): recovery completeJul 15 18:27:27 aly-G752VSK rtkit-daemon[944]: Supervising 8 threads of 6 processes of 1 users.Jul 15 18:27:30 aly-G752VSK udisksd[687]: Mounted /dev/sdb1 at /media/aly/4TB on behalf of uid 1000Jul 15 18:27:30 aly-G752VSK kernel: [ 6696.641512] EXT4-fs (sdb1): mounted filesystem 4cb6a057-c346-450a-9992-f10aa36e1cd4 r/w with ordered data mode. Quota mode: none.Jul 15 18:27:30 aly-G752VSK dbus-daemon[606]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.183' (uid=1000 pid=33355 comm="/usr/bin/nautilus --gapplication-service " label="unconfined")Jul 15 18:27:30 aly-G752VSK systemd[1]: Starting Hostname Service...Jul 15 18:27:30 aly-G752VSK dbus-daemon[606]: [system] Successfully activated service 'org.freedesktop.hostname1'Jul 15 18:27:30 aly-G752VSK systemd[1]: Started Hostname Service.

unmounting external USB drive (unplugging the USB cable) :

Jul 15 18:27:37 aly-G752VSK systemd[1]: media-aly-4TB.mount: Deactivated successfully.Jul 15 18:27:37 aly-G752VSK kernel: [ 6704.366792] EXT4-fs (sdb1): unmounting filesystem 4cb6a057-c346-450a-9992-f10aa36e1cd4.Jul 15 18:27:37 aly-G752VSK udisksd[687]: Cleaning up mount point /media/aly/4TB (device 8:17 is not mounted)Jul 15 18:27:38 aly-G752VSK udisksd[687]: Unmounted /dev/sdb1 on behalf of uid 1000

mounting internal SSD drive (clicking 'homepart' on Nautilus) :

Jul 15 18:56:33 aly-G752VSK udisksd[687]: Mounted /dev/nvme0n1p1 at /media/aly/homepart1 on behalf of uid 1000Jul 15 18:56:33 aly-G752VSK kernel: [ 8439.505652] EXT4-fs (nvme0n1p1): mounted filesystem ff13e777-ec6b-47bb-9d1d-58f988808097 r/w with ordered data mode. Quota mode: none.

unmounting internal SSD drive (clicking the unmount arrow) :

Jul 15 18:56:42 aly-G752VSK systemd[1]: media-aly-homepart1.mount: Deactivated successfully.Jul 15 18:56:42 aly-G752VSK kernel: [ 8448.617709] EXT4-fs (nvme0n1p1): unmounting filesystem ff13e777-ec6b-47bb-9d1d-58f988808097.Jul 15 18:56:42 aly-G752VSK udisksd[687]: Cleaning up mount point /media/aly/homepart1 (device 259:1 is not mounted)Jul 15 18:56:42 aly-G752VSK udisksd[687]: Unmounted /dev/nvme0n1p1 on behalf of uid 1000

NB : despite it says mounting r/w it is actually NOT possible to write on this device through Nautilus and I am wondering if there might be a hardware issue with this drive


Viewing all articles
Browse latest Browse all 699

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>