Raspberry Pi Getting Started Guide
Page 9
In this case a 128MB card is used (reported as 128450560 bytes by
fdisk
above), thus
128450560 / 255 / 63 / 512 = 15.6 rounded down to 15 cylinders. There are 255 heads, 63 sectors,
512 bytes per sector.
So far so good, now we want to create two partitions: one for the boot image, one for our distro.
Create the FAT32 partition for booting and transferring files from Windows. Mark it as bootable.
===========================================================================
Expert command (m for help): r
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-245, default 1): (press Enter)
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-245, default 245): +50
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): c
Changed system type of partition 1 to c (W95 FAT32 (LBA))
Command (m for help): a
Partition number (1-4): 1
===========================================================================
Create the Linux partition for the root file system.
===========================================================================
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (52-245, default 52): (press Enter)
Using default value 52
Last cylinder or +size or +sizeM or +sizeK (52-245, default 245):(press
Enter)
Using default value 245
===========================================================================
Print and save the new partition records.
===========================================================================
Command (m for help): p
Disk /dev/sdc: 2021 MB, 2021654528 bytes
255 heads, 63 sectors/track, 245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes