LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-29-2006, 02:31 PM   #1
obay
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
Post wish to edit but fstab is read only


hello, this is my first experience with linux, ubuntu 6.06.

i have 2 HDDs, 1st is WinXp, 2nd is Ubuntu. have fat32 partition "FATPART" on 2nd HDD, wish to share between WinXp and Ubuntu.

i'm trying to follow this article -> (since i cannot yet post urls in this post, can u please google "Share Partitions between linux and windows" and click the first result.. thanks)

however im stuck with the part where i have to edit the fstab because it's read only. im trying to add this line: (is this correct?)

/dev/hdb1 /osshare vfat umask=000 0 0

how can i edit the fstab? or, is there any better/easier way to do the thing i wish to do.. i.e. share files between winxp and ubuntu?

i've tried going to Places > Computer > (right-click)FATPART, gives the error:

Unable to mount the selected volume.
error: device /dev/hdb1 is not removable;
error: could not execute pmount

help!?
 
Old 07-29-2006, 02:51 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
You have to edit the file as root. From a terminal type

Code:
sudo nano -w /etc/fstab
Enter your password if it asks. You should be able to sedit the file now.
 
Old 07-29-2006, 02:54 PM   #3
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
fstab is a system configuration file, you need higher priveledges than a standard user, in most distros this would be the root (super user) account that can edit ANYTHING in the system, ubuntu by default uses sudo (which i dont like, but i use sudo all day on arch :S).

Open up a console (aterm,konsole,xterm,gnome-terminal, whatever) and try
Code:
joe /etc/fstab
joe is an editor, make your changes and then ctrl-K ctrl-X to save and then quit, there are other editors like nano or vi (someone else will have to advise how to use that) or you can type in a console
Code:
sudo gedit/kate/whatever_GUI_editor
then open the file like that.
 
Old 07-29-2006, 03:25 PM   #4
obay
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!! Very Big Help! Thanks!! =)
 
  


Reply



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 05:36 PM
How do I edit /etc/fstab? linusownsme Linux - Software 9 03-05-2005 11:30 AM
Help me edit my fstab Slovak Slackware 3 11-26-2004 10:12 AM
edit fstab - what i ve to do ? thinkdifferent Linux - Newbie 4 12-23-2003 04:20 PM
edit fstab LinuxOG Linux - Distributions 2 09-01-2003 10:27 AM

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

All times are GMT -5. The time now is 08:41 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
Open Source Consulting | Domain Registration