GRUB Memo

xiaoxiao2021-03-06  56

GRUB Memo

LU_YI_MING (_AT_) sina.com2004.9

GRUB is a good thing! I often use something to write down and I can't think of it.

--------------------------------------------------

Drive letter

Hard disk: (HD0), (HD1) floppy disk: (FD0) CD: Unknown USB disk: unknown

Hard disk partition

(HD0, 1), (HD0, 6)

file path

(HD0, 1) /BOOT/grub/splash.xpm.gz (HD0, 6) /BOOT /GRUB/grub.conf

Find files

Find /Boot/grub/grub.conf

Display file content

Cat (HD0, 6) /BOOT /GRUB/grub.conf

Tips: Display the startup menu, display / etc / fstab file content

Set the current default hard disk partition

Root (HD0, 6)

This root and linux root "/" is not a matter of setting, other commands can save the partition path (HD0, 6)

Restore (installation) GRUB

Root (hd ..) Setup (HD0) Setup (HD0, 6)

LINUX is started: GRUB-INSTALL / DEV / HDA

Read a kernel file into memory

KERNEL (hd ..) / boot / ... Ro root = ...

Read Linux's RAM disk into memory

INITD (hd ..) / boot / ..

Start an operating system that has been read into memory

Boot

Launch a Linux

Root (hd ..) kernel / boot / vmliuz ... Ro root ... initrd / boot / initrd ... boot

Tips: Use this method to install other Linux downloaded to the hard disk

Install a grub on the floppy disk

No in GRUB

LINUX startup: # mke2fs / dev / fd0 # mount -t ext2 / dev / fd0 / mnt # grub-install --root-directory = / mnt FD0 # umount / mnt

Display graphics graphics capability

Vbeprobe

Test graphics card graphics support

Test 0x151 test 792

Note: After the test, the dead machine needs to be restarted.

Replacement background picture

SplashImage (hd ..) / boot / grub / ... xpm.gz

Tips

Tab key: command or file fill in complete

Up and down direction keys: repeat command

ESC button: Exit, return to menu interface

Command help

Help Help root

Compilation support background picture

Http://ruslug.rutgers.edu/~mcgrof/grub-images/

Debian is good!

Making background picture

Design a 640 * 480 graphic file with GIMP, draw something, save it to .XPM file Test.xpm Set color number is 14: Menu: Image -> Mode -> Indexed Gzip Test.xpm, get test.xpm.gz

转载请注明原文地址:https://www.9cbs.com/read-113912.html

New Post(0)