- With hostnamectl:
As root:
[root@toolz ~]# hostnamectl set-hostname NEW-HOSTNAME
Then login/logout to see effects
timeout=10 default=0 title Red Hat root (hd0,0) kernel /vmlinuz-2.6.12-15 ro root=LABEL=/ initrd /initrd-2.6.12-15.img title Windows XP rootnoverify (hd0,1) chainloader +1
GRUB Parameter
|
Description
|
|---|---|
| chainloader +1 | Start the first sector or the root specified above |
| default n | Default boot (0=first title, 1=second title, etc.) |
| gfx menu | Path to graphic menu |
| initrd | Initial ramdisk. The kernel will load this file in memory to find configuration details and initial drivers. |
| kernel | Name of the kernel image, folowed by its parameters. The / doesn't represent the file system root, but the one of (hd0,0), so /boot/vmlinuz... |
| root(hdx, y) | All the file accesses will be from this partition (explained below). Here, hd0,0 represent the first partition of the first disk detected by the BIOS. It's the /boot partition |
| rootnoverify | the specified root, not mounted by GRUB (it doesn't support NTFS) |
| timeout | Timeout before default boot |
| title xxxx | Start of a section, entry in GRUB menu |
Installation
GRUB configuration can be found in /etc/grub.conf or /boot/grub/menu.lst (symbolic link). GRUB can be install on the MBR (Master Boot Record, 512 first bits of a disk) or PBR (Partition Boot Record, 512 first bits of a partistion).To install or re-install GRUB - in case of a corrupted MBR, for example on /dev/sda -, use:#/sbin/grub-install /dev/sdaStart and Edit
Options on the GRUB menu