1

I have USB drive and its file system is read-only ISO9660. How do I format it? It always says "Readonly FS"

5
  • Is there a physical switch on the device? One that controls read/write ability? Commented Mar 7, 2011 at 11:02
  • No I don't think so,I checked it ,it don't seems to have a switch.I read on the web gparted might help - but it didn't even detect usb partition. Commented Mar 7, 2011 at 11:15
  • Which OS is on the parent host?
    – MadHatter
    Commented Mar 7, 2011 at 11:17
  • Im using Fedora 12. Commented Mar 7, 2011 at 11:22
  • quick & dirty: "dd if=/dev/zero of=/dev/sdX bs=512 count=1", then recreate an MBR with fdisk or cfdisk and parition the way you want. Most likely it's you filesystem which is read-only and not the device.
    – Shadok
    Commented Feb 3, 2012 at 17:06

3 Answers 3

1

If this is the only partition on this usb drive then it won't matter if we wipe the whole device. If that holds true you could create a new partition table using fdisk on the device. Once you have created a new partition table then create a new fat32 (if it's flash-based storage and you want interoperability between OS's) partition. If this is a platter based HDD then just choose the file system that works for you.

Here are some basic instructions on fdisk: Small FDISK Example from Ubuntu

The instructions can be fitted to your uses. Make sure you select 'o' to create the new partition table. This will wipe the references to the previous partitions and then you can just reformat the entire disk as whatever file system suits you. Let me know if you run into difficulties or creating a new partition table fails for some reason.

ONLY do this if you don't mind formatting the entire device (like a USB stick). If this is one partition on an actual HDD then you could try deleting and creating a new partition with fdisk and you could also try doing all of this from a LiveCD (just in case there is some setting somewhere in your OS that is preventing this).

1

This worked fine for me on SDB ro Sticks I had ....

[root@localhost ~]# dd if=/dev/zero of=/dev/sdb bs=512 count=1

1+0 records in

1+0 records out

512 bytes copied, 0.0223074 s, 23.0 kB/s

[root@localhost ~]# mkfs.vfat /dev/sdb

0
0

It's possible that the issue is that ISO9660 FSes are read-only, rather than the drive. Let the drive mount, then type mount, and look for the drive's device:

/dev/sdb1 on /media/BigDrive type iso9660 (ro....

Then unmount the device (but don't physically remove it) and try reformatting it:

umount /media/BigDrive
mkfs.vfat /dev/sdb1

Note how I got the mount point (for unmounting) and the drive (for mkfs'ing) from the mount output above. It is really quite important to get those right, by the way, or you could destroy some fairly important data on your machine. Proceed with caution!

Assuming this works, remove and reinsert the drive, and it should show up as a usable VFAT FS.

1
  • Your advice did not work, because the filesystem is seems as read-only for system, even for root. Need some way to change the attributes of a filesystem on flash-drive, which the system defines as iso9660.
    – user116695
    Commented Feb 3, 2012 at 16:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .