HOWTO:Adding a GRUB 2 item in the boot-menu of Pardus (GRUB Legacy)
(→Find information from grub.cfg) |
|||
| (9 intermediate revisions by one user not shown) | |||
| Line 5: | Line 5: | ||
This is a manual how to add a menu-item from GRUB 2 in the menu-item of Pardus (GRUB Legacy). | This is a manual how to add a menu-item from GRUB 2 in the menu-item of Pardus (GRUB Legacy). | ||
| + | |||
| + | =Find the /dev/value= | ||
| + | Open System > KDE Partition Manager and note the partition value /dev/sd?? '''=<[[2]]>''' of the OS (partition) that uses Grub 2. | ||
=Create/check mounting point for /dev/sd??= | =Create/check mounting point for /dev/sd??= | ||
Open System Settings > Disk Manager and create (Edit button) a mounting point for /dev/sd?? | Open System Settings > Disk Manager and create (Edit button) a mounting point for /dev/sd?? | ||
| + | |||
=Find information from grub.cfg= | =Find information from grub.cfg= | ||
Open Dolphin > Places > partition /dev/sd?? > goto /boot/grub and open (KWrite) the file grub.cfg. | Open Dolphin > Places > partition /dev/sd?? > goto /boot/grub and open (KWrite) the file grub.cfg. | ||
| + | |||
In KWrite > Edit > Find...> | In KWrite > Edit > Find...> | ||
| − | + | menuentry 'Ubuntu, | |
| + | or | ||
| + | menuentry "Ubuntu, | ||
Example: | Example: | ||
### BEGIN /etc/grub.d/10_linux ### | ### BEGIN /etc/grub.d/10_linux ### | ||
Found linux image: /boot/vmlinuz-2.6.31-9-rt | Found linux image: /boot/vmlinuz-2.6.31-9-rt | ||
Found initrd image: /boot/initrd.img-2.6.31-9-rt | Found initrd image: /boot/initrd.img-2.6.31-9-rt | ||
| − | menuentry "Ubuntu, Linux 2.6.31-9-rt" '''=[1]'''{ | + | menuentry "Ubuntu, Linux 2.6.31-9-rt" '''=<[[1]]>''' { |
recordfail=1 | recordfail=1 | ||
if [ -n ${have_grubenv} ]; then save_env recordfail; fi | if [ -n ${have_grubenv} ]; then save_env recordfail; fi | ||
set quiet=1 | set quiet=1 | ||
insmod ext2 | insmod ext2 | ||
| − | set root=(hd0,8) | + | set root=(hd0,8) |
search --no-floppy --fs-uuid --set 663376fb-d638-4581-8e24-ebf04e40b89d | search --no-floppy --fs-uuid --set 663376fb-d638-4581-8e24-ebf04e40b89d | ||
| − | linux /boot/vmlinuz-2.6.31-9-rt '''=[ | + | linux /boot/vmlinuz-2.6.31-9-rt '''=<[[3]]>''' root=UUID=663376fb-d638-4581-8e24-ebf04e40b89d ro quiet splash '''=<[[5]]>''' |
| − | initrd /boot/initrd.img-2.6.31-9-rt '''=[ | + | initrd /boot/initrd.img-2.6.31-9-rt '''=<[[4]]>''' |
} | } | ||
=Creating menu-item= | =Creating menu-item= | ||
Open System Settings > Boot Manager > Add New > Linux and enter the values: | Open System Settings > Boot Manager > Add New > Linux and enter the values: | ||
| − | Tittle > value from [1] or whatever you want | + | Tittle > value from '''<[[1]]>''' or whatever you want |
| − | Disk > value | + | Disk > value from '''<[[2]]>''' |
| − | Kernel > value from [ | + | Kernel > value from '''<[[3]]>''' |
| − | Ramdisk File > value from [ | + | Ramdisk File > value from '''<[[4]]>''' |
| − | Boot options > value [ | + | Boot options > value '''<[[5]]>''' |
| − | OK > Green mark (don't forget this one) > Close System Settings. | + | Select OK > Green mark (don't forget this one) > Close System Settings. |
For the above example this would be: | For the above example this would be: | ||
Tittle > Ubuntu, Linux 2.6.31-9-rt | Tittle > Ubuntu, Linux 2.6.31-9-rt | ||
| − | Disk > | + | Disk > /dev/sda8 |
Kernel > /boot/vmlinuz-2.6.31-9-rt | Kernel > /boot/vmlinuz-2.6.31-9-rt | ||
Ramdisk File > /boot/initrd.img-2.6.31-9-rt | Ramdisk File > /boot/initrd.img-2.6.31-9-rt | ||
Boot options > root=UUID=663376fb-d638-4581-8e24-ebf04e40b89d ro quiet splash | Boot options > root=UUID=663376fb-d638-4581-8e24-ebf04e40b89d ro quiet splash | ||
| + | 'root=UUID=663376fb-d638-4581-8e24-ebf04e40b89d' can be replaced by 'root=/dev/sda8' (value from '''<[[2]]>''') | ||
Latest revision as of 09:17, 15 January 2012
Contents |
Introduction
Pardus uses GRUB Legacy as boot-loader to start your computer.
Some other Linux distributions use GRUB 2.
This is a manual how to add a menu-item from GRUB 2 in the menu-item of Pardus (GRUB Legacy).
Find the /dev/value
Open System > KDE Partition Manager and note the partition value /dev/sd?? =<2> of the OS (partition) that uses Grub 2.
Create/check mounting point for /dev/sd??
Open System Settings > Disk Manager and create (Edit button) a mounting point for /dev/sd??
Find information from grub.cfg
Open Dolphin > Places > partition /dev/sd?? > goto /boot/grub and open (KWrite) the file grub.cfg.
In KWrite > Edit > Find...>
menuentry 'Ubuntu,
or
menuentry "Ubuntu,
Example:
### BEGIN /etc/grub.d/10_linux ### Found linux image: /boot/vmlinuz-2.6.31-9-rt Found initrd image: /boot/initrd.img-2.6.31-9-rt menuentry "Ubuntu, Linux 2.6.31-9-rt" =<1> { recordfail=1 if [ -n ${have_grubenv} ]; then save_env recordfail; fi set quiet=1 insmod ext2 set root=(hd0,8) search --no-floppy --fs-uuid --set 663376fb-d638-4581-8e24-ebf04e40b89d linux /boot/vmlinuz-2.6.31-9-rt =<3> root=UUID=663376fb-d638-4581-8e24-ebf04e40b89d ro quiet splash =<5> initrd /boot/initrd.img-2.6.31-9-rt =<4> }
Open System Settings > Boot Manager > Add New > Linux and enter the values:
Tittle > value from <1> or whatever you want Disk > value from <2> Kernel > value from <3> Ramdisk File > value from <4> Boot options > value <5>
Select OK > Green mark (don't forget this one) > Close System Settings.
For the above example this would be:
Tittle > Ubuntu, Linux 2.6.31-9-rt Disk > /dev/sda8 Kernel > /boot/vmlinuz-2.6.31-9-rt Ramdisk File > /boot/initrd.img-2.6.31-9-rt Boot options > root=UUID=663376fb-d638-4581-8e24-ebf04e40b89d ro quiet splash
'root=UUID=663376fb-d638-4581-8e24-ebf04e40b89d' can be replaced by 'root=/dev/sda8' (value from <2>)