EasyManua.ls Logo

Element14 Raspberry Pi - Page 9

Element14 Raspberry Pi
14 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Now we want to set the geometry to 255 heads, 63 sectors and calculate the number of
cylinders required for the particular SD/MMC card:
===========================================================================
=====
Expert command (m for help): h
Number of heads (1-256, default 4): 255
Expert command (m for help): s
Number of sectors (1-63, default 62): 63
Warning: setting sector offset for DOS compatiblity
===========================================================================
=====
NOTE: Be especially careful in the next step. First calculate the number of cylinders as
follows:
B = Card size in bytes (you got it before, in the second step when you printed the info
out)
C = Number of cylinders
C=B/255/63/512
When you get the number, you round it DOWN. Thus, if you got 108.8 you'll be using 108
cylinders.
===========================================================================
=====
Expert command (m for help): c
Number of cylinders (1-1048576, default 1011): 15
===========================================================================
=====
In this case 128MB card is used (reported as 128450560 bytes by fdisk above), thus
128450560 / 255 / 63 / 512 = 15.6 rounded down to 15 cylinders. Numbers 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