Page 1 of 2

Re: USB Stick

PostPosted: Sat Jun 13, 2009 8:19 am
by DarkChild
Mazal wrote:Morning all ,

Suddenly my USB stick keeps mounting in read only mode then I can't work on it. It just suddenly started to happen. I tried changing ownership but it didn't help. How can I get it to mount read/write again please ?



Hello Mazal.

Give the line below a try and let me know whats the outcome.

mount -o rw,nosuid /dev/sdb1 /mnt/usb

The options allows the disk to be mounted read/write, and do not require
root user privileges.

If the above line don't work. Could please provide some information/specs about your USB Stick so that we can get some clue as to what were are working with!! E.g "File system, Size, Brand etc"

Re: USB Stick

PostPosted: Sat Jun 13, 2009 9:14 am
by DarkChild
Have you tried to edit the "/etc/fstab" file and change the permissions there?

If not, try mounting your USB Stick and then, go to /etc/fstab/ and edit that file and post the out put here, so that we can see the parameters for your usb stick!!

or

1.Try logging as root to your system.
2.Then mount your usb stick.
3.Open your usb stick and right click in a blank space and select properties.
4.The select the permission tab from the window.
5.Then change all file access to "read an write after doing that, select "apply permissions to enclosed files"
6.close the window and unmount your usb stick, then shutdown your machine and see what happens.

darkchild666

Re: USB Stick

PostPosted: Sat Jun 13, 2009 10:42 am
by deate
You can log in as root on Ultimate ...
If you forgot your password for your system, you can recover using the following steps:

1. Turn your computer on.
2. Press ESC at the grub prompt.
3. Press e for edit.
4. Highlight the line that begins kernel ………, press e
5. Go to the very end of the line, add rw init=/bin/bash
6. press enter, then press b to boot your system.
7. Your system will boot up to a passwordless root shell. Type in passwd username
8. Set your password.
9. Type in reboot

Re: USB Stick

PostPosted: Sat Jun 13, 2009 2:10 pm
by TexasMike
mazal,
Could you post the results of the following command in a terminal window (with the Memory stick inserted and mounted, of course):

Code: Select all
cd /media

Code: Select all
ls -al


This should return something like this:

texasmike@texasmike-desktop-JJ:~$ cd /media
texasmike@texasmike-desktop-JJ:/media$ ls -al
total 32
drwxr-xr-x 5 root texasmike 4096 2009-06-13 02:26 . None

Subject:

drwxr-xr-x 22 root root 4096 2009-06-10 18:22 ..
drwxr-xr-x 2 root root 4096 2009-05-07 17:25 cdrom0
drwxrwxrwx 2 texasmike texasmike 4096 2009-05-02 21:13 Downloads
-rw-r--r-- 1 root root 0 2009-06-13 02:26 .hal-mtab
drwx------ 2 root root 16384 2009-04-29 21:22 lost+found
texasmike@texasmike-desktop-JJ:/media$


You are looking for the permissions on your "folder" STORE N GO/ - the part at the start of the line with the STORE N GO/ folder shown at the right of that line. If it does not have drwxr-xr-x (or even drwxrwxrwx), then you do not have permission to Write to the device/drive. The "rwx" stands fort Read/Write/Execute, and the 1st set are for the Owner, then the Group, and finally the World. If the owner (you) does NOT have rwx you cannot write to it even if you Own it.
To correct this and add Write permissions for the owner, type the following in a terminal:
Code: Select all
chmod 755 STORE\ N\ GO/

the type
Code: Select all
ls -al
and you should see something like this:
drwxr-xr-x 2 mazal mazal 4096 2009-05-02 21:13 STORE\ N\ GO/

BTW: You can avoid that mess of "slashes" in you directory name if you do not use any blank spaces in the name - for example: STORE_N_GO instead of STORE AND GO. This makes typing the file or directory names easy when the Terminal or Command Line Interface - just a thought that could help eliminate confusion.
Post back your results, if this does not resolve your write permissions problem. ;)

Re: USB Stick

PostPosted: Sat Jun 13, 2009 4:36 pm
by Cell
Have you been using the usb stick in a windows system?If so stick it back in(a windows system),and do a clean removal of it....don't just pull it out.Then see if it works.