I am trying to add an old home home partition to my fstab. This started in
http://www.pclinuxos.com/forum/index.php/topic,84271.0.html. The partition I need to add is /dev/sda6 but I have been staring at my fstab and the information below but am not quite sure what to use. Do I just use the complete UUID? I'm currently running on Live CD. Can I do it from here? How?
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3263 26210016 83 Linux
/dev/sda2 3264 19457 130078305 5 Extended
/dev/sda5 3264 5835 20659558+ 82 Linux swap / Solaris
/dev/sda6 9259 19457 81923436 83 Linux
/dev/sda7 5836 7789 15695473+ 83 Linux
/dev/sda8 7790 9241 11663158+ 83 Linux
[root@localhost roj]# ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 2010-12-15 11:12 10b0574a-68b8-4db9-944c-dec2acd94234 -> ../../sda6
lrwxrwxrwx 1 root root 10 2010-12-15 11:11 383c46e3-6e5e-470b-b868-b214fb74a990 -> ../../ram0
lrwxrwxrwx 1 root root 10 2010-12-15 11:12 565c5028-8577-45e7-ac4c-8b5a4aa6c929 -> ../../sda7
lrwxrwxrwx 1 root root 10 2010-12-15 11:12 5a8a67dd-cb38-47f0-af45-2a8ed68c2a21 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2010-12-15 11:12 87e98540-06e9-4deb-9c38-e578d643f139 -> ../../sda8
lrwxrwxrwx 1 root root 10 2010-12-15 11:12 ce5c8e16-d689-4702-b8bf-5241d45c3b7e -> ../../sda5
lrwxrwxrwx 1 root root 10 2010-12-15 11:12 f2dce048-1e83-4037-8676-777bfa33a47f -> ../../sda1
I label my partitions, then use the label names in my /etc/fstab, in this manner;
# Entry for /dev/sdc14 :
LABEL=minime2010 / ext4 defaults,noatime 1 1
LABEL=TR5-Documents /home/polack/Documents ext3 rw,user,noauto,exec,noatime 0 0
LABEL=Documents2 /home/polack/Documents2 ext3 rw,user,noauto,exec,noatime 0 0
LABEL=share1 /share1 ext4 rw,user,noauto,exec,noatime 0 0
#LABEL=share7 /share7 ext3 rw,user,noauto,exec,noatime 0 0
LABEL=share9 /share9 ext3 rw,user,auto,exec,noatime 0 0
LABEL=movies /movies ext3 rw,user,auto,exec,noatime 0 0
LABEL=movies2 /movies2 ext3 rw,user,auto,exec,noatime 0 0
#LABEL=TV-1 /tv ext3 rw,user,noauto,exec,noatime 0 0
LABEL=storage00 /zstorage00 ext3 rw,user,noauto,exec,noatime 0 0
LABEL=120backup /zbackup ext3 rw,user,noauto,exec,noatime 0 0
LABEL=boot200 /mnt/boot ext3 rw,user,noauto,exec,noatime 0 0
none /proc proc defaults 0 0
# Entry for /dev/sda2 :
#LABEL=swap200 swap swap sw,pri=3 0 0
# Entry for /dev/sdb2
#LABEL=swap160 swap swap sw,pri=3 0 0
# Entry for /dev/sdc2 :
LABEL=swap1000 swap swap sw,pri=3 0 0
# Entry for /dev/sde2 :
LABEL=swap750 swap swap sw,pri=3 0 0
none /dev/pts devpts mode=0620 0 0
/dev/fd0 /mnt/floppy auto rw,user,noauto,exec 0 0
/dev/sr0 /mnt/cdrom auto ro,user,noauto 0 0
/dev/sr1 /mnt/dvd auto ro,user,noauto 0 0
# none /dev/shm tmpfs defaults 0 0
Note that four entries are currently commented out, as this is the system I recently moved from the other computer, so those partitions are not currently available. When I move the drive back to the other computer, I'll uncomment those entries.
My results from the
blkid command show the partitions currently available.
[root@fatman ~]# blkid/dev/sda1: LABEL="boot1000" UUID="10165aee-8b41-4c52-aa7e-c6b0d6d17eeb" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda2: LABEL="swap1000" UUID="8b44f813-fd45-4f94-b519-28300b4791ad" TYPE="swap"
/dev/sda3: LABEL="TR5" UUID="6ae6cf37-7fd2-4b9c-86dc-f037141745bb" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda5: LABEL="TR5-Documents" UUID="9c1bbdf4-5f3c-4d70-b03a-983504da6c15" TYPE="ext3" SEC_TYPE="ext2"
/dev/sdb1: LABEL="750boot" UUID="985efd35-13a4-4279-8129-0f9552d95ccb" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb2: LABEL="swap750" UUID="0ccd09b0-ebb4-4f78-8c73-632232adf438" TYPE="swap"
/dev/sdb3: LABEL="750pclos" UUID="ace4498d-cd4b-458b-9b0c-853c0679fe70" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb5: LABEL="Documents2" UUID="d9550e51-e2e6-4b48-b382-d491ab0bc1ea" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb6: LABEL="share9" UUID="3abe7220-57d1-40c8-acb3-b8d13585577f" TYPE="ext3" SEC_TYPE="ext2"
/dev/sdb7: LABEL="Documents" UUID="6c984560-d3bc-4ea9-b2ad-62586c662bcf" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda14: LABEL="minime2010" UUID="ab32e99a-5bb8-4360-b75d-e13df5412608" TYPE="ext4"
/dev/sdb8: LABEL="750mm" UUID="b512d57e-3c7a-4226-96ea-98ba93d5d486" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb9: LABEL="movies" UUID="90ae3f6a-46b2-485a-886d-e4c203491907" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb10: LABEL="120backup" UUID="3dff9abc-88c0-47dc-bd2c-f3f991acab69" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb11: LABEL="storage00" UUID="f0320f20-48d5-4ddb-89ed-9da4676aefa4" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda6: LABEL="tmpback" UUID="dcf02721-aca8-494f-8182-cc8ab1df8430" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda7: LABEL="TR6" UUID="36feb97d-2f61-4709-b6f5-8e8d8fee3370" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda8: LABEL="fullmonty" UUID="872d45ed-de83-4e97-88a8-a4c9e48b96c2" TYPE="ext4"
/dev/sda9: LABEL="mmbuild" UUID="003077db-2988-4dcf-9baa-58e1798a4a85" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda10: LABEL="st-backup" UUID="7b1f293e-8deb-49de-adbf-db9173fd2599" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda11: LABEL="os-backups" UUID="3d1692bb-afe0-4648-b5be-d30f1eca32e7" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda12: LABEL="movies2" UUID="fad35a11-5738-401e-88b6-56b78dfeb15a" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda13: LABEL="openbox" UUID="98eedd96-8d4a-4098-aa53-c57f0333ed89" TYPE="ext4"
/dev/sda15: LABEL="kde2010" UUID="f5b15060-9731-4dd8-9250-3d347b883295" TYPE="ext4"
/dev/sda16: LABEL="share1" UUID="89c5580c-24ee-43b0-97cb-a3a5d17f94e4" TYPE="ext4"
Note that
each label must be
unique, just as are the
UUID numbers.