Staredit Network > Forums > Technology & Computers > Topic: Boot CD / Stick that formats
Boot CD / Stick that formats
Aug 6 2013, 10:00 am
By: NudeRaider  

Aug 6 2013, 10:00 am NudeRaider Post #1

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

At work I have a stupid simple problem (or so I've thought):

I want to create a bootable CD or USB Stick that automatically (no user input or just a security warning that needs to be acknowledged) formats the first partition ( C:\ drive ).

So far all my attempts have either failed to create a working boot medium (Hiren's / Bart's) (wrong burning settings? -- I'm using CDBurnerXP but can use any free burner) or are not detecting the hard drive (Free DOS) or are only free for personal use (NTFS4DOS).

I guess if I get to a command prompt I can easily find some format.com that can be run from autoexec.bat, so I mainly need instructions which OS bundle to download and exactly with which settings I have to burn it / put it on the stick.
Heck I'd even take a linux solution as long as you add instructions how to automate the format command.




Aug 7 2013, 12:29 am rockz Post #2

ᴄʜᴇᴇsᴇ ɪᴛ!

It should be possible to put in a hiren's boot USB, add a custom .cmd script, and go, but I don't know how to automatically format the first hard drive.

http://www.hiren.info/pages/bootcd-on-usb-disk
this is how to get a bootable usb disk.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Aug 7 2013, 2:51 am ShadowFlare Post #3



As far as a Windows-based boot disk, that would have diskpart on it, which can be scripted. I would be careful about doing this automatically if it is going to be used for computers where the partition layout is unknown, unless the intention is to completely wipe any and possibly all drive(s) in the system. The layout can appear different when booting from another device or OS in a multi-drive or multi-partition system. In a multi-drive system, specifically the device order of the drives may be different when booting from a different drive. As for partitions, they can be in a different order than the drive letters that Windows assigned, and that same drive letter order is unlikely to be picked up automatically by an OS on another drive or partition.



None.

Aug 7 2013, 2:32 pm NudeRaider Post #4

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from ShadowFlare
As far as a Windows-based boot disk, that would have diskpart on it, which can be scripted. I would be careful about doing this automatically if it is going to be used for computers where the partition layout is unknown, unless the intention is to completely wipe any and possibly all drive(s) in the system. The layout can appear different when booting from another device or OS in a multi-drive or multi-partition system. In a multi-drive system, specifically the device order of the drives may be different when booting from a different drive. As for partitions, they can be in a different order than the drive letters that Windows assigned, and that same drive letter order is unlikely to be picked up automatically by an OS on another drive or partition.
I'm aware of that. The PCs that would be treated with the CD are all exactly the same, so I would just need to find out the drive letter of the Windows C:\ drive when booted from the respective medium and could just format it.
It's 2 or 3 partitions, some hidden, so it's likely either C:\ or D:\ .

I'll try your tutorial, rockz, and then report back.

EDIT:
It boots into a menu, not into a command prompt. So I need instructions on what to do to go around and into a command prompt that (hopefully) runs an autoexec.bat.

Post has been edited 2 time(s), last time on Aug 8 2013, 9:35 am by NudeRaider.




Aug 10 2013, 7:09 am rockz Post #5

ᴄʜᴇᴇsᴇ ɪᴛ!

edit isolinux.cfg

There might be a way to only use 1 item and automatically press enter for you. Otherwise, it's just f12, boot to usb, enter.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Oct 18 2013, 11:22 am NudeRaider Post #6

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

I'd like to revive this as I'm going to give it a shot again.

Gonna try my luck with hirens + altered isolinux.cfg but I'd prefer a simpler solution. Seems overkill to download several hundreds of megabytes of tools that won't ever be used just to get into a ntfs command prompt that can format a drive.

Isn't there something like in the old DOS/FAT times where I make a disc bootable, put the OS files on it and have it run an autoexec.bat?!

EDIT:


Post has been edited 1 time(s), last time on Oct 18 2013, 4:22 pm by NudeRaider.




Oct 22 2013, 11:56 am rockz Post #7

ᴄʜᴇᴇsᴇ ɪᴛ!

you can delete all of the extra hiren's stuff. Once you get it working, you make a CD as well and then if you have USB issues, you use the CD.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Oct 29 2013, 9:43 am NudeRaider Post #8

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Had trouble finding the the download for the .iso on Hiren's homepage so I went with this first: http://www.hiren.info/pages/bootablecd (create a MS-DOS boot CD)
But despite using ntfs4dos which enabled access to the HDD I couldn't format because any format.com I used either was wrong OS or refused to format the NTFS drive (even though I'd only need it to be formatted as FAT).

Downloading the full CD from another site now. Already sifting through documentation on how to alter the menu.
Wish me luck.




Nov 2 2013, 3:30 am rockz Post #9

ᴄʜᴇᴇsᴇ ɪᴛ!

Apparently he doesn't host it himself. http://www.hirensbootcd.org/

Mini XP is not technically legal I think.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Nov 3 2013, 11:21 am NudeRaider Post #10

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from rockz
Mini XP is not technically legal I think.
Not even when I provide a valid key?




Nov 5 2013, 12:49 pm rockz Post #11

ᴄʜᴇᴇsᴇ ɪᴛ!

I never knew minixp actually took a key. I always use it for like a day.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Nov 5 2013, 6:54 pm NudeRaider Post #12

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Not sure how to let it "take" the key either but I always thought the CD was independent from the actual license. E.G. that it'd be legal to install XP from a backup of your corporate edition (volume license key) CD despite it being a copy.

Or in other words it doesn't matter where you got the CD from (MS now lets you dl Windows for free anyway) as long as you have a valid key.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
[2024-4-20. : 7:56 pm]
Oh_Man -- lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
Please log in to shout.


Members Online: Roy