/etc/fstab multiple partitions

Zahid Rahman zahidr1000 at gmail.com
Thu Oct 21 05:38:55 UTC 2021


Hi,

currently my /etc/fstab looks like this  with only one partition   on
disk /dev/sdb    with partition name dev/sdb1

$ cat /etc/fstab
UUID=561191f7-646f-41c9-af8b-89943467f0a9 /media/mydisk ext4 defaults
0 0     # that works fine

$ blkid
/dev/sdb1: UUID="561191f7-646f-41c9-af8b-89943467f0a9"
BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="cc04083d-01"


I want to have three partitions on  disk  /dev/sdb

$ blkid
/dev/sdb1: UUID="94b21266-4164-499e-b863-54e7241e8788"
BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="cc04083d-01"
/dev/sdb2: PARTUUID="cc04083d-02"
/dev/sdb3: PARTUUID="cc04083d-03"


BUT:
/dev/sdb2 and /dev/sdb3 do not have UUID  but  only PARTUUID

what should the entries in  /etc/fstab be for /dev/sdb2 & sdb3  partitions ?



Regards
Zahid


https://www.backbutton.org
¯\_(ツ)_/¯
♡۶♡ ۶♡۶




More information about the ubuntu-users mailing list