LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-10-2008, 01:51 PM   #1
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 393

Rep: Reputation: 31
Edit fstab file to make USB disk writable.


Hello,
I messed up with Mandriva Control Center and ended up unable to write to my USB flash memory

The USB line in the fstab file:
Code:
/dev/sdb1 /media/hd vfat defaults 0 0
What shall I edit in order to make the Flash memory writable once again.
And to enable the fast writing, Do I add sync or not.

PS: The only thing that I hate about Linux is the fstab file

*edit*: And how can I refresh the fstab file so I do not have to restart in order for the changes to take effect.

Last edited by AGazzaz; 07-10-2008 at 03:07 PM.
 
Old 07-10-2008, 04:48 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally Posted by AGazzaz View Post
Hello,
I messed up with Mandriva Control Center and ended up unable to write to my USB flash memory

The USB line in the fstab file:
Code:
/dev/sdb1 /media/hd vfat defaults 0 0
What shall I edit in order to make the Flash memory writable once again.
And to enable the fast writing, Do I add sync or not.

PS: The only thing that I hate about Linux is the fstab file

*edit*: And how can I refresh the fstab file so I do not have to restart in order for the changes to take effect.
Okay, first of all I'd suggest using autofs instead of hard coding this into your fstab. This eliminates it trying to mount at boot time when the USB flash disk isn't inserted.

Secondly, you don't have to refresh the fstab file. You edit, then you run the mount command, it will read from the fstab immediately.

Using defaults should make it writeable though, but the syntax will change if you go with autofs.
 
Old 07-10-2008, 06:18 PM   #3
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 393

Original Poster
Rep: Reputation: 31
autofs seems to be a great idea, but I do not know how to use it.
I installed autofs package and I do not know what else to do.

there is a process called automount running but I do not know what to do with it or how to use it.

BTW I can now mount the drive only as root and still I can not write to it.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fstab fat32 --> writable by all users jasone Linux - Newbie 3 12-14-2010 03:16 AM
USB external hard disk and fstab sblantipodi Linux - General 8 01-06-2008 02:14 PM
edit the fstab file wannaluvlinux Linux - Software 1 09-27-2004 02:37 PM
How do you edit the /etc/fstab file in RedHat9.0 nat22784 Linux - General 2 02-19-2004 07:24 PM
Unable to edit fstab... problems with ext. usb hdd removal gardyloo Linux - Newbie 1 12-27-2003 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:54 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