LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-28-2006, 05:52 AM   #1
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Rep: Reputation: 30
gparted broke xp sort of


Hi,

I used Gparted (live cd)on a drive with all space formatted as ntfs (c, and I wanted to break it up in more partitions.

I notice everytime windows is allowed to do partitioning (previously) it leaves about 7 mb as unallocated, this was in front of the primary partition. Why? Not the MBR is it?

Anyway, now xp hangs at the welcome screen or slightly before, says windows xp, and will not boot up, not even in safe mode. Could this unallocated be a problem? Never looked at it a graph before.

If not what else could I do to not have to start over? If I have partition magic should I have used it?

The rest of the way I did things was right, primary, boot flag, extended and logical partitions, etc...

I just used gparted cause I wanted to setup other filesystems for linux like reiser and xfs.

Also I defraged the c: first and it was a brand new install after a zero fill.

Please let me know if more info is needed, cause I am silly and didn't backup.
 
Old 09-28-2006, 09:58 AM   #2
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
You can boot to windows from live cd using grub.....
but first you have to know where your xp live....

try this from grub shell ( I hope gparted using grub ):
root (hd0,0) Enter
makeactive Enter
chainloader +1 Enter
boot Enter

or

root (hd0,1) Enter
makeactive Enter
chainloader +1 Enter
boot Enter
 
Old 09-28-2006, 12:51 PM   #3
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
I don't know how to do that but I would guess that it does boot xp, since the blue task bar goes by and the welcome screen almost arrives. I used system rescue cd to boot (0,0) and it did the same thing.

I know that the 8 mb unallocated is nothing to do with the mbr cause I used ranish and it said that the mbr was separate. I also tried to use fdisk/mbr was gave the same results.

I believe I need to check the primary partition for errors like with a scan disk or something, or possibly use ubcd4win to solve the problem.

Any other suggestions welcome.
 
Old 09-29-2006, 06:05 AM   #4
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
Could you give me your complete partition table on your system? Just run gparted live cd again, and maybe you could post the picture or describe it with something like this:

==============================
| | |
| 8 gb windows | 2 gb linux |
| | |
==============================

If you want to boot to your windows from live cd using my method, boot your gparted live cd:
it will give you prompt... when you hit enter, it will boot the linux kernel, and window manager and so on.......
but don't hit enter.... press c or e ( I don't remember )
You will get the grub shell and could try my method.
 
Old 09-29-2006, 02:32 PM   #5
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
one 160 gig drive

c:windows (primary, boot, 30gig), d:win page file partiton (4gig)e:win home(30gig) the rest unallocated for linux not setup yet.

approx 15-20% of c: is used.

oh,

dev/hda
 
Old 09-30-2006, 03:38 AM   #6
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
First: Use of partition magic or partition manager is highly recommended for such operations. If you want to use other file systems, format all linux partitions as ext3 in partition magic and then use gparted or qtparted or anything else to change the filesystem. Partition manager can also handle reiserfs.

Second: Windows XP usually leaves 7 mb unallocated at the end of the disk. I don't know why. It's probably a bug. However, you say that you have 7 mb at the beginning of the disk which makes me think that gparted might have read the partition table in a wrong way and then written down the wrong partition table to the mbr. I believe, though, that this is not the case here because you say that you can see the xp logo.

Third: Use microsoft's chkdsk to check this partition for errors. Boot from the XP cdrom, press R to enter the recovery console and run chkdsk. It will probably solve all of your problems.

Finally: If you can boot into xp (i.e. see the xp logo), there is no reason to try these grub commands.
 
Old 09-30-2006, 12:37 PM   #7
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
kind of figured that thanks. Does anyone know if this is a problem with gparted.
 
Old 10-11-2006, 06:29 PM   #8
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
chkdsk didn't work. And for some reason I can't get ubcd4win to work. I will not build the .iso
 
Old 10-11-2006, 09:35 PM   #9
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Rep: Reputation: 38
To me it seems that you need to reinstall your wxp and I don't think you need such a large page file for windows, besides windows will create one on the available drives anyway; you do not need a separate partition for this. Personally (I build computers for a living) I set up a hard drive for windows and linux as follows:

in case you need acces to a common storage partition from both os it would look something like this:

C:\ drive for wxp to live on 10 to 15 Gb is heaps! (including its page file) use ntfs.

install wxp there and then boot up your live distro and partition the rest of your hard drive with either qtparted or gparted (I am unfamiliar with the latter) as follows:

c:win 10gb ntfs | linux / partition 10gb ext3 | 512Mb swap | remainder (extended) fat32 |

you could choose to chop the fat32 partition into multiple chunks or even format part of it as ext3. bare in mind though that all Linux native formats are not recognized by windows.

in order to get maximum use out of your fat32 partition in Linux you need to change a line in fstab, example:

/dev/hdb1 /mnt/hdb1 vfat,ext3,ext2,reiserfs auto,umask=000 0 0

this will make it as easy accesible in linux as in windows. I know this has a security risk as anyone can modify and all, but not more than it already had under wxp.

in order to save space on your windows xp partition you should install all non hardware related software on the fat32 partition (not on C:\) I personally install all drivers and related software on C:\ including some system utilities like a firewall and anti virus software. all the rest on the storage partition.

Ron.
 
Old 10-11-2006, 09:37 PM   #10
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Rep: Reputation: 38
and btw, that line in fstab goes into the static section so it is already mounted when linux boots
 
Old 10-11-2006, 10:00 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
The gparted liveCD is fine for resizing NTFS.
However the partition used for booting (usually C: in M$oft parlance) can't have its starting location physically moved. You have to "shrink" from the end, not the start.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gParted Help carlosinfl Linux - Software 6 09-26-2006 08:41 PM
Is there a line limit with the sort utility? Trying to sort 130 million lines of text gruffy Linux - General 4 08-10-2006 08:40 PM
After using Gparted tombiz Ubuntu 5 07-13-2006 04:38 PM
GParted mtecknology Linux - Software 1 07-25-2005 10:11 AM
I broke apt, sort of coldsalmon Debian 4 06-08-2005 04:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration