February 4, 2024, 21:05
GNU nano 7.2 /etc/fstab proc /proc proc defaults 0 0 PARTUUID=73c67cb4-01 /boot/firmware vfat defaults 0 2 PARTUUID=73c67cb4-02 / ext4 defaults,noatime 0 1 UUID=c6ae76eb-aecd-4614-ac89-3df93cf4b832 /mnt/usb2 auto nofail,uid=1000,gid=1000,noatime 0 0 # a swapfile is not a swap partition, no line here # use dphys-swapfile swap[on|off] for that
Filesystem 1K-blocks Used Available Use% Mounted on /dev/mmcblk0p2 30083620 28157460 635316 98% /
seanz25@raspberrypi:~ $ ls -l /dev/disk/by-uuid total 0 lrwxrwxrwx 1 root root 15 Feb 4 20:55 4aa56689-dcb4-4759-90e6-179beae559ac -> ../../mmcblk0p2 lrwxrwxrwx 1 root root 10 Feb 4 20:55 c6ae76eb-aecd-4614-ac89-3df93cf4b832 -> ../../sda1 lrwxrwxrwx 1 root root 15 Feb 4 20:55 EF6E-C078 -> ../../mmcblk0p1
df /mnt/usb2
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 1 114.6G 0 disk └─sda1 8:1 1 114.6G 0 part mmcblk0 179:0 0 29.7G 0 disk ├─mmcblk0p1 179:1 0 512M 0 part /boot/firmware └─mmcblk0p2 179:2 0 29.2G 0 part /
/dev/mmcblk0p1: LABEL_FATBOOT="bootfs" LABEL="bootfs" UUID="EF6E-C078" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="73c67cb4-01" /dev/mmcblk0p2: LABEL="rootfs" UUID="4aa56689-dcb4-4759-90e6-179beae559ac" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="73c67cb4-02" /dev/sda1: LABEL="usbkey" UUID="c6ae76eb-aecd-4614-ac89-3df93cf4b832" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="3f882e5d-5001-485f-a6b9-4b09b3292272"
etc/fstabtab
tail: cannot open '/var/log/messages' for reading: No such file or directory tail: no files remaining
sudo blkidThat returned:
/dev/sda1: LABEL="usbkey" UUID="c6ae76eb-aecd-4614-ac89-3df93cf4b832" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="3f882e5d-5001-485f-a6b9-4b09b3292272"So I guess in my
/etc/fstabI need to use the PARTUUID number here instead? Should it look like this:
PARTUUID=3f882e5d-5001-485f-a6b9-4b09b3292272 /mnt/usb2 auto nofail,uid=1000,gid=1000,noatime 0 0
seanz25@raspberrypi:~ $ sudo mount -a mount: /mnt/usb2: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error. dmesg(1) may have more information after failed mount system call.
PARTUUID=3f882e5d-5001-485f-a6b9-4b09b3292272 /mnt/usb2 auto nofail,uid=1000,gid=1000,noatime 0 0
proc /proc proc defaults 0 0 PARTUUID=73c67cb4-01 /boot/firmware vfat defaults 0 2 PARTUUID=73c67cb4-02 / ext4 defaults,noatime 0 1 PARTUUID=3f882e5d-5001-485f-a6b9-4b09b3292272 /mnt/usb2 ext4 nofail,uid=1000,gid=1000,noatime 0 0
[48443.763384] ext4: Unknown parameter 'uid' [48472.287851] ext4: Unknown parameter 'uid' [51773.989963] ext4: Unknown parameter 'uid' [51793.836406] ext4: Unknown parameter 'uid'
PARTUUID=447b84b0-01 /mnt/usb1 vfat defaults 0 0 PARTUUID=040D-366E /mnt/usb2 vfat defaults 0 0