LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2005, 10:33 AM   #1
linusownsme
LQ Newbie
 
Registered: Feb 2005
Location: Your Basement
Distribution: Suse 9.2
Posts: 9

Rep: Reputation: 0
How do I edit /etc/fstab?


I have sifted through google and the forums for an hour and cant seem to get an answer. I have just installed ntfs linux on fedora 3 and want to add a line to fstab so that it will automatically mount the partition

Code:
/dev/hda5 /mnt/windows ntfs ro,umask=0222
can anyone help out a desperate newb?
 
Old 03-05-2005, 10:39 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Just use any standard text editor, vi, nano, pico etc:
vi /etc/fstab

You will need to have root privilages.
 
Old 03-05-2005, 10:47 AM   #3
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
try nano.
vi is great but not very newbie friendly. In the banner of nano you see the commands.
^X means Ctrl+X
 
Old 03-05-2005, 10:48 AM   #4
linusownsme
LQ Newbie
 
Registered: Feb 2005
Location: Your Basement
Distribution: Suse 9.2
Posts: 9

Original Poster
Rep: Reputation: 0
thanks, is there any way i can do it in the terminal?
 
Old 03-05-2005, 10:53 AM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Yes.
Quote:
Originally posted by david_ross
Just use any standard text editor, vi, nano, pico etc:
vi /etc/fstab

You will need to have root privilages.
If you are not logged in as root then run "su -" first.
 
Old 03-05-2005, 10:56 AM   #6
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
and then do:
Code:
nano /etc/fstab
 
Old 03-05-2005, 11:21 AM   #7
linusownsme
LQ Newbie
 
Registered: Feb 2005
Location: Your Basement
Distribution: Suse 9.2
Posts: 9

Original Poster
Rep: Reputation: 0
ok... I put that line in the fstab...

I reboot and now when I browse to the mounted partition, i dont have permissions to read it... i can only access it as root... is there any way to fix this?
 
Old 03-05-2005, 11:45 AM   #8
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
Quote:
Originally posted by linusownsme
ok... I put that line in the fstab...

I reboot and now when I browse to the mounted partition, i dont have permissions to read it... i can only access it as root... is there any way to fix this?
try
Code:
/dev/hda5 /mnt/windows ntfs ro,umask=0222 0 0
(this is my FC2 windows fstab entry)
there is no need to reboot. Linux ain't windows.
after you alter /etc/fstab do
umount /mnt/windows
mount /mnt/windows

If this does not work either try umask=000, and do the umount/mount thing again
 
Old 03-05-2005, 12:12 PM   #9
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
http://www.justlinux.com/nhf/Filesys...rmanently.html

someone posted that for me when i had a very simular question. i was able to get it working 100% with the help of the above link.

good luck.
 
Old 03-05-2005, 12:30 PM   #10
linusownsme
LQ Newbie
 
Registered: Feb 2005
Location: Your Basement
Distribution: Suse 9.2
Posts: 9

Original Poster
Rep: Reputation: 0
thank you so much, guys! especially you, perfect circle, your code worked perfectly

later
 
  


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 not edit-able? lefty.crupps MEPIS 1 06-06-2005 06:36 PM
fstab edit craigers Linux - Software 15 12-03-2004 07:02 AM
Help me edit my fstab Slovak Slackware 3 11-26-2004 11:12 AM
edit fstab - what i ve to do ? thinkdifferent Linux - Newbie 4 12-23-2003 05:20 PM
edit fstab LinuxOG Linux - Distributions 2 09-01-2003 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:08 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration