[PLUG] Adding Partitions to fstab in Ubuntu

Denis Heidtmann denish at dslnorthwest.net
Sat Sep 20 04:32:45 UTC 2008


Richard C. Steffens wrote:
> Just when you think you learned how to do something, they change things. 
> (Well, they probably changed things a long time ago, but I'm just 
> finding out!)
> 
> I saved a copy of fstab from my old install of SuSE 10.1. I figured I'd 
> just copy parts of it for the new install. SuSE 10.1 used the old 
> familiar hda1, hda2, hdb1, hdb2, etc. Ubuntu uses sda1, etc. So, off to 
> the documentation to see what to do. There I learn that Ubuntu now 
> recommends UUIDs instead of specific device names. The docs provided 
> details on how to compose the lines to be added to fstab. There must be 
> something wrong with the way I followed the instructions because when I 
> restart the system it hangs. I was able to rename the backup copy of 
> fstab and finish rebooting.
> 
> What I'm trying to do is mount the four partitions of my second hard 
> drive at mount-points in my home directory, /home/rsteff. I followed the 
> directions to list the drives by UUID:
> 
> rsteff at moonguide:~$ ls -l /dev/disk/by-uuid/
> total 0
> lrwxrwxrwx 1 root root 10 2008-09-19 18:09 
> 2b235423-d1fe-47c9-afbb-f7bd1a23d686 -> ../../sda3
> lrwxrwxrwx 1 root root 10 2008-09-19 18:09 
> 5ae6428e-d0ab-4f71-8266-11e04a0cb070 -> ../../sdb3
> lrwxrwxrwx 1 root root 10 2008-09-19 18:09 
> 7d18641f-4ba0-4944-bf78-3df10b11b412 -> ../../sda1
> lrwxrwxrwx 1 root root 10 2008-09-19 18:09 
> 802b6c08-f4c4-443a-9f22-5104642b543a -> ../../sdb4
> lrwxrwxrwx 1 root root 10 2008-09-19 18:09 
> 9615a8e5-76f8-4368-b745-b730df45c437 -> ../../sdb2
> lrwxrwxrwx 1 root root 10 2008-09-19 18:09 
> e0410871-bb9b-4967-aa7c-4063a423c153 -> ../../sdb1
> lrwxrwxrwx 1 root root 10 2008-09-19 18:09 
> e0977a64-ba0a-4773-92b7-6d78f34be244 ->
> 
> All the partitions have ext3 file systems on them, and I can mount and 
> read them with the Gnome gui tools.
> 
> I didn't see anything in the documentation about "realtime", but I 
> guessed -- perhaps incorrectly -- that since that's what the other two 
> partitions use, it should work for these four. Likewise for the entries 
> for <dump> and <pass>.
> 
> Here is my fstab with the errant lines:
> 
> -------------------------------------------------------------------------------------------------------------------------------------------------
> # /etc/fstab: static file system information.
> #
> # <file system> <mount point>   <type>  <options>       <dump>  <pass>
> proc            /proc           proc    defaults        0       0
> # /dev/sda2
> UUID=e0977a64-ba0a-4773-92b7-6d78f34be244 /               ext3    
> relatime,errors=remount-ro 0       1
> # /dev/sda3
> UUID=2b235423-d1fe-47c9-afbb-f7bd1a23d686 /home           ext3    
> relatime        0       2
> # /dev/sda1
> UUID=7d18641f-4ba0-4944-bf78-3df10b11b412 none            swap    
> sw              0       0
> /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
> /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
> # /dev/sdb1
> UUID=e0410871-bb9b-4967-aa7c-4063a423c153 /home/music    ext3    
> realtime    0    2
> # /dev/sdb2
> UUID=9615a8e5-76f8-4368-b745-b730df45c437 /home/photos    ext3    
> realtime    0    2
> # /dev/sdb3
> UUID=7d18641f-4ba0-4944-bf78-3df10b11b412 /home/backups    ext3    
> realtime    0    2
> # /dev/sdb4
> UUID=9615a8e5-76f8-4368-b745-b730df45c437 /home/spare    ext3    
> realtime    0    2
> -------------------------------------------------------------------------------------------------------------------------------------------------
> 
> So, where did I go wrong?
> 
> (BTW, I did have success with the rest of the install, even moving my 
> T-bird profile back onto the desktop, from which I am sending this e-mail.)
> 
I can not find realtime in the mount man pages, only relatime.
-Denis



More information about the PLUG mailing list