Other How to remove cd9660 filesystem from USB ?

Hi forum
I'm having a usb stick with filesystem which was made using dd to copy a bootable iso to it.
No longer needed so now trying to blow that filesystem away.
mount reports the following :
Code:
/dev/da4 on /media/Generic_Flash_Udisk_ab0532468136 (cd9660, local, read-only)
I've tried to remount as read-write, but thats a showstopper.
Also tried to
Code:
# gpart destroy -F /dev/da4
That too is unsuccessful.
Should I try the following, then reformat using usual gpart and newfs commands ?
Code:
# dd if=/dev/zero of=/dev/da4 bs=1M count=2
Thanks for any clues to nuke this filesystem, so the stick can be repurposed.
 
Last edited by a moderator:
mount reports the following :
/dev/da4 on /media/Generic_Flash_Udisk_ab0532468136 (cd9660, local, read-only)

You must first unmount da4, after making sure that /media/Gen[...blah] is not your current directory.

# umount /dev/da4

If that fails (busy?) then use # umount -f ...

I've tried to remount as read-write, but thats a showstopper.

Yes, cd9660 is always r/o.

Also tried to
Code:
# gpart destroy -F /dev/da4
That too is unsuccessful.

Can't do that while mounted.

Should I try the following, then reformat using usual gpart and newfs commands ?
Code:
# dd if=/dev/zero of=/dev/da4 bs=1M count=2

That will work.
 
Back
Top