Results 1 to 7 of 7

Thread: Removing dual boot??

  1. #1
    Join Date
    Feb 2007
    Beans
    16

    Removing dual boot??

    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.


    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.

  2. #2
    Join Date
    Feb 2009
    Beans
    Hidden!

    Re: Removing dual boot??

    http://gparted.sourceforge.net/larry...e/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,
    "The key to everything is patience. You get the chicken by hatching the egg, not by smashing it" .... A. Glasow

  3. #3
    Join Date
    Feb 2007
    Beans
    16

    Re: Removing dual boot??

    Quote Originally Posted by raymondh View Post
    http://gparted.sourceforge.net/larry...e/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?

    Code:
    #
    # 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 ###
    Last edited by stu500; December 22nd, 2009 at 04:40 PM.

  4. #4
    Join Date
    Feb 2009
    Beans
    Hidden!

    Re: Removing dual boot??

    Quote Originally Posted by stu500 View Post
    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?

    Code:
    #
    # 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) ?
    Last edited by raymondh; December 22nd, 2009 at 05:27 PM.
    "The key to everything is patience. You get the chicken by hatching the egg, not by smashing it" .... A. Glasow

  5. #5
    Join Date
    Nov 2007
    Beans
    140
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Removing dual boot??

    sda2 is a logical partition. Within it is sda6 that is the one I think you want

  6. #6
    Join Date
    Feb 2007
    Beans
    16

    Re: Removing dual boot??

    picture of hard drive
    Screenshot.png

    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.
    Last edited by stu500; December 22nd, 2009 at 06:45 PM.

  7. #7
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Removing dual boot??

    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.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •