LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I want my Ubuntu Load (https://www.linuxquestions.org/questions/linux-newbie-8/i-want-my-ubuntu-load-311258/)

fireedo 04-08-2005 07:39 PM

I want my Ubuntu Load
 
I just install the new Ubuntu Hoary 5.04 to my PC with Suse 9.2 is the default now I want to ask how to configure the GRUB loader setting?

what Vmlinuz bla bla I must fill with?
what initrd bla bla I must fill with?


for example now I can do triple booting with SUSE 9.2, Win XP, FC3 and now I want Ubuntu because I fell Ubuntu is a great one.... I like it when I try The live CD version... :)
why I need vmlinuz and initrd....? because maybe I need it like my FC3....like this :

section name Fedora Core 3
section type Image
kernel (hd0,2)/boot/vmlinuz-2.6.9-1.667 root=/dev/hdb3 splash=verbose selinux=0
initrd (hd0,2)/boot/initrd-2.6.9-1.667.img

now I have installed my Ubuntu into hdb2 or (hd0,1)

this is my hdd mapping :

linux:/home/suse # fdisk -l

Disk /dev/hdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 5130 41206693+ 7 HPFS/NTFS
/dev/hdb2 5131 6704 12643155 83 Linux
/dev/hdb3 6705 8286 12707415 83 Linux
/dev/hdb4 8287 14592 50652945 f W95 Ext'd (LBA)
/dev/hdb5 8287 8414 1028128+ 82 Linux swap / Solaris
/dev/hdb6 8415 14592 49624753+ 83 Linux

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 5609 45054261 7 HPFS/NTFS
/dev/sda2 5610 14592 72155947+ f W95 Ext'd (LBA)
/dev/sda5 5610 14592 72155916 7 HPFS/NTFS


and this is my boot/GRUB

linux:/home/suse # cat /boot/grub/menu.lst
# Modified by YaST2. Last modification on Sat Apr 9 06:45:40 2005


color white/blue black/light-gray
default 0
timeout 4
gfxmenu (hd0,5)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 9.2
kernel (hd0,5)/boot/vmlinuz root=/dev/hdb6 vga=0x317 selinux=0 splash=silent resume=/dev/hdb5 desktop elevator=as showopts
initrd (hd0,5)/boot/initrd

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows XP SP2
unhide (hd1,0)
rootnoverify (hd1,0)
map (hd1) (hd0)
makeactive
chainloader +1
boot

###Don't change this comment - YaST2 identifier: Original name: linux###
title Fedora Core 3
kernel (hd0,2)/boot/vmlinuz-2.6.9-1.667 root=/dev/hdb3 splash=verbose selinux=0
initrd (hd0,2)/boot/initrd-2.6.9-1.667.img

###Don't change this comment - YaST2 identifier: Original name: linux###
title Ubuntu
kernel (hd0,1)/boot/vmlinuz root=/dev/hdb2 splash=rle
initrd (hd0,2)/boot/initrd.gz

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 9.2
kernel (hd0,5)/boot/vmlinuz root=/dev/hdb6 showopts ide=nodma apm=off acpi=off vga=normal noresume selinux=0 barrier=off nosmp noapic maxcpus=0 3
initrd (hd0,5)/boot/initrd


so can anybody or someone can help me please

thanx a lot :)

DeusExLinux 04-09-2005 12:17 AM

man grub...

:)


The vmlinuz is your kernel image (that IS you kernel, basically... and your comptuer needs that to boot and, well, work). initrd

Quote:


DESCRIPTION
The special file /dev/initrd is a read-only block device. Device
/dev/initrd is a RAM disk that is initialized (e.g. loaded) by the boot
loader before the kernel is started. The kernel then can use the the
block device /dev/initrd's contents for a two phased system boot-up.

In the first boot-up phase, the kernel starts up and mounts an initial
root file-system from the contents of /dev/initrd (e.g. RAM disk ini-
tialized by the boot loader). In the second phase, additional drivers
or other modules are loaded from the initial root device's contents.
After loading the additional modules, a new root file system (i.e. the
normal root file system) is mounted from a different device.
BOOT-UP OPERATION
When booting up with initrd, the system boots as follows:

1. The boot loader loads the kernel program and /dev/initrd's con-
tents into memory.

2. On kernel startup, the kernel uncompresses and copies the contents
of the device /dev/initrd onto device /dev/ram0 and then frees the
memory used by /dev/initrd.

3. The kernel then read-write mounts device /dev/ram0 as the initial
root file system.

4. If the indicated normal root file system is also the initial root
file-system (e.g. /dev/ram0 ) then the kernel skips to the last step
for the usual boot sequence.
5. If the executable file /linuxrc is present in the initial root
file-system, /linuxrc is executed with uid 0. (The file /linuxrc
must have executable permission. The file /linuxrc can be any valid
executable, including a shell script.)

6. If /linuxrc is not executed or when /linuxrc terminates, the nor-
mal root file system is mounted. (If /linuxrc exits with any file-
systems mounted on the initial root file-system, then the behavior of
the kernel is UNSPECIFIED. See the NOTES section for the current
kernel behavior.)

7. If the normal root file has directory /initrd, device /dev/ram0 is
moved from / to /initrd. Otherwise if directory /initrd does not
exist device /dev/ram0 is unmounted. (When moved from / to /initrd,
/dev/ram0 is not unmounted and therefore processes can remain running
from /dev/ram0. If directory /initrd does not exist on the normal
root file-system and any processes remain running from /dev/ram0 when
/linuxrc exits, the behavior of the kernel is UNSPECIFIED. See the
NOTES section for the current kernel behavior.)

8. The usual boot sequence (e.g. invocation of /sbin/init) is per-
formed on the normal root file system.
When all else fails check the man pages (where that came from)...

the initrd isn't required... but, if the distro says use it... use it.

You will find whatever vmlinuz and initrd files you need to add into the GRUB boot menu in that partition's /boot file. add them into the grub menu in something like this


title Whatever You want it to say on the Grub menu
kernel (hd0,X)/boot/path-to-vmlinuz
initrd (hd0,X)/boot/bath-to-initrd

where (hd0,X) is your Ubuntu partition... Grub does naming of HD partitions different than Devs and devfs...

(hd0) is your first hard disk, then it starts counting the partitions from 0

so if your first partition was Mandrake, and your second Ububtu, Mandrake would be (hd0,0) and Ubuntu would be (hd0,1)

Nishtya 04-11-2005 09:48 AM

I see Ubuntu is already in your grub menu that you posted. Unless you upgraded the kernel in Ubuntu and want to add option booting to that additional kernel, I can only imagine you mean how to make Ubuntu your default.

The first choice in that grub menu.lst is the one that boots if you do nothing. So use the text editor of your choice as root, and edit the file to bring the ubuntu entry to the top of the list, swap places with the SUSE entry that is there now (include all the lines for each when you move the entries) Save, reboot. Ubuntu will be default choice


All times are GMT -5. The time now is 06:21 AM.