LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-18-2004, 08:41 AM   #1
SLAY3R
Member
 
Registered: Aug 2004
Location: ICT
Distribution: SuSe 9.1 Pro
Posts: 33

Rep: Reputation: 15
How to modify fstab?


I have googled around but I still can't modify it. I want my dvd drive to mount auto since I can't mount it in konsole.

Thanks
 
Old 09-18-2004, 08:48 AM   #2
mirradric
Member
 
Registered: May 2004
Location: Singapore
Distribution: Debian woody and debian sarge
Posts: 188

Rep: Reputation: 31
err.... I'm not too sure if i got your question right; fstab is just a regular file, you can edit it with any editor but you need the correct privilege, namely root
 
Old 09-18-2004, 08:58 AM   #3
SLAY3R
Member
 
Registered: Aug 2004
Location: ICT
Distribution: SuSe 9.1 Pro
Posts: 33

Original Poster
Rep: Reputation: 15
Sorry I should have worded better. How do I modify it as root?
 
Old 09-18-2004, 09:14 AM   #4
mirradric
Member
 
Registered: May 2004
Location: Singapore
Distribution: Debian woody and debian sarge
Posts: 188

Rep: Reputation: 31
care to word it better??
Are you asking what do you use to edit fstab?
Or are you asking for the format of the file?

You can use any text editor (emacs, nano, vi, gedit .....) to edit fstab.
For the format of the file do a man fstab.

Last edited by mirradric; 09-18-2004 at 09:15 AM.
 
Old 09-18-2004, 09:17 AM   #5
SLAY3R
Member
 
Registered: Aug 2004
Location: ICT
Distribution: SuSe 9.1 Pro
Posts: 33

Original Poster
Rep: Reputation: 15
I want to edit fstab so I can have my dvd drive mount automatically. When I try to edit it says I need to be root. Do I need to be root in console or start Suse as root?
 
Old 09-18-2004, 09:32 AM   #6
mirradric
Member
 
Registered: May 2004
Location: Singapore
Distribution: Debian woody and debian sarge
Posts: 188

Rep: Reputation: 31
Oh. Just open an xterm and type

Code:
$su
password:
type in the password for root. Start your editor and edit fstab.

There are more graphical versions of su like xsu, kdesu etc.
You might want to investigate them.

If things don't work out feel free to post here again.
 
Old 09-18-2004, 10:31 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,891

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
If you add the user option to the fstab entry for the dvd device then any user will be able to mount. See man pages for additional help and other options.
 
Old 09-18-2004, 11:03 AM   #8
joker20
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware/Ubuntu/CentOS
Posts: 286

Rep: Reputation: 31
just do a:
su
*password*
cd /etc
vi fstab
press "i" so you can edit
add the line "/dev/hdx /mnt/cddvd iso9660 auto,owner,ro 0 0"
minus " "
replace the "x" with the drive letter fo you dvd drive

then press esc to stop editing
then type in :save to save it
and then :q to quit

also dont forget to add a directory in /mnt so that the drive can be mounted

cd /mnt
mkdir cddvd or whatever you wanna call it

Last edited by joker20; 09-18-2004 at 11:06 AM.
 
  


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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 05:55 PM
How to modify the library path variable?modify the Electronkz Linux - Newbie 1 04-13-2004 06:18 AM
Mand9.1 won't let me modify fstab... PhilD Mandriva 4 09-23-2003 09:20 AM
modify file access & modify timestamps i2itstud Linux - General 1 05-20-2003 03:34 AM


All times are GMT -5. The time now is 04:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration