![]() ![]() This filesystem will be automatically checked every 28 mounts orġ80 days, whichever comes first. Writing superblocks and filesystem accounting information: done I took the returned messages to mean that I at least "broke" the iso9660 fs so went on to try mkfs sudo mkfs /dev/sdb1 ![]() The next reboot or after you run partprobe(8) or kpartx(8) WARNING: Re-reading the partition table failed with error 22: Invalid argument. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)Ĭalling ioctl() to re-read partition table. Then when prompted again selected for fdisk to create an empty dos partition table (something I figured I could overwrite with whatever I wanted later) Command (m for help): vīuilding a new DOS disklabel with disk identifier 0xea06616f.Ĭhanges will remain in memory only, until you decide to write them.Īfter that, of course, the previous content won't be recoverable. Remaining 31324159 unallocated 512-byte sectors I>/O size (minimum/optimal): 512 bytes / 512 bytes ![]() Sector size (logical/physical): 512 bytes / 512 bytes I am new to this Linux sys admin stuff, so when I had exactly the same problem I poked and prodded with no madness to my method but managed to remove the iso9660 fs and reclaim the thumb drive. Note that this message says that the device is not write protected! So unfortunately, it looks like the disk has had it (i.e kaput). Sd 10:0:0:0: Assuming drive cache: write through Scsi 10:0:0:0: Direct-Access FLASH Drive AU_USB20 8.07 PQ: 0 ANSI: 2 Note the comments in there about protection! However, when I plug the device in, I get, Sd 9:0:0:0: Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK Sense: Write protectedĮnd_request: I/O error, dev sdb, sector 4028744 There are no external write protection / hold switches, but yet this is the output in dmesg when I run dd if=/dev/zero of=/dev/sdb Okay, it turns out that in this case something (possibly when I wrote the iso-9660 file system to the drive) has triggered some form of internal write protection on the drive. Sd 17:0:0:0: Device not ready: ASC=0xff ASCQ=0xffASC=0xff ASCQ=0xffĮnd_request: I/O error, dev sdb, sector 0īuffer I/O error on device sdb, logical block 0 Sd 17:0:0:0: Device not ready: Sense Key : Not Ready This shows that the device is formatted as ISO 9660 and that it is /dev/sdb.ĮDIT 3: This is the message that I find at the bottom of dmesg after running cfdisk and writing a new partition table to the disk: SELinux: initialized (dev sdb, type iso9660), uses genfs_contexts SELinux: initialized (dev sdb, type iso9660), uses genfs_contextsĬE: hpet increasing min_delta_ns to 15000 nsec ISO 9660 Extensions: Microsoft Joliet Level 3 Sd 6:0:0:0: Attached scsi generic sg2 type 0 Sd 6:0:0:0: Assuming drive cache: write through Scsi 6:0:0:0: Direct-Access FLASH Drive AU_USB20 8.07 PQ: 0 ANSI: 2 Usb-storage: waiting for device to settle before scanning Usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Usb 2-1: New USB device found, idVendor=058f, idProduct=6387 I can't do mkfs on /dev/sdb1 because there is no such partition, as shown: $ ls /dev | grep sdbĮDIT 2: This is the information posted by dmesg when I plug the device in: $ dmesg Mkfs.vfat: Will not try to make filesystem on full-disk device '/dev/sdb' (use -I if wanted) How can I remove this partition and get my whole USB drive back to normal again?ĮDIT 1: Trying a simple mkfs doesn't work: $ sudo mkfs -t vfat /dev/sdb I have also tried re-formatting it on Windows, but it gets to the end of the format process and then says "Couldn't format the drive". However, when I plug the USB in, it does mount, and I can view (but not edit) the files on it.Įdit: now the result is $ dd if=/dev/zero of=/dev/sdbĭd: opening `/dev/sdb': Read-only file system I have even tried $ dd if=/dev/zero of=/dev/sdb but it just hangs with no output (either on screen or on disk). Parted crashes when I try to use it on this device. I have tried fdisk, which says $ fdisk -l /dev/sdb I have tried various methods of removing this partition, but nothing seems to work. I have somehow managed to write an iso 9660 image onto my USB drive, which makes all my computer think that the device is actually a CD. ![]()
0 Comments
Leave a Reply. |