LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2003, 08:58 PM   #1
firefightin4fun
LQ Newbie
 
Registered: Sep 2003
Posts: 21

Rep: Reputation: 15
editing the etc/fstab


I want my red hat 9.0 system to automatically mount the drive wehn i start up so i don't have to mount -t every time. this is my music hd. I know i need to edit /etc/fstab to make it work and i can see what i have to do but it won't let me edit anything in there. anything i am doing wrong here?
 
Old 09-20-2003, 09:10 PM   #2
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
You have to be logged in as root.

To gain root privilages in a terminal:

Code:
su -
 
Old 09-20-2003, 09:16 PM   #3
firefightin4fun
LQ Newbie
 
Registered: Sep 2003
Posts: 21

Original Poster
Rep: Reputation: 15
Ok i double checked and am logged in as root
 
Old 09-20-2003, 09:23 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Make sure the file is actually writable as well.
 
Old 09-20-2003, 09:35 PM   #5
firefightin4fun
LQ Newbie
 
Registered: Sep 2003
Posts: 21

Original Poster
Rep: Reputation: 15
it's writable as well. i don't understand it b/c when i open it i can put my cursor where i want to add things but it doesn't let me
 
Old 09-20-2003, 09:50 PM   #6
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
ok hold on? when you say "you put your cursor" what do you mean by this?? what text editor/program are you using? graphical or text mode?
 
Old 09-20-2003, 09:50 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,568

Rep: Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865
Are you just clicking on the file in konqueror? Or opening the file using a console text editor like emacs or vi?

If just clicking on the file name in a browser does not open the file for editing. Right click on the file, select open with and select an editor.

DrOzz
Great minds think alike !!

Last edited by michaelk; 09-20-2003 at 09:55 PM.
 
Old 09-20-2003, 09:57 PM   #8
firefightin4fun
LQ Newbie
 
Registered: Sep 2003
Posts: 21

Original Poster
Rep: Reputation: 15
And we have a winner. i was just double clicking on the folder and trying to edit it when i was already in. That answered the ? though. thanks
 
Old 09-20-2003, 10:53 PM   #9
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
Shed your Windows habits. In linux, its not best to "just double click things"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing fstab GingerMegs Linux - Software 1 06-04-2005 04:24 PM
Editing etc/fstab- yet again:-) hitest Slackware 7 04-21-2005 12:50 PM
Editing fstab jodef Yoper 4 11-27-2004 09:06 AM
Who is editing my fstab???!!! laszlo Linux - Newbie 5 06-30-2004 05:37 AM
Fstab editing Ando Linux - General 4 06-29-2003 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration