free4vn
asked on
Problem with fstab file
Hello,
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-b6 38-bab5465 dfa32 /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.
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-b6
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ubuntu live CD do not have option for installing without format. That is the problem.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Because I'm a newbie in Linux :"> I'n not familiar with command line. I would like to do commands in Gnome, so I change the permissions so that user Admin can edit files.
Anyway, I made a new installation. It is faster than download the Alternate CD because my internet speed is low.
Thank both of you for your comments.
Anyway, I made a new installation. It is faster than download the Alternate CD because my internet speed is low.
Thank both of you for your comments.
There is a decent website explaining the use of sudo:
http://itg.chem.indiana.edu/inc/wiki/software/165.html
There is also gksudo which is used for graphical frontend.
http://itg.chem.indiana.edu/inc/wiki/software/165.html
There is also gksudo which is used for graphical frontend.
ASKER