Deleting Ububtu has to be easier than I am making it look

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
vintagepen

Deleting Ububtu has to be easier than I am making it look

Post by vintagepen »

Not sure why I am having these problems now.

I have a 40 gig drive with XP on a 20 gig partition and Lucid Lynx on the other 20 gig partition. it uses some sort of windows ini file which lets me choose Linux (annoyingly not as a default) on start up

I wanted to wipe out ubuntu (and the windows .ini file) and install 14xfce. Gateway 340UI wont let me use a DVD so I installed (32 bit) iso onto a flash USB

The Gateway boots USB and gets me into Mint. It then installs Mint but wont let me wipe the Ubuntu installation which it puts into its own partition. It does let me install Mint onto 14 gig of the 20 gig and proceeds through a full install

But then will only boot into the 6 gig partition which has ubuntu on it???? It still uses the windows ini file which then puts me into the linux boot screen, showing ubuntu, ubuntu recovery mode and XP again!!!

So I go back to booting from the USB drive:-

If I try to delete the 14 gig mint partition and the 6 gig Lucid Lynx partition, it wont write to the disc nor let me make an installable drive out of the resulting 20 gig of space. Whatever I try it tells me that i have no bootable file system and go to the partition menu (of which there is none) to create a bootable sector.

Can anyone make sense of this and show me what I am doing wrong please?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29609
Joined: Wed Jul 06, 2011 3:58 am

Re: Deleting Ububtu has to be easier than I am making it loo

Post by xenopeek »

Open GParted from the Linux Mint installation ISO. Use that to delete the current Ubuntu and Linux Mint partitions. If there are any swap partitions, disable using swap from the terminal with the following command. You should then also be able to remove the swap partition.

Code: Select all

sudo swapoff -a
After applying all changes, start the installer again. It will offer to install alongside Windows XP, so pick that. It should also install the LInux Mint bootloader (GRUB) to the MBR of your hard disk, putting that in control of the boot process.
Image
vintagepen

Re: Deleting Ububtu has to be easier than I am making it loo

Post by vintagepen »

Unusual results from gparted

FIrtly it gives an error message, invalid partition table, recursive partitions

Then it tells me to unmount partitions with numbers higher than 5 (which all of them have) before I can do anything with them (like deleting them)

Most aren't of course mounted. One smaller one was but when I unmounted it and restarted gparted, I got the same unmount error message??
User avatar
xenopeek
Level 25
Level 25
Posts: 29609
Joined: Wed Jul 06, 2011 3:58 am

Re: Deleting Ububtu has to be easier than I am making it loo

Post by xenopeek »

Can you take a screenshot of GParted, with all partitions visible in the window? Then upload the screenshot to http://tinypic.com for example, and share the download link here so we can have a look.
Image
vintagepen

Re: Deleting Ububtu has to be easier than I am making it loo

Post by vintagepen »

[quote="xenopeek"]Can you take a screenshot of GParted, with all partitions visible in the window? Then upload the screenshot to http://tinypic.com for example, and share the download link here so we can have a look.[/quotNo problem but how do you take a screen shot when booting off the iso please?

Is it Cntrl-Shift-4?

XP is on sda1, then (the inaccessable) mint is on the next partition which is sda5. ubuntu is sda6 and the swap partition doesnt seem to have an sda partition number
User avatar
xenopeek
Level 25
Level 25
Posts: 29609
Joined: Wed Jul 06, 2011 3:58 am

Re: Deleting Ububtu has to be easier than I am making it loo

Post by xenopeek »

Alt+Print Screen usually, but depends on your desktop environment. There should be a Screenshot or similar named application in your menu also. On Linux Mint 14 Cinnamon, Alt+Print Screen doesn't ask you but saves the picture directly to the Pictures folder in your home folder.
Image
vintagepen

Re: Deleting Ububtu has to be easier than I am making it loo

Post by vintagepen »

Image is a shot of what happens when I try to delete a partition. Initially it pretends that the partition is mounted, whether it is or isnt

Subsequent attempts to delete the partitions just result in error messages that partitions with numbers greater than SDA4 must be unmounted or that there is an error in the partition table
DataMan

Re: Deleting Ububtu has to be easier than I am making it loo

Post by DataMan »

Your error message is pointing to sdb (2nd hard drive). In the upper right hand corner of GParted, exercise the pull-down and change from sda to sdb. Completing this, do another screen shot of sdb and re-post.

-DataMan
vintagepen

Re: Deleting Ububtu has to be easier than I am making it loo

Post by vintagepen »

DataMan wrote:Your error message is pointing to sdb (2nd hard drive). In the upper right hand corner of GParted, exercise the pull-down and change from sda to sdb. Completing this, do another screen shot of sdb and re-post.

-DataMan
Not sure I understand: This is a laptop and there is no second hard drive. The one being pointed to is the 4 gig ubuntu partition and the error message is received when I try to delete it. There were two partitions before I installed mint. After install, there were multiple, including a tiny one to the far right, which is so small that I assume it is just the mint swap file. If I am wrong in some way, how do i change it from sdb to sda? Exercising the pull down in the top right only moves gparted to the flash memory drive (which it doesnt seem to recognise). Any attempt to unmount any partition gives this error message followed by a grey box in the top right of the screen telling me that the partition has been automatically mounted again.
vintagepen

Re: What is a segmentatoin fault? (if relevant)

Post by vintagepen »

Not sure if this is relevant (almost undoubtedly not) but if i boot into ubuntu and try to update, it identifies 507 packages which need updating and when I try to update, just to see what happens, i get:

E: /var/cache/apt/archives/libc6_2.11.1-0ubuntu7.12_i386.deb: subprocess new pre-installation script killed by signal (Segmentation fault)
DataMan

Re: Deleting Ububtu has to be easier than I am making it loo

Post by DataMan »

The message is showing /dev/sdb (unless my eyes are totally failing me) :D .

-DataMan
vintagepen

Re: Deleting Ububtu has to be easier than I am making it loo

Post by vintagepen »

OK Let's say I checked again and it is definitely sda

As I said, I did change to sdb and all it saw was the flash drive, which it identifies as 8 gig of free space. Changing back again (a trick I used with OSX and non-working networking passcodes) makes no difference to the error message
vintagepen

Re: Deleting Ububtu has to be easier than I am making it loo

Post by vintagepen »

Sorry, you are right, I was looking in the wrong place. Changing anything on SDA results in tihs error message on sdb. If you look at the pull down menu itself, it IS sda and the highlighted box (the parition I am trying to unmount or delete) is definitely on sda
vintagepen

Re: Deleting Ububtu has to be easier than I am making it loo

Post by vintagepen »

so does this mean that you cant use gparted if booting off the flash drive (which is SDB)?
Acanthus

Re: Deleting Ububtu has to be easier than I am making it loo

Post by Acanthus »

I encountered this hideous problem fairly recently when a linux installation crashed. I'm afraid Gparted can't handle this problem unless you install a new ms-dos partition table, which means you'll effectively lose your XP. [If you've got a backup image - I formely used the excellent DriveImage SML - this may not be a problem, but I presume it is.] What worked for me was a an excellent little program called Boot-repair which you can find on a spin called Ubuntu-Security-Remix, or (smaller, about 350 MB) on its own startup disk, available at http://sourceforge.net/p/boot-repair/home/Home/.

But first, just check that the Windows partitioning utility can't do the job for you! It's some time since I used Windows (smirk), but I have the feeling that it did notice - and was able to delete - a linux partition, which it would huffily describe as an Hope this helps."unidentified file system". The utility is somewhere among Administrative Tools - Disk Management.
vintagepen

Re:Gparted does indeed describe it as its own bug!

Post by vintagepen »

Acanthus wrote:I encountered this hideous problem fairly recently when a linux installation crashed. I'm afraid Gparted can't handle this problem unless you install a new ms-dos partition table, which means you'll effectively lose your XP. [If you've got a backup image - I formely used the excellent DriveImage SML - this may not be a problem, but I presume it is.] What worked for me was a an excellent little program called Boot-repair which you can find on a spin called Ubuntu-Security-Remix, or (smaller, about 350 MB) on its own startup disk, available at http://sourceforge.net/p/boot-repair/home/Home/.

But first, just check that the Windows partitioning utility can't do the job for you! It's some time since I used Windows (smirk), but I have the feeling that it did notice - and was able to delete - a linux partition, which it would huffily describe as an Hope this helps."unidentified file system". The utility is somewhere among Administrative Tools - Disk Management.
Thanks Acanthus, I was thinking about that, running ubcd4win and deleting the errant partitions from there. I thought it must be something to do with my using Linux wrongly, rather than not using Windows!! But if I am not runing gparted incorrectly, this may be the only way. Seems surprising! That there is no way of simply deleting a partition on a hard drive when running the OS from a USB drive.
vintagepen

Re: Hey, that boot-repair program is amazing isn't it!

Post by vintagepen »

It didnt actually solve my problem but it certainly repaired the boot issue.

Now, instead of starting with the windows.ini file and getting me into ubuntu, it boots straight into the Mint-installed start menu and into the Mint partition for which it repaired the boot. And of course gets me into Mint, not Ubuntu any longer.

In fact I dont seem to be able to get into ubuntu any longer at all, which isnt particularly important as I only want to use mint. However it does leave me with the 5 gig ubuntu partition along with the 1 gig swap file partition.

Actually it didnt repair the underlying problem because i can still boot off the mint installation flash memory drive and get to INSTALL MINT but when I do, it still wont let me do anything to the ubuntu or swap partitions. I can delete them both (as well as the mint partition) but when I do, I still get the same 'correct partitioning problem from the partition menu' error message.

(fwiw gparted still gives recursive partition as well as cannot delete, - unmount partition, error messages when booting from the USB)

I suppose I will just have to live with this errant 5-6 gig partition. Or I may try to install Puppy over it and see if its install menu also gives me this error message
Locked

Return to “Installation & Boot”