What's new
Apple iPad Forum 🍎

Welcome to the Apple iPad Forum, your one stop source for all things iPad. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[HOW TO] Repartition

pEAcEmAKeR

iPF Noob
Joined
Jul 31, 2011
Messages
198
Reaction score
3
Repartitioning is formatting the disk partitions. You can add, delete, and copy them over. This is needed to boot iOSs via Apple's iBoot. For those who would like to help out should probably learn this quick tutorial first.

Here's a quick repartitioning tutorial for installing the dual-boot. I will use the 8GB iPod touch 1G as an example.

You need:
DMG2IMG
VFDecrypt keys
Disk-Dev cmds
iFile
Mobile Terminal

The first thing you need to do is go into fdisk (format disk). Firstly, you need to give the following files 777 permissions. In case you didn't know, it means Read-Write-Execute permissions. Without them, it would give a Hollywood-like error:
Error: Permission denied.
Set the following files to 777 by tapping the blue arrow to the side of it:

/dev/disk0
/dev/disk0s1
/dev/disk0s2
/dev/disk0s3 (when created)
/dev/rdisk0
/dev/rdisk0s1
/dev/rdisk0s2
/dev/rdisk0s3 (when created)
/usr/sbin/fdisk

Now, open MobileTerminal, and run the following command:
fdisk -e /dev/disk0
You are now running in format disk mode. Next, run the command "print", without quotes, and take a screenshot. E-mail it to yourself. You must keep that in case you mess up and/or need help from me.

Now, run edit:
edit <partition number>
First, you'll need to edit partition 2. The only thing you need to edit is the start-size.

8GB iPod Touch:
Disk: /dev/disk0 geometry: 983/64/63 [3964928 sectors]
Sector size: 2048 bytes
Offset: 0 Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size ]
-------------------------------------------------------------------
1: AF 0 1 1 - 1023 254 63 [ 63 - 153600] HFS+
2: AF 1023 254 63 - 1023 254 63 [ 153720 - 3657465] HFS+
3: AF 1023 254 63 - 1023 254 63 [ 3811185 - 153600] HFS+
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
To edit the start size, you need to run AF. Then, when it prompts you to run in CHS mode, select no.
>AF
>[Do you wish to edit in CHS mode?] no
When you are done setting those then move on to partition 3. You'll need to set the cylinders and sections this time.
>edit 3
AF
[Do you wish to edit in CHS mode?] yes
This might be tricky. All you need to do is pick the maximum number it can hold. So if it says 0-63, you choose 63. In the end, partition 3 should look like this:
3: AF 1023 254 63 - 1023 254 63 [ 0 - 0] HFS+
But wait! You still need to edit the start-size. Don't edit in CHS mode, and set the start-size, too. If the cylinders and et cetera couldn't be edited, then you need to edit the start-size first. Refer to the dual-boot tutorial for your repartitioning tables.

The last thing you need to do is tell it to write the partition tables onto your iDevice.
>write
The MBR could not be fully written.
[A reboot is required for full changes to take effect. Proceed?] no
Then, quit, not exit, to the command line and sync it in.
quit
# sync; sync; sync
There! You have now repartitioned. Be sure not to reboot until you have copied the raw disk over, as shown in the dual boot tutorial.
 
OP
pEAcEmAKeR

pEAcEmAKeR

iPF Noob
Joined
Jul 31, 2011
Messages
198
Reaction score
3
Obviously, you didn't read the first few sentences of my tutorial.
 

Most reactions

Top