Problem with fstab file
Posted on 2007-07-26
I installed Ubuntu 7.0.4 Desktop i386. My computer has 2 hard-disks, one is 20G one in which Ubuntu was installed. Another one is 30GB hard-disk used for data storage. So, there are 3 partitions in my computer: hda1, hda5 (swap partition), and hdb. I would like to mount hdb5 automatically at boot, so I edited the fstab file. Here is my steps:
1. Using Terminal to set for user Admin can access folder /etc
su (change to root)
chown Admin /etc
chmod -R 777 /etc
2. Exit Terminal, use Text Editor to open fstab file in /etc folder, then add one more line at the end of fstab file:
UUID=308ce7f4-f657-4dcb-b638-bab5465dfa32 /home/Admin/hdd2 ext3 defaults 0 0
Save the fstab file.
3. Create a folder hdd2 in Home Folder, that is create the folder /home/Admin/hdd2
4. Restart the computer.
It works good. The hard-disk was mounted and its content is in hdd2 folder.
However, right after that, some other system functions like Synaptic Package Manager, Update Manager, GNOME Partittion Editor, etc. cannot run. I edited the fstab again by remove the last line, so that it is like the original one, then restart the PC. Those functions do not work, and I now even cannot mount the second hard-disk any more.
Where does the problem come from? How can I fix it? Is there any place for downloading the original fstab file? Please help.