GRUB
From Alessandro's Wiki
Revision as of 09:05, 2 May 2012 by Xunil (talk | contribs) (→Installare GRUB nel Master Boot Record ( famoso MBR))
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
Installing GRUB in the Master Boot Record
- 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
- find grub copies:
grub> find /grub/stage1
- or...
grub> find /boot/grub/stage1
- grub (/usr/sbin/grub)
grub> device (hd0) /dev/sdb (/dev/hdb for ide) 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