• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

I messed up my pen drive while making it Win7 bootable

buntygupta

Junior Member
I have Sony 8Gb pen drive. I was trying to make it usb win 7 bootable drive using command prompt and messed it up.

Now I have two comps with Win and Ubuntu on it:
On win7,it shows up under disk management but not able to format.
On ubuntu i have drive disk utility, gparted, fdisk and dmesg; nothing could help to format the hard disk.
I get this message:
[ 402.263947] usb 2-5: device descriptor read/64, error -110
[ 417.553939] usb 2-5: device descriptor read/64, error -110
[ 417.816654] usb 2-5: reset high speed USB device using ehci_hcd and address 3
[ 430.443970] usb 2-5: USB disconnect, address 3
[ 430.443997] sd 6:0:0:0: Device offlined - not ready after error recovery
[ 430.444014] sd 6:0:0:0: [sdb] Unhandled error code
[ 430.444018] sd 6:0:0:0: [sdb] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK
[ 430.444024] sd 6:0:0:0: [sdb] CDB: Read(10): 28 00 00 00 00 00 00 00 08 00
[ 430.444039] end_request: I/O error, dev sdb, sector 0
[ 430.444045] __ratelimit: 21 callbacks suppressed
[ 430.444050] Buffer I/O error on device sdb, logical block 0
[ 430.444149] ldm_validate_partition_table(): Disk read failed.
[ 430.444190] Dev sdb: unable to read RDB block 0
[ 430.444247] unable to read partition table
[ 430.444552] sd 6:0:0:0: [sdb] READ CAPACITY failed
[ 430.444557] sd 6:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 430.444563] sd 6:0:0:0: [sdb] Sense not available.
[ 430.444583] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 430.444588] sd 6:0:0:0: [sdb] Attached SCSI removable disk

--Requesting fixes. Thanks
 
Welcome to the forum.

In Win7 goto the command prompt and type the following

Diskpart
Now type
List Disk (will give a list of all disks in the system), and note the drive number of your pendrive.

Now type
Select Disk (your pendrive drive number from the list disk command)
Now type the following
Clean (wait a few seconds for the pendrive to be cleaned)
Now type
Create partition primary
Now type
Active (makes the drive bootable)
Now you need to format the pendrive, so type the following.
Format fs=fat32 quick

If you need to assign the pendrive a drive letter then type the following.
Assign
 
Last edited:
I have Sony 8Gb pen drive. I was trying to make it usb win 7 bootable drive using command prompt and messed it up.

Now I have two comps with Win and Ubuntu on it:
On win7,it shows up under disk management but not able to format.
On ubuntu i have drive disk utility, gparted, fdisk and dmesg; nothing could help to format the hard disk.
I get this message:
[ 402.263947] usb 2-5: device descriptor read/64, error -110
[ 417.553939] usb 2-5: device descriptor read/64, error -110
[ 417.816654] usb 2-5: reset high speed USB device using ehci_hcd and address 3
[ 430.443970] usb 2-5: USB disconnect, address 3
[ 430.443997] sd 6:0:0:0: Device offlined - not ready after error recovery
[ 430.444014] sd 6:0:0:0: [sdb] Unhandled error code
[ 430.444018] sd 6:0:0:0: [sdb] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK
[ 430.444024] sd 6:0:0:0: [sdb] CDB: Read(10): 28 00 00 00 00 00 00 00 08 00
[ 430.444039] end_request: I/O error, dev sdb, sector 0
[ 430.444045] __ratelimit: 21 callbacks suppressed
[ 430.444050] Buffer I/O error on device sdb, logical block 0
[ 430.444149] ldm_validate_partition_table(): Disk read failed.
[ 430.444190] Dev sdb: unable to read RDB block 0
[ 430.444247] unable to read partition table
[ 430.444552] sd 6:0:0:0: [sdb] READ CAPACITY failed
[ 430.444557] sd 6:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 430.444563] sd 6:0:0:0: [sdb] Sense not available.
[ 430.444583] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 430.444588] sd 6:0:0:0: [sdb] Attached SCSI removable disk

--Requesting fixes. Thanks

Citing exactly what you did in Windows might be helpful, but from those Linux messages I'm inclined to think it's dead and would be simpler to just get a new one since they're so relatively cheap.
 
try vconsole.com 's USB flash drive tester. It wipes the entire drive, then read-tests it.

It generally gets rid of any strange formatting issues with the drive.

And if the drive is truely dead, then this should tell you that as well.
 
Welcome to the forum.

In Win7 goto the command prompt and type the following

Diskpart
Now type
List Disk (will give a list of all disks in the system), and note the drive number of your pendrive.

Now type
Select Disk (your pendrive drive number from the list disk command)
Now type the following
Clean (wait a few seconds for the pendrive to be cleaned)
Now type
Create partition primary
Now type
Active (makes the drive bootable)
Now you need to format the pendrive, so type the following.
Format fs=fat32 quick

If you need to assign the pendrive a drive letter then type the following.
Assign

I tried that, but when i say clean it gives me an error stating media not found.
 
When you typed the "Select Disk" command, did you also enter the drive number?

Example:
Let's say the pendrive was drive number 4 (given by the "List Disk" command).

Did you then type Select Disk 4
And thereafter, did Diskpart confirm that Disk 4 had been selected before you issued the Clean command?
 
yes i did. it was select disk 2. yes it did confirm tht disk 2 selected and after that clean command did give me the error.
 
Back
Top