LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-28-2004, 09:19 PM   #1
Darthomir
Member
 
Registered: Mar 2004
Location: Montreal, Qc, Canada
Distribution: Ubuntu 5.10
Posts: 67

Rep: Reputation: 15
Usb flash disk read-only problem


Hello. I have a Pine USB 2.0 Flash Drive.
I can mount it into /mnt/flash, I see all the data, everything is fine.
But I cant write to it, it tells me that its in read-only mode!
It is supposed to be a FAT32 partitions.
So I go check in /dev
Do a $ls -l sda1 (my usb), I see it.
Here are the permissions I see:
brw-------
I see that I can write, but I wonder for the b!
Is it related to binaries or whatsoever?
Thx to help me!
Max
 
Old 03-28-2004, 09:26 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
The b stands for block device which is what a disk drive is.
Device permissions are different then the mount permissions.

For a user to write to a FAT32 partition you will need to add umask=000 option to the /etc/fstab entry. For details just search the website.
 
Old 03-30-2004, 09:30 PM   #3
Darthomir
Member
 
Registered: Mar 2004
Location: Montreal, Qc, Canada
Distribution: Ubuntu 5.10
Posts: 67

Original Poster
Rep: Reputation: 15
Ok I'll do a better search using the info u provide me!
Thx!
Max
 
Old 03-31-2004, 07:51 PM   #4
Darthomir
Member
 
Registered: Mar 2004
Location: Montreal, Qc, Canada
Distribution: Ubuntu 5.10
Posts: 67

Original Poster
Rep: Reputation: 15
But by putting it into the fstab, does it need (the memory stick) to be in the usb slot when booting? Or this is just a conf file used whenever I insert it?
Thx,
Max
 
Old 03-31-2004, 08:07 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Some RH or FC1 experts will need to pipe in if FC1 installs with automounting.

If you do not include the noauto option then the OS will attempt to mount the filesystem at boot regardless of the stick being inserted.
 
Old 04-02-2004, 09:29 PM   #6
Darthomir
Member
 
Registered: Mar 2004
Location: Montreal, Qc, Canada
Distribution: Ubuntu 5.10
Posts: 67

Original Poster
Rep: Reputation: 15
Ok I played around an I have some issues..
If I edit fstab with the USB not in the slot, I dont see the line /dev/sda1. But the line where it says about /dev/sda1 shows up in the fstab when I actually put the USB in the slot (like if this line on the fstab appears only when I do put the USB! so whenever I modify it under root, it reset to the default when I put it back!)
So here is the line that "appears" whenever I put the USB:
/dev/sda1 /mnt/flash auto noauto,owner,kudzu 0 0
And the permissions for flash
drwxr-xr-x
Ok I am supposed to be able to write when Im a user, but here is the problem: the user seems to be root, not the user mounting the USB!
So following this website I made a new dir in /mnt, called mems. I used their command, # mkdir -m 777 /mnt/mems, I see that it has all the permissions, fine.
But I cant edit fstab since that freakin line reappers whenever I put the USB in the slot, I try modifying it, saving it, but never save actually. I did try to change it in the /etc/mtab, but whenever I try to mount it, it says that in the fstab its not the same folder.. or "according to mtab, /dev/sda1 is already mounted on /mnt/mems" which is false! .. AH!!
Please help! ;-)
Thx,
Max

Last edited by Darthomir; 04-02-2004 at 09:33 PM.
 
Old 04-03-2004, 09:04 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Take kudzu option out and add umask=000 option to the fstab entry.

BTW You do not want to modify the mtab file.
 
  


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
usb flash drive always read-only flihp Linux - Hardware 2 11-12-2005 05:14 PM
problem while booting my new distrib from usb flash and hard disk mundri Linux - General 1 06-07-2004 08:47 AM
problem while booting my new distrib from usb flash and hard disk mundri Linux From Scratch 1 06-07-2004 08:19 AM
problem while booting my new distrib from usb flash and hard disk mundri Linux User Groups (LUG) 1 06-07-2004 08:11 AM
Problem with USB Flash Disk dzent56 Mandriva 1 05-13-2004 02:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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