Megaleecher.Net

Making technology work for you...

Get Your Free Subscription By Email:

Create iPhone Bootable USB Disk And Use It To Install Windows XP/7/Vista, Create Rescue Disk, Run Live Distros And Much More

Having a bootable USB disk drive comes in handy, and what else can be better then to have your bootable computer rescue kit or favorite linux distro right with you on your iPhone, as my previous post shared how you can make your iPhone work as a mass storage device somebody used USB Drive creatively making it work as a bootable disk drive which lets you use iPhone as a bootable computer rescue kit, launch Windows setup, and use other bootable USB distros/live cd's.


Here is the exact method to make your iPhone a bootable disk drive:

After the release of USB DRIVE by dmytro, we can now make iPhone a bootable usb stick/hard disk and use it to install Windows XP/7/Vista,run LIVE USB distros, Backtrack, Ubuntu and anything else you might think of.

Tests where done on iPhone 3GS and iPhone 3G with success.

What is the use of it:

You can boot your PC using iPhone as the bootable device, and launch some or more of the following: (yes, altogether!)

Windows 7 Setup or Windows Vista Setup
Windows XP Setup
Backtrack 3 or 4
PartedMagic
Ghost boot disk
Ubuntu Live Usb
Windows XP Live CD
MemTest
Freedos

and anything else you might think of. You will have a powerful tool on your hands , anywhere you are. (provided you carry the cable along, of course )

Also, you'll have the rest of the partitioned space availabe for use with your files (applications, documents, music, videos etc) accesible by any PC or Mac.

What you'll need:

