Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Whenever I try formatting my Sandisk Cruzer Glide 16GB, I get this error message on Gparted.

GParted 0.11.0 --enable-libparted-dmraid

Libparted 2.3

Create Primary Partition #1 (ntfs, 14.42 GiB) on /dev/sdc  00:00:00    ( ERROR )

create empty partition  00:00:00    ( ERROR )
libparted messages    ( INFO )

Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.
Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.
Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.
Can't write to /dev/sdc, because it is opened read-only.
Unable to open /dev/sdc read-write (Read-only file system). /dev/sdc has been opened read-only.

========================================

How do I disable / delete the read only filesystem? Is my USB corrupted?

share|improve this question
    
What file system do you want to format the drive to? –  njallam Sep 1 '12 at 6:10
    
Is /dev/sdc being used by the system in anyway? such as mounting a partition in it during boot with ro option. Can you provide the output of the command sudo umount -a? –  Anwar Shah Sep 1 '12 at 6:37
    
Maybe a stupid question -- but did you run gparted as root (via sudo) -- or using a non-privileged account? In the latter case, try the former -- as it requires root privileges to access the devices at that level ;) –  Izzy Sep 1 '12 at 16:36
    
I having this problem too. can't format a USB stick of fat32 bacause it's read-only. –  yinon Dec 2 '12 at 18:03

1 Answer 1

I had the same problem. The issue at my case was that it was formatted as Ubuntu live CD. And instead of listing the mounpoint of the USB itself in /etc/mtab, the Live-Folder within the USB was listed. Therefore, it was impossible to unmount the USB-drive itself. My solution was to remove the mountpoint of the USB with the command

$ sudo rm -rf /media/<name of drive>

This had the same effect as unmounting the USB and I was able to use gparted for further steps (formatting etc.)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.