1

Topic: Problem repairing partition before resize

I am currently running Ubuntu v10.04 from a 2GB usb and my 120GB hard drive currently has a 105GB partition for windows XP, a 7GB partition for windows system recovery, and it should have a ~10GB partition for an older version of Ubuntu I installed earlier that I want to get rid of, but it's not showing up and I have no idea why... I used the 9.04 wubi install of ubuntu, so i'm guessing that it made it a part of the windows partition? Either way, I'm attempting to resize the windows partition to make room for a fresh install of ubuntu 10.04 alongside XP, but I can't even unmount the windows partition until I perform a check and repair of it. My problem is that when I run the operation, it stops about 20 seconds in and gives me an error message. To make matters worse, trying to save the error details crashes the system O_o

I'm guessing what I have to do is get rid of the earlier ubuntu install and run a recovery for windows xp? I wouldn't know how to do that however because something (probably the earlier ubuntu install) messed up the boot system, and I can't start windows up now--which is probably why it needs to be repaired, and probably the source of the problem in the first place :/

All I have is a screen capture I took of as much as could get from the error details without crashing, hope it helps!

Other (useful?) information:
running newest version I could find of gparted live
I've tried running the program in both ubuntu and as a live usb

http://www.nehall.me/sys/src/132710392345.png

2

Re: Problem repairing partition before resize

Oh, and here are the outputs from fdisk -l -u and parted /dev/sda1 unit s print:

ubuntu@ubuntu:~$ fdisk -l -u
ubuntu@ubuntu:~$ parted /dev/sda1 unit s print
WARNING: You are not superuser.  Watch out for permissions.
Error: Error opening /dev/sda1: Permission denied

Stupid permissions... obviously that didn't work as expected -_-

3

Re: Problem repairing partition before resize

fdisk command requires root permissions.
You can login as root, or precede the sommands by 'sudo' .

The exclamation mark ! in the triagle next to the partition name appears often in case this partition is mounted. In this case GParted can report partition info but can't do any modifying operation on it.

*** It is highly recommended to backup any important files before doing resize/move operations. ***

4

Re: Problem repairing partition before resize

If you performed a wubi install of Ubuntu previously, then Ubuntu will be installed into a file in one of the Windows partitions.  To my knowledge, a separate partition is not created for a wubi install.

If you do not need the old Ubuntu install and Windows does not boot, then you might wish to look at the GParted FAQ to learn how to restore Windows boot.