PDA

View Full Version : [all variants] Removing dual boot??



stu500
December 22nd, 2009, 03:25 PM
how do i remove a dual boot i have Xubuntu 9.10 as my main OS i also have crunchbang linux 9.04 installed on the same hard drive - i find crunch to minimal so i want to remove/delete it completely with out affecting my xubuntu.

this is what my hard drive looks like.
http://img198.imageshack.us/img198/6827/screenshotjs.th.png (http://img198.imageshack.us/i/screenshotjs.png/)

Most guides seem to be abut removing Linux from a windows machine but i only have linux so any help would be much appreciated.

thanks.

raymondh
December 22nd, 2009, 03:28 PM
http://gparted.sourceforge.net/larry/resize/resizing.htm

Use a liveCD and in live session, access gparted (system > admin > partition editor.

After deleting, you'll need to edit grub.cfg to remove the crunch from GRUB

Regards,

stu500
December 22nd, 2009, 04:32 PM
http://gparted.sourceforge.net/larry/resize/resizing.htm

Use a liveCD and in live session, access gparted (system > admin > partition editor.

After deleting, you'll need to edit grub.cfg to remove the crunch from GRUB

Regards,

Hi raymondh thanks for reply - just to be sure what partitions do i delete?
/dev/sda6 - ext3
/dev/sda7 - linux swap

Where do i edit grub.cfg, in Xubuntu after deleting partitions or do i need to do it from a liveCD?

thanks.

EDIT:
i think this is the grub file - do i delete the section i highlighted in red?


#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set bce42773-427c-4f6c-8c91-cfe81dfcbd87
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-16-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set bce42773-427c-4f6c-8c91-cfe81dfcbd87
linux /boot/vmlinuz-2.6.31-16-generic root=UUID=bce42773-427c-4f6c-8c91-cfe81dfcbd87 ro quiet splash
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set bce42773-427c-4f6c-8c91-cfe81dfcbd87
linux /boot/vmlinuz-2.6.31-16-generic root=UUID=bce42773-427c-4f6c-8c91-cfe81dfcbd87 ro single
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set bce42773-427c-4f6c-8c91-cfe81dfcbd87
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=bce42773-427c-4f6c-8c91-cfe81dfcbd87 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set bce42773-427c-4f6c-8c91-cfe81dfcbd87
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=bce42773-427c-4f6c-8c91-cfe81dfcbd87 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

raymondh
December 22nd, 2009, 05:24 PM
Hi raymondh thanks for reply - just to be sure what partitions do i delete?
/dev/sda6 - ext3
/dev/sda7 - linux swap

Where do i edit grub.cfg, in Xubuntu after deleting partitions or do i need to do it from a liveCD?

thanks.

EDIT:
i think this is the grub file - do i delete the section i highlighted in red?


#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set bce42773-427c-4f6c-8c91-cfe81dfcbd87
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-16-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set bce42773-427c-4f6c-8c91-cfe81dfcbd87
linux /boot/vmlinuz-2.6.31-16-generic root=UUID=bce42773-427c-4f6c-8c91-cfe81dfcbd87 ro quiet splash
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set bce42773-427c-4f6c-8c91-cfe81dfcbd87
linux /boot/vmlinuz-2.6.31-16-generic root=UUID=bce42773-427c-4f6c-8c91-cfe81dfcbd87 ro single
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set bce42773-427c-4f6c-8c91-cfe81dfcbd87
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=bce42773-427c-4f6c-8c91-cfe81dfcbd87 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set bce42773-427c-4f6c-8c91-cfe81dfcbd87
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=bce42773-427c-4f6c-8c91-cfe81dfcbd87 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
What you highlighted seems to be your XUBUNTU install, which I gather, you don't want to remove.

The imageshack png. file you attached .... I can't seem to enlarge it (too small). Kindly re-send. This time, just save the screenshot in your desktop and when posting back, click attach (icon beside the smiley above), browse and upload. As said, cannot see/identify the partitions.

EDIT : what is on sda2 (hda2) ?

tachuela
December 22nd, 2009, 05:59 PM
sda2 is a logical partition. Within it is sda6 that is the one I think you want

stu500
December 22nd, 2009, 06:13 PM
picture of hard drive
140863

yes xubuntu is what i want to keep

not sure what is on sda2 - i think it might be a partition that contains sda5, sda6, sda7 ? but i think sda5 is from xubuntu.

oldfred
December 22nd, 2009, 06:53 PM
You need to be sure which partition is which and you can also delete the second swap but you also need to know which is used by Xubuntu and which by crunchbag. Check your /etc/fstab and if by uuid run sudo blkid to see the UUIDs.

When you boot are you booting Xubuntu's grub.cfg or crunchbag? If crunchbag you can reinstall grub from a boot to Xubuntu. If you have grub2 all you have to do after deleting crunchbag is run update-grub to eliminate the grub.cfg entry.