[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Problem with fstab file

Posted on 2007-07-26
7
Medium Priority
?
339 Views
Last Modified: 2013-11-15
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-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.
0
Comment
Question by:free4vn
  • 3
  • 2
  • 2
7 Comments
 
LVL 14

Accepted Solution

by:
ygoutham earned 1050 total points
ID: 19580647
when you change the permissions for files like /etc/passwd and /etc/shadow and the rest of the stuff to a 777 the system is bound to give you errors.  

chmod -R is a good option only on the data part.  not in the system area. right now all the permissions have been changed to globally available and therefore the system would never run properly.

suggestion:
run the installation again (choose not to format disk) and opt for a minimal install.  that ways the files are left intact and the system automatically changes the requisite file permissions.
0
 

Author Comment

by:free4vn
ID: 19580658
Is there no way to set the permission back without re-install?
0
 
LVL 14

Assisted Solution

by:ygoutham
ygoutham earned 1050 total points
ID: 19580709
there are far too many number of files and directories.  like /etc/init.d   /etc/rc.d and so on

probably you can have a second system somewhere and then keep going one file after the other which is equally time consuming.  

a minimal reinstall without format would take hardly anytime and hasslefree

even the existing users and passwords remain intact if that is your worry!!!
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:free4vn
ID: 19580909
Ubuntu live CD do not have option for installing without format. That is the problem.
0
 

Assisted Solution

by:fenix849
fenix849 earned 450 total points
ID: 19583623
You can do a non format install from the Ubuntu 7.04 Alternate CD.
It's available here: http://www.ubuntu.com/getubuntu/download (remember to tick the alternate cd checkbox at the bottom of the download area.

I don;t really understand why you were changing the perms on /etc/ in the first place.. its not necessary.

It will be much too time consuming to change all the perms back to their proper values.
0
 

Author Comment

by:free4vn
ID: 19584094
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.
0
 

Expert Comment

by:fenix849
ID: 19584608
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.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month20 days, 4 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question