1. Jailbroken iPhone w/Cydia
2. USB Drive by dmytro.
3. A PC with Windows Vista or Windows 7
4. WinSetupFromUSB (http://www.datafilehost.com/download-a717212e.html)

Here we go:

1. Having installed USB DRIVE, create a partition of your desired size, set to Mass Storage mode and reboot your iPhone.

2. After iPhone boots, you'll see a new drive on your Comuter. If the drive does not appear, you probably have iTunes installed on the PC and the iTunes driver messes with the mass storage driver. To solve this, open Device Manager, go to Universal Serial Bus Controllers, find Apple USB Mobile Device Driver , right click on it and choose "update driver". Choose "manually install driver", "select from list" and you'll see 2 drivers, the Apple one and the USB Mass storage one.Choose the USB Mass storage one and continue. If the installation of the driver takes too long, disconnect Iphone. The driver will be installed. Connect it again and you are done.

Note: By updating the above driver, iTunes won't see your iPhone anymore. To revert that, use the above method (n.2) and choose the Apple driver instead. You should do this anytime you wanna switch between mass storage mode and iTunes mode.

3. Upon completion of the driver update, Windows might ask you to restart in order for the changes to take effect. Ignore that and go to step 4.

4. Open a command prompt with administrative rights (in Vista or Windows 7, click on Start, type CMD , hold down shift+ctrl and press enter. Or you may want to disable UAC instead . (suggested :p ). A command prompt will open with administrative rights. type DISKPART and press enter. it will show : "DISKPART>"

Note: You need to be careful here so you won't change any of your other hard disk partitions. Disconnect any other removable hard disk drives first just in case.

5. in Diskpart , we type the following commands:

LIST DISK (enter)

it will show all of our hard disks, including the iphone usb partition ! (you'll recognize it by the total disk space)
We note what disk number it has on the left, and we select this disk by typing:

SELECT DISK # (e.g. select disk 2, if the iphone partition has the number 2) and we press enter.

Now we type all of the following:

CLEAN (enter)
CREATE PARTITION PRIMARY (enter)
SELECT PARTITION 1 (enter)
FORMAT FS=FAT32 QUICK (enter)
ASSIGN (enter)
ACTIVE (enter)
exit (enter)

and we can exit command prompt. Now we've already created a bootable partition on iphone which we can see in My Computer! (only it doesn't have what to boot with, yet)
Optionally, we can rename our newly appeared disk on my copmuter to "iphone disk" or whatever name we want. (It doesn't have to have the same name that USB DRIVE gave it via iPhone).

6. Now we install WinsetupfromUSB which we downloaded from the link above.

7. When installed , we open it (we ignore the suggestion to use NTFS ) and at option USB DISK SELECTION we choose our newly created iPhone partition (you'll find it be its drive letter or size).

8. We check the option SYSLINUX BOOTSECTOR/DISTRO (leave the path intact)

NOTE: From now on, it's up to you have many boot images you want to install. I'll provide info for 4: Windows XP, Windows 7 or Vista, Backtrack 3 and PartedMagic.
For more boot images, I'll supply at the end of the tutorial my "grub menu.lst" file which you can use as a guide to install more boot images.

9. Copy all the contents of your WINDOWS XP cd into a folder , and under "Windows 2000/XP/2003 Source" click "browse" and select that folder.

10. Copy all the contents of your WINDOWS VISTA or 7 cd into a folder (not both!) , check the option "VISTA/7/SETUP/PE Recovery/iso" and choose that folder.

11. Download Partedmagic 4.5 ISO (http://beefdrapes.partedmagic.com/) . check the optin PARTEMAGIC> v3.... and browse and select the ISO you just downloaded (after unzipping it first)

12. Click "GO" (will take some time, be patient....). It will notify that it was unable to write grub to bootsector, will attempt to write it the MBR. That's ok.

13. When done, we're ready. IPHONE is now a bootable USB disk. You may now choose it from BIOS as the boot device (you'll find it listed as "Softick") and it will give you a boot menu of the all the installations above.

Read Original Post Here >>

Comments

thanks works like a charm!

I have found a way to shorten this by about 10 steps. After installing "USB DRIVE" and crating a new partition on your iphone, download "UNETBOOTIN" to your pc. Take your favorite ISO and use unetbootin to make your usb partition on your iPhone boot-able. Tested with ubuntu on a 2g partition. Took less than 10 minutes!

I'm having a bit of trouble with this app. I'm not new to hacking. I tried creating a new disk through this app and for some unknown reason, it locked up. Now I'm left with a random portion of that data space partitioned off, unusable by iTunes and unrecognized by my laptop or USBDisk. I've been searching fruitlessly for a way to edit/delete partitions on the iPhone. I suppose this is one of the only problems of this app.

I would just restore it to factory settings, but I can't do that: I need the unlock through my jailbreak, and one hasn't been developed yet for the baseband that comes with firmware 3.1.3. I also can't back my ECID up through Cydia because I have a 3G, not 3G[S]. I suppose I can just tough it out without that 2.75GB until the next major release + unlock, but I'd really like to have the space back. I've got a 16GB, and with that partition gone, I have about 2.6GB free.

Did you ever figure out how to get the space back? I'm having the same problem.

I have an iphone 2g, but i have it formatted for mac. When i connect the iphone with the usb cable windows (xp) says that it doesn't recognize it.. Please tell me the only option isn't formatting.. Maybe there's a way to do this on a mac, or format the iphone to work with both mac and windows.
Any help is GREATLY appreciated.

Thanks,
Gabriel

Would you be able to use this idea to put a ps3 into debug mode like the psjailbreak, source code is psgroove @ github

i can create 2 or 3 usb drives on iphone, but i cant select which one to boot from, meaning the other 2 virtual disks i created are useless, because by default, the first created virtual usb disk, is always booted. Above all, the app is great, it's a life saver, may be in future updates, one can create as many virtual usb disks and select which one to boot from when in disk only mode. thanks.

You don't need to create multiple partitions to allow for example install Windows 98, XP , Vista, Seven . All you need is a single partition and make a All in One installation kit, with a menu in witch you select what to install. The records in MBR partition don't matter, all that matter is the ability for a system to boot on that partition. Like i've said, search Google on how to embed multiple windows installations (and also maybe you are interested in custom installs,see Bart's Preinstalled Environment (BartPE) ).

Add new comment

This is just one of the many helpful tips we have posted, You can find more stories here,
Do subscribe to updates using your favorite RSS feed reader or using the secure FeedBurner email update form on top of this post.