LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 09-29-2003, 01:52 AM   #1
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Rep: Reputation: 31
jumpdrive is read only


ok, have a lexar 128 mb secure jumpdrive. I can read and write to it no prob under windows, and can read it under nix no prob. I cannot write to it under linux though. Tried editing my fstab, tried different mount options, all to no avail. Any help here would be greatly appreciated. TIA
 
Old 09-29-2003, 07:23 AM   #2
geoff_f
Member
 
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445

Rep: Reputation: 31
Try changing the permissions of your mount point for the jumpdrive. If, for example, your mount point is called '/mnt/jumpdrive', then open a console as root and enter the following command:

chmod 777 /mnt/jumpdrive
 
Old 09-29-2003, 07:56 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,154

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
You treat the jumpdrive like any other vfat partition. Add umask=000 option to the /etc/fstab option.

BTW on the previous post use the chmod command with the drive unmounted.
 
Old 09-29-2003, 10:03 AM   #4
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Original Poster
Rep: Reputation: 31
well, no luck. can't chmod, permission denied, even as root. while I belive my fstab is correct, could someone post the correct line for sda1 as jump. Thanks again.
 
Old 09-29-2003, 04:55 PM   #5
geoff_f
Member
 
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445

Rep: Reputation: 31
As a principle of troubleshooting, it would be better for you to post your /etc/fstab lines here, so we can see what is going on in your computer.
 
Old 09-29-2003, 05:01 PM   #6
the theorist
Member
 
Registered: Apr 2002
Distribution: Fedora Core 5 & 6
Posts: 47

Rep: Reputation: 15
I recently got one of these (Apacer HandySteno) working. My fstab line is:

Code:
/dev/sda1               /mnt/flash              auto    noauto,user,umask=000 0 0
Before that I had to delete the old partitions with fdisk, and then make one new vfat partition with mkfs.vfat /dev/sda1.
You may not have to do this.

Last edited by the theorist; 09-29-2003 at 05:02 PM.
 
Old 09-29-2003, 05:43 PM   #7
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Original Poster
Rep: Reputation: 31
interestingly enough, my fstab line reads EXACTLY as above. Hmm, curious.... any other ideas?
 
Old 09-29-2003, 07:04 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,154

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
What are the permissions of /mnt/flash?

ls -l /mnt/flash
 
Old 09-29-2003, 07:23 PM   #9
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Original Poster
Rep: Reputation: 31
drwxr-xr-x 7 root root 16384 Dec 31 1969 jump
 
Old 09-29-2003, 08:12 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,154

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Oops...

ls -l /mnt
 
Old 09-30-2003, 04:09 AM   #11
geoff_f
Member
 
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445

Rep: Reputation: 31
Quote:
can't chmod, permission denied, even as root.
Something is definitely amiss here, as root doesn't get permission denied for anything. How did you open a console as root? Directly, or did you open one as youself and then use the su command? If the latter, if you did not use 'su -' (ie, with a space and a dash after it) then you would not have had root's path permissions, and that could explain why you had permission denied.

From the output of 'ls -l /mnt/jump', it is owned by root and 'others' don't have write permission; that's why you're seeing this problem. If you open a console as root - either directly or with 'su -' - and use the chmod command I gave before, you should be OK.
 
Old 10-01-2003, 09:00 PM   #12
ezra143
Member
 
Registered: Aug 2003
Location: NY
Distribution: RH9, RH8, Slack, Vector
Posts: 497

Original Poster
Rep: Reputation: 31
Fixed, somehow

well, Interestingly enough... i removed the entry from my fstab, restarted, chmod the /mnt and /mnt/jump directories and then tried again. And it worked! No idea how the problem came about since i have done and verified everything as suggested, but i can now mount as a user and have full write permissions. So, thanks to all for the help in investigation, someday hope to repay the favor...

and, on a side note, i was in a root console directly as root, and as root in gui, and still had my permissions denied.. go figure.

Last edited by ezra143; 10-01-2003 at 09:02 PM.
 
Old 10-02-2003, 08:30 AM   #13
geoff_f
Member
 
Registered: May 2003
Location: Canberra, Australia
Distribution: openSUSE 11.3
Posts: 445

Rep: Reputation: 31
Great to hear you got it working. Well done.
 
  


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
do i need mtd for my jumpdrive? slinky2004 Linux - Hardware 3 09-14-2005 10:49 PM
Lexar Jumpdrive, detected, but cannot read/write/mount Gary987 Linux - Hardware 1 06-12-2005 03:20 PM
usb jumpdrive ? matrixon Linux - Hardware 1 04-21-2005 09:56 PM
Jumpdrive mounting StraitFaced Mandriva 3 02-08-2005 01:57 PM
How do I use my USB Jumpdrive? yzrider210 Linux - Hardware 1 11-30-2003 09:32 AM


All times are GMT -5. The time now is 07:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration