Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Deletion and reinstallation of partitions help (newbie)

  1. #1
    Join Date
    Aug 2009
    Beans
    32

    Deletion and reinstallation of partitions help (newbie)

    So, yesterday I had installed Ubuntu. Unfortunately, I didn't allocate enough space for the partition and I ran out. I didn't want to deal with resizing partitions on my own since this is my first time doing anything, and I was told to just reinstall Ubuntu. Unfortunately, I thought it would overwrite the other Ubuntu partition, which it didn't. I allocated a lot more space this time for my new Ubuntu, but again it was used up almost instantly, probably because I was importing files from Windows.

    Now I'm left with some problems and questions. I want to reinstall Ubuntu for the last time, while deleting the old Ubuntu's. Only problem is, one of the Ubuntu's are my primary boot OS. How can I change the primary boot OS from Ubuntu to vista? And if I change that, I'll be able to delete the Ubuntu partitions and install Ubuntu again with no problem, right?

    Basically, I really, really, really want to know how to make Vista my primary boot OS rather than Ubuntu.

    I also do NOT have the Vista installation CD.

  2. #2
    Join Date
    Apr 2009
    Location
    Texas
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Deletion and reinstallation of partitions help (newbie)

    ok dont worry all will be well...first off as long as you have ubuntu installed with Grub...and unless you change your settings wing BUM you will have to select which OS to use...first post results of this.... sudo gedit /boot/gub/menu.lst

    also im thinking that you can just format both partitions using Gparted and resize them to the final size you want then re-install!! post for any issues you run into!!
    Ubuntu Christian Edition chat on irc at server: OFTC/channel: #ubuntuCE
    BootInfoScript DualBooting
    Grub Grub2 MBR/GRUB
    Boot Info Script courtesy of community member meierfra and ghulselmans

  3. #3
    Join Date
    May 2009
    Beans
    1,934
    Distro
    Ubuntu Studio 9.10 Karmic Koala

    Re: Deletion and reinstallation of partitions help (newbie)

    To get rid of the two Ubuntu installs,

    1. Boot the LiveCD into the boot disk without making changes option and go to System>Administration>Partition Editor.

    2. Delete both Ubuntu partitions and if there are more than one SWAP partitions, delete the second one.

    3. After the partitioning is done. close the program and click the Install Ubuntu icon on the desktop.

    Before I give any more steps can you tell me how much space the Ubuntu partitions are using?
    Last edited by running_rabbit07; August 22nd, 2009 at 07:43 PM.

  4. #4
    Join Date
    Aug 2009
    Beans
    32

    Re: Deletion and reinstallation of partitions help (newbie)

    Quote Originally Posted by running_rabbit07 View Post
    To get rid of the two Ubuntu installs,

    1. Boot the LiveCD and go to System>Administration>Partition Editor.

    2. Delete both Ubuntu partitions and if there are more than one SWAP partitions, delete the second one.

    3. After the partitioning is done. close the program and click the Install Ubuntu icon on the desktop.

    Before I give any more steps can you tell me how much space the Ubuntu partitions are using?
    My first Ubuntu only had 2.3gb, I didn't know I had to manually add more space during installation. My second one had 8gb, I thought it would be enough considering I thought it would get rid of the old partition. My next one is probably gonna have a good 30gb. If I delete the Ubuntu's, and install another one, will I still get the grub menu when I startup my computer, making Vista selectable?

  5. #5
    Join Date
    Jul 2009
    Location
    san jose, CA, USA
    Beans
    58
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Deletion and reinstallation of partitions help (newbie)

    1. Load LiveCD
    2. Use "Partition Editor" to delete all unwanted partitions ( unused Ubuntu,.... ) - "Apply" it!
    3. Use LiveCD again to install Ubuntu (this time Ubuntu will install on the unallocated space of the disk.
    4. Reboot PC ( take out the CD)
    5. PC should come up with Ubuntu as default and your Windows would be in the selection list also.
    6. Go and edit /boot/grub/menu.lst to select Windows as your default OS. (should be easy but read GRUB manual before going to do it!)

  6. #6
    Join Date
    Jul 2006
    Beans
    1,876
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Deletion and reinstallation of partitions help (newbie)

    1. On the Ubuntu livecd is a program called "Partition Editor" (gparted). You can run that to add/delete/resize partitions. Do NOT delete any NTFS or FAT partitions found.
    2. Open menu.lst (letter L) as root...
    Code:
    gksudo gedit /boot/grub/menu.lst
    and count your kernel entries (including Windows). In this example...
    Code:
    ## ## End Default Options ##
    
    title		Ubuntu 9.04, kernel 2.6.28-15-generic
    root		(hd0,5)
    kernel		/boot/vmlinuz-2.6.28-15-generic root=/dev/sda6 ro quiet splash vga=771 
    initrd		/boot/initrd.img-2.6.28-15-generic
    quiet
    
    title		Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode)
    root		(hd0,5)
    kernel		/boot/vmlinuz-2.6.28-15-generic root=/dev/sda6 ro  single
    initrd		/boot/initrd.img-2.6.28-15-generic
    
    title		Ubuntu 9.04, memtest86+
    root		(hd0,5)
    kernel		/boot/memtest86+.bin
    quiet
    
    ### END DEBIAN AUTOMAGIC KERNELS LIST
    
    # This is a divider, added to separate the menu items below from the Debian
    # ones.
    title		Other operating systems:
    root
    
    
    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sdb1
    title		Microsoft Windows XP Home Edition
    rootnoverify	(hd1,0)
    savedefault
    map		(hd0) (hd1)
    map		(hd1) (hd0)
    chainloader	+1
    Windows is #4. Go here...
    Code:
    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    #
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    # WARNING: If you are using dmraid do not use 'savedefault' or your
    # array will desync and will not let you boot your system.
    default		0
    and change the 0 to whatever number Windows is then save the file.

  7. #7
    Join Date
    Aug 2009
    Beans
    32

    Re: Deletion and reinstallation of partitions help (newbie)

    Quote Originally Posted by Shazaam View Post
    1. On the Ubuntu livecd is a program called "Partition Editor" (gparted). You can run that to add/delete/resize partitions. Do NOT delete any NTFS or FAT partitions found.
    2. Open menu.lst (letter L) as root...
    Code:
    gksudo gedit /boot/grub/menu.lst
    and count your kernel entries (including Windows). In this example...
    Code:
    ## ## End Default Options ##
    
    title        Ubuntu 9.04, kernel 2.6.28-15-generic
    root        (hd0,5)
    kernel        /boot/vmlinuz-2.6.28-15-generic root=/dev/sda6 ro quiet splash vga=771 
    initrd        /boot/initrd.img-2.6.28-15-generic
    quiet
    
    title        Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode)
    root        (hd0,5)
    kernel        /boot/vmlinuz-2.6.28-15-generic root=/dev/sda6 ro  single
    initrd        /boot/initrd.img-2.6.28-15-generic
    
    title        Ubuntu 9.04, memtest86+
    root        (hd0,5)
    kernel        /boot/memtest86+.bin
    quiet
    
    ### END DEBIAN AUTOMAGIC KERNELS LIST
    
    # This is a divider, added to separate the menu items below from the Debian
    # ones.
    title        Other operating systems:
    root
    
    
    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sdb1
    title        Microsoft Windows XP Home Edition
    rootnoverify    (hd1,0)
    savedefault
    map        (hd0) (hd1)
    map        (hd1) (hd0)
    chainloader    +1
    Windows is #4. Go here...
    Code:
    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    #
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    # WARNING: If you are using dmraid do not use 'savedefault' or your
    # array will desync and will not let you boot your system.
    default        0
    and change the 0 to whatever number Windows is then save the file.
    What do you mean open menu.lst as root? I put in the code you told me in a terminal and I got a blank notepad type window.

  8. #8
    Join Date
    Jul 2009
    Location
    san jose, CA, USA
    Beans
    58
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Deletion and reinstallation of partitions help (newbie)

    Quote Originally Posted by HolyMythos View Post
    What do you mean open menu.lst as root? I put in the code you told me in a terminal and I got a blank notepad type window.
    $sudo -i

    ....

    #<your editor> /boot/grub/menu.lst

  9. #9
    Join Date
    Aug 2009
    Beans
    32

    Re: Deletion and reinstallation of partitions help (newbie)

    Quote Originally Posted by nhanquy View Post
    $sudo -i

    ....

    #<your editor> /boot/grub/menu.lst
    I did that and still got a blank menu.lst

  10. #10
    Join Date
    May 2009
    Beans
    1,934
    Distro
    Ubuntu Studio 9.10 Karmic Koala

    Re: Deletion and reinstallation of partitions help (newbie)

    Quote Originally Posted by HolyMythos View Post
    My first Ubuntu only had 2.3gb, I didn't know I had to manually add more space during installation. My second one had 8gb, I thought it would be enough considering I thought it would get rid of the old partition. My next one is probably gonna have a good 30gb. If I delete the Ubuntu's, and install another one, will I still get the grub menu when I startup my computer, making Vista selectable?
    Yes, you will get the dual boot option.
    To get rid of the two Ubuntu installs,

    1. Boot the LiveCD into the boot disk without making changes option and go to System>Administration>Partition Editor.

    2. Delete both Ubuntu partitions and the SWAP partitions.

    3. Click on and resize your NTFS partition to fill the unallocated space where the Ubuntus were.

    4. Close the partition editor and click on the Install icon on the desktop and start the process again. You don't have to use 30 gigs but if you have the space go for it.

    5. In the install partitioner you can drag the slider to give the installer 30 gigs.

    6. Let the installer do it's thing and you will have a complete installation in 20 to 30 minutes. Grub will install itself and you will have a dual boot system.

Page 1 of 2 12 LastLast

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
  •