GRUB entry modification

Hi,

I’ve recently installed suse x64 kde in dual boot mode with windows. I have 2 primary partitions with ntfs with 1 for windows7 boot and other for data/storage. There is no boot provision for data partition. SUSE install is on extended partition. I am unable to run fdisk -l and boot info script for some reason, kde is freaking me out (used to use gnome for last 4 years).

The GRUB shows data as a boot and it added an entry in its menu. I will like to remove that entry from menu list. Please help if you can.

Best,

Dave:sarcastic:

Does you computer boot openSUSE OK?

You cannot boot a data partition (There is no boot provision for data partition.) But you can read it/access it from Linux.

What do you mean kde is freaking out?
Install gnome if you want!

Why can’t you get **fdisk -l ** ?

Yup, booting in suse or win is not a problem, just want to delete unnecessary entries from GRUB menu.ls, the grub shows data partition in menu and i dont want it there.

I configured samba server and i can access the windows partitions from suse.

I am new to kde, used gnome for 4 years but wish to try something new and i was lost, now getting better at it.

managed to get fdisk, please find below -

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0007d4a8

Device Boot Start End Blocks Id System
/dev/sda1 1 5222 41945683+ 7 HPFS/NTFS
/dev/sda2 5223 34997 239167687+ 7 HPFS/NTFS
/dev/sda3 * 34998 38913 31455270 f W95 Ext’d (LBA)
/dev/sda5 34998 35519 4192933+ 82 Linux swap / Solaris
/dev/sda6 35520 36823 10474348+ 83 Linux
/dev/sda7 36824 38913 16787893+ 83 Linux

To edit the menu you can use, from a user terminal

kdesu kwrite /boot/grub/menu.lst

and carefully remove the entry you do not need

You can also do it from Yast - System - Bootloader (be careful)

Right, below please find the menu.ls, if you can could you please let me know whether to uncheck or remove ## from the last windows entry or how.

Modified by YaST2. Last modification on Sat Jun 19 22:11:40 SGT 2010

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,5)/boot/message
##YaST - activate

###Don’t change this comment - YaST2 identifier: Original name: linux###
title Desktop – openSUSE 11.2 - 2.6.31.12-0.2
root (hd0,5)
kernel /boot/vmlinuz-2.6.31.12-0.2-desktop root=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part6 resume=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part5 splash=silent quiet showopts vga=0x317
initrd /boot/initrd-2.6.31.12-0.2-desktop

###Don’t change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe – openSUSE 11.2 - 2.6.31.12-0.2
root (hd0,5)
kernel /boot/vmlinuz-2.6.31.12-0.2-desktop root=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part6 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x317
initrd /boot/initrd-2.6.31.12-0.2-desktop

###Don’t change this comment - YaST2 identifier: Original name: windows 1###
title windows 1
rootnoverify (hd0,0)
chainloader +1

###Don’t change this comment - YaST2 identifier: Original name: windows 2###
title windows 2
rootnoverify (hd0,1)
chainloader +1

If the last entry is the one you need to remove, then delete it all. To leave…

# Modified by YaST2. Last modification on Sat Jun 19 22:11:40 SGT 2010
# 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,5)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.2 - 2.6.31.12-0.2
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.31.12-0.2-desktop  root=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part6  resume=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part5 splash=silent  quiet showopts vga=0x317
    initrd /boot/initrd-2.6.31.12-0.2-desktop

###Don't change this comment - YaST2 identifier: Original name:  failsafe###
title Failsafe -- openSUSE 11.2 - 2.6.31.12-0.2
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.31.12-0.2-desktop  root=/dev/disk/by-id/ata-ST3320418AS_9VMD0YPT-part6 showopts apm=off  noresume edd=off powersaved=off nohz=off highres=off  processor.max_cstate=1 x11failsafe vga=0x317
    initrd /boot/initrd-2.6.31.12-0.2-desktop

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

Done, will check when I restart later.

Yup, it worked. Thanks mate!:slight_smile:

Great. Well done!