LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What does /dev/sda2 correspond to in menu.lst? (https://www.linuxquestions.org/questions/linux-newbie-8/what-does-dev-sda2-correspond-to-in-menu-lst-4175457487/)

pls_help_URGENT 04-09-2013 09:03 AM

What does /dev/sda2 correspond to in menu.lst?
 
sudo os-prober
Code:

No volume groups found
/dev/sda2:openSUSE 11.3 (x86_64):SuSE:linux

Suppose I wish to add the OS found in sda2 in menu.lst, what should be the edit to the following entries?

Code:

sudo cat /boot/grub/menu.lst
# Modified by YaST2. Last modification on Sat Jan 19 17:19:18 IST 2013
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader

default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,4)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.4 - 2.6.37.1-1.2
    root (hd0,4)
    kernel /boot/vmlinuz-2.6.37.1-1.2-desktop root=/dev/disk/by-id/ata-ST3250310AS_6RYNQEXY-part5 resume=/dev/disk/by-id/ata-ST3250310AS_6RYNQEXY-part1 splash=silent quiet showopts vga=0x31a
    initrd /boot/initrd-2.6.37.1-1.2-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.4 - 2.6.37.1-1.2
    root (hd0,4)
    kernel /boot/vmlinuz-2.6.37.1-1.2-desktop root=/dev/disk/by-id/ata-ST3250310AS_6RYNQEXY-part5 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x31a
    initrd /boot/initrd-2.6.37.1-1.2-desktop

###Don't change this comment - YaST2 identifier: Original name: PPP###
title PPP -- openSUSE 11.4 - 2.6.37.1-1.2
    root (hd0,4)
    kernel /boot/vmlinuz-2.6.37.1-1.2-desktop root=/dev/disk/by-id/ata-ST3250310AS_6RYNQEXY-part5 resume=/dev/disk/by-id/ata-ST3250310AS_6RYNQEXY-part1 splash=silent quiet showopts vga=0x31a
    initrd /boot/initrd-2.6.37.1-1.2-desktop



###Don't change this comment - YaST2 identifier: Original name: Linux other###
title Linux other
    rootnoverify (hd0,1)
    chainloader +1


ronlau9 04-09-2013 10:18 AM

Opensuse is still using GRUB 1 in that case it is (hd0,1)

EDDY1 04-09-2013 10:52 AM

The OP also has an installation on (hd0,4) which probably means that previous os wasn't removed but new OS was installed side-by-side.
In either case support has ended on 11.3 & 11.4, unless, 11.4 is Evergreen. The present is 12.2 with support until jan 2014 & future 12.3.

pls_help_URGENT 04-11-2013 07:06 AM

Quote:

Originally Posted by EDDY1 (Post 4928246)
The OP also has an installation on (hd0,4) which probably means that previous os wasn't removed but new OS was installed side-by-side.

Reading that I remember now that previously I had compiled (with changes) once the kernel (do not remember which version) and tried to boot from it. Now that kernel does show up the boot menu at startup.

Meanwhile, could anyone explain me that what is meant by (hd0,4), (hd0,1) etc.
What do they represent?

ronlau9 04-11-2013 03:06 PM

HD0 = sda is the first HD to boot
(HD0.1) is the second partition = sda2 GRUB start counting at Zero
You can read all this on the explanation of GRUB1 just google for it

pls_help_URGENT 04-12-2013 08:58 AM

Thanks, will read about GRUB1.


All times are GMT -5. The time now is 05:34 PM.