Bootable USB key + format / fdisk
Bootable USB key + format / fdisk
Author
Discussion

Podie

Original Poster:

46,649 posts

305 months

Thursday 4th August 2005
quotequote all
Can anyone give me some pointers on using a USB key as a bootable device to run a format / fdisk command, so wipe a hard drive (c) on a PC....?

PC BIOS supports USB booting, as does the USB key... I just haven't got my head round the rest of it... :irked:

BliarOut

72,863 posts

269 months

Thursday 4th August 2005
quotequote all
Never done it, but if I was going to....

use sys X: from a win9X machine with the USB thingy as drive X: to put the system files on it, then copy the 9X format/fdisk commands to the USB stick.

On target PC, bios will install USB thingy with a drive letter. You've already put the necessary files on the USB so change to it's drive letter and format C:

agent006

12,058 posts

294 months

Thursday 4th August 2005
quotequote all
HP do a "USB Disk Storage Format tool" that will allow you to format the USB disk with your shoice of dos files to startup. That's as far as i've got so far (trying to boot and image a PC with a 2gb usb pen).

Podie

Original Poster:

46,649 posts

305 months

Thursday 4th August 2005
quotequote all
Trouble is, that by making the USB key bootable it becomes C... which then makes formatting the hard drive in the PC (also C) a tad difficult...

pdV6

16,442 posts

291 months

Thursday 4th August 2005
quotequote all
Podie said:
Trouble is, that by making the USB key bootable it becomes C... which then makes formatting the hard drive in the PC (also C) a tad difficult...

But if you boot to the USB key and it grabs C:\, surely the 1st HDD will grab the next available letter, i.e. D:\

Podie

Original Poster:

46,649 posts

305 months

Thursday 4th August 2005
quotequote all
pdV6 said:

Podie said:
Trouble is, that by making the USB key bootable it becomes C... which then makes formatting the hard drive in the PC (also C) a tad difficult...


But if you boot to the USB key and it grabs C:, surely the 1st HDD will grab the next available letter, i.e. D:


You'd think so... but clearly our test box is having a fit

pdV6

16,442 posts

291 months

Thursday 4th August 2005
quotequote all
Don't suppose there's a setting in the BIOS that dictates what letter a USB boot device is allocated?

malman

2,258 posts

289 months

Thursday 4th August 2005
quotequote all
after you boot with the usb what does fdisk recon the HDD has?

Podie

Original Poster:

46,649 posts

305 months

Thursday 4th August 2005
quotequote all
Nowt in the BIOS...

FDISK seems to get a little confused... the partition is there (listed as 2) but no logical drive letter associated to it... that (c) has gone to the USB key...!

Jinx

12,020 posts

290 months

Thursday 4th August 2005
quotequote all
Can you use the diskpart command? (used to be assign in old versions of dos)

malman

2,258 posts

289 months

Thursday 4th August 2005
quotequote all
Where did you get the fdisk from? Is it a later version - not a DOS version. Just in case its not recognizing the partition type. Does it recognise the partition if you boot from hdd then run the version fdisk off the usb key?


>> Edited by malman on Thursday 4th August 18:07

>> Edited by malman on Thursday 4th August 18:07

Podie

Original Poster:

46,649 posts

305 months

Thursday 4th August 2005
quotequote all
Tried various versions of fdisk - all give the same thing...

Currently trying a ramdrive to see if that helps...

randlemarcus

13,646 posts

261 months

Thursday 4th August 2005
quotequote all
<koff> gdisk, from a Ghost disk

Alternatively, I have had success previously, using Windows PE, all licensed and everything, honest...

Or you could try BartPE, along the same lines...

ErnestM

11,621 posts

297 months

Thursday 4th August 2005
quotequote all
Is there a setting in the BIOS that allows you to choose what type of mass storage USB device you have? In other words - tell your BIOS that it is a removable media type or floppy.

ErnestM

Podie

Original Poster:

46,649 posts

305 months

Thursday 4th August 2005
quotequote all
ErnestM said:
Is there a setting in the BIOS that allows you to choose what type of mass storage USB device you have? In other words - tell your BIOS that it is a removable media type or floppy.

ErnestM


Unfortunately not...

Podie

Original Poster:

46,649 posts

305 months

Thursday 4th August 2005
quotequote all
randlemarcus said:
<koff> gdisk, from a Ghost disk

Alternatively, I have had success previously, using Windows PE, all licensed and everything, honest...

Or you could try BartPE, along the same lines...


hmm... might have a look into that tomorrow..

NST

1,523 posts

273 months

Thursday 4th August 2005
quotequote all
i have recently got got a external USB HD bootable with Linux installed (ie a external drive that i can boot Linux from).

anyway if you want to make a USB key bootable you need to place a MBR onthe USB key.
1) insert USB key in USB port. boot up computer, if the key is recognised on BIOS boot up then the chipset supports the USB keys on boot up. this might flash past rather quickly!
2) insert XP recovery disk leave in USB key and re boot computer.go through the usal XP recovery menu pick the command prompt section. find the USB key drive (eg might be g: drive).
3) type in FIXMBR G: this will put a master boot record onthe USB key (ie so the BIOS can see a MBR to read from).

you havea number of options available to you when in command prompt recovery, so have a good look around for formating/boot partition etc etc. you can even install NT4 onthe key (stripped down version).

you will then have a bootable USB key with out a operating system.. you can then place the key executables on the USB key. or you could just down load a DOS usb key image from the web that will make the usb key bootable.

i hope that helps. if you have any probs i could give it a try for you and post up a more detailed step by step guide.