LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   jumpdrive is read only (https://www.linuxquestions.org/questions/linux-hardware-18/jumpdrive-is-read-only-98098/)

ezra143 09-29-2003 12:52 AM

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

geoff_f 09-29-2003 06:23 AM

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

michaelk 09-29-2003 06:56 AM

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.

ezra143 09-29-2003 09:03 AM

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.

geoff_f 09-29-2003 03:55 PM

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.

the theorist 09-29-2003 04:01 PM

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.

ezra143 09-29-2003 04:43 PM

interestingly enough, my fstab line reads EXACTLY as above. Hmm, curious.... any other ideas?

michaelk 09-29-2003 06:04 PM

What are the permissions of /mnt/flash?

ls -l /mnt/flash

ezra143 09-29-2003 06:23 PM

drwxr-xr-x 7 root root 16384 Dec 31 1969 jump

michaelk 09-29-2003 07:12 PM

Oops...

ls -l /mnt

geoff_f 09-30-2003 03:09 AM

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.

ezra143 10-01-2003 08:00 PM

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.

geoff_f 10-02-2003 07:30 AM

Great to hear you got it working. Well done.


All times are GMT -5. The time now is 07:26 AM.