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
Ghost boot disk
Ubuntu Live Usb
Windows XP Live CD
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:
CREATE PARTITION PRIMARY (enter)
SELECT PARTITION 1 (enter)
FORMAT FS=FAT32 QUICK (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.