Difference between revisions of "GRUB"
From Alessandro's Wiki
Porcelinux (talk | contribs) |
Porcelinux (talk | contribs) |
||
Line 1: | Line 1: | ||
= Grub 2.x (1.999x) = | |||
* command that prints out configuration: | * command that prints out configuration: | ||
grub-mkconfig | grub-mkconfig | ||
* prints out the list of partitions included in boot loader and writes the file to disk. (default path in [[Gentoo]] ) | |||
grub-mkconfig -o /boot/grub/grub.cfg | grub-mkconfig -o /boot/grub/grub.cfg | ||
= Grub 1.X = | |||
[http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10 Link a una documentazione...] | [http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10 Link a una documentazione...] |
Revision as of 11:53, 3 September 2011
Grub 2.x (1.999x)
- command that prints out configuration:
grub-mkconfig
- prints out the list of partitions included in boot loader and writes the file to disk. (default path in Gentoo )
grub-mkconfig -o /boot/grub/grub.cfg
Grub 1.X
Installare GRUB nel Master Boot Record ( famoso MBR)
- Con grub-install
grub-install /dev/hda
o meglio... (se si sta installando il sistema)
chroot /mnt/sysimage/
- con la directory boot sta nella /
/sbin/grub-install --root-directory=/boot /dev/md1
- con la directory boot è una partizione
/sbin/grub-install --root-directory=/ /dev/md0
- Con grub (/usr/sbin/grub)
grub> root (hd0,0) (La partizione di boot, Disco 0 Partizione 0) grub> setup (hd0) (Installa GRUB nel MBR) grub> quit (Esci dalla shell GRUB)
Immagine sfondo grub
1. xpm.gz file 2. 640x480 3. 14 colors 4. copiare in /boot/grub 5. gzip myfile.xpm
VGA modes
| 640x480 800x600 1024x768 1280x1024 ----+------------------------------------- 256 | 0x301 0x303 0x305 0x307 32k | 0x310 0x313 0x316 0x319 64k | 0x311 0x314 0x317 0x31A 16M | 0x312 0x315 0x318 0x31B