07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

oot=/dev/sda<br />

# the partition that contains Debian<br />

root=/dev/sda2<br />

# the item to be loaded by default<br />

default=Linux<br />

# the most recent kernel image<br />

image=/vmlinuz<br />

label=Linux<br />

initrd=/initrd.img<br />

read-only<br />

# Old kernel (if the newly installed kernel doesn't boot)<br />

image=/vmlinuz.old<br />

label=LinuxOLD<br />

initrd=/initrd.img.old<br />

read-only<br />

optional<br />

# only for Linux/Windows dual boot<br />

other=/dev/sda1<br />

label=Windows<br />

Example 8.3<br />

LILO configuration file<br />

8.8.3. GRUB 2 Configuration<br />

GRUB (GRand Unified Bootloader) is more recent. It is not necessary to invoke it after each<br />

update of the kernel; GRUB knows how to read the filesystems and find the position of the kernel<br />

on the disk by itself. To install it on the MBR of the first disk, simply type grub-install /dev/<br />

sda.<br />

NOTE<br />

GRUB and GRUB 2<br />

Squeeze contains both GRUB version 2 and version 1 (also called “GRUB<br />

Legacy”). The grub package installs version 2 (through the package dependency<br />

system), and offers automatic migration during upgrades from Lenny.<br />

GRUB 1 is still available in the package grub-legacy.<br />

NOTE<br />

Disk names for GRUB<br />

GRUB can only identify hard drives based on information provided by the<br />

BIOS. (hd0) corresponds to the first disk thus detected, (hd1) the second, etc.<br />

In most cases, this order corresponds exactly to the usual order of disks under<br />

Linux, but problems can occur when you associate SCSI and IDE disks. GRUB<br />

164 The Debian Administrator's Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!