LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-26-2011, 10:50 PM   #16
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649

@colorpurple21859 The OP's sytsem is non-bootable.
 
Old 11-26-2011, 10:58 PM   #17
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,966

Rep: Reputation: 272Reputation: 272Reputation: 272
One of the reasons that a windows partition can't be resized sometimes is because the virtual memory setting is system managed instead of custom managed. However I failed to read down through the posts for enough to the point where the op mentions windows is unbootable, sorry about that. Does the op have grub installed, if so has he tried booting windows from the grub prompt.
 
Old 11-26-2011, 11:01 PM   #18
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I don't think the OP has had an oportunity to install anything.
 
Old 11-27-2011, 07:33 AM   #19
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,966

Rep: Reputation: 272Reputation: 272Reputation: 272
Quote:
an extended partition in which there is linux and its swap
are you saying you already have linux installed and able to boot it, what is on this linux partition and is it booting?
 
Old 11-27-2011, 08:44 AM   #20
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
I don't see any mention in this thread of the possibility that the ntfs partition is mounted in Linux. If it is mounted, you can't modify it in gparted.

Some liveCDs mount whatever partitions they notice, in order to give you easy access to all your files. I don't know if Ubuntu does that. Or maybe the OP specifically mounted the ntfs partition in the liveCD mode to look at its contents before shrinking it.

In a terminal window you can type the command
mount
to get a list of everything that is mounted.

Edit: I reread the thread more carefully after posting the above, so I see my first theory of the problem is very unlikely.

It appears that Windows has flagged the ntfs directory structure as damaged and needing chkdsk. There is a way to force read/write mount of a damaged ntfs partition, then when it is dismounted I think it will have forgotten it was damaged. Then I think gparted could try to resize it. But that will probably fail because 20% free is not typically enough to resize without defragmenting first and the directory damage might be serious so a resize attempt might trash the contents.

If I were dealing with this in person, I'd figure out how to get the Windows install repaired enough that it could chkdsk and defragment itself. But I'd be blundering around and cursing MS for a long time to get it done (voice of experience here). I don't know the sequence of steps nearly well enough to talk someone through it at a distance.

Last edited by johnsfine; 11-27-2011 at 08:54 AM.
 
Old 11-27-2011, 11:03 AM   #21
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
If I were dealing with this in person, I'd figure out how to get the Windows install repaired enough that it could chkdsk and defragment itself. But I'd be blundering around and cursing MS for a long time to get it done (voice of experience here). I don't know the sequence of steps nearly well enough to talk someone through it at a distance.
Hiren's boot-cd has mini winsxp, the OP can open command terminal from there.
 
Old 11-27-2011, 09:05 PM   #22
fingers99
Member
 
Registered: Nov 2011
Location: Liverpool UK
Distribution: Debian, Knoppix, Kanotix
Posts: 63

Rep: Reputation: Disabled
I think there are also native Windows tools to recover an MBR (but it's years since I ran a dual boot system).
 
Old 11-28-2011, 08:23 AM   #23
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Quote:
Originally Posted by fingers99 View Post
I think there are also native Windows tools to recover an MBR (but it's years since I ran a dual boot system).
But in the situation described in this thread, there is nothing wrong with the MBR.
 
Old 11-28-2011, 09:24 AM   #24
fingers99
Member
 
Registered: Nov 2011
Location: Liverpool UK
Distribution: Debian, Knoppix, Kanotix
Posts: 63

Rep: Reputation: Disabled
Quote:
Originally Posted by johnsfine View Post
But in the situation described in this thread, there is nothing wrong with the MBR.
I'm not at all sure that we're in a position to say that. BWTH.
 
Old 11-28-2011, 10:01 AM   #25
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Quote:
Originally Posted by AncestorZG View Post
when I boot into xp, a hp tool pops up instead of xp, and asks me to erase all my files and restore the system to its factory state. This is another issue, I don't think it's related.
I'm pretty sure that is related. The inability to shrink the xp partition and the inability to boot Windows in that partition both indicate some kind of corruption of that file system.

But the fact that the boot attempt gets as far as it does indicates the MBR is OK and the XP partition boot sector is OK. I think it even indicates ntldr is OK in that XP sector.
 
Old 11-28-2011, 10:27 AM   #26
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,966

Rep: Reputation: 272Reputation: 272Reputation: 272
If the op has a recovery partition and grub is installed to the Mbr, which I believe it is due to this statement
Quote:
an extended partition in which there is linux and its swap
Then the grub entry for windows xp may be pointing to the wrong partition because of this statement
Quote:
.when I boot into xp, a hp tool pops up instead of xp, and asks me to erase all my files and restore the system to its factory state. This is another issue, I don't think it's related.
as far as resizing the windows partition as I stated earlier, having the virtaul memory setting set to system managed will cause problems with resizing the partition, I came across this problem once before on my own window system.
 
Old 11-28-2011, 11:25 AM   #27
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Quote:
Originally Posted by colorpurple21859 View Post
If the op has a recovery partition and grub is installed to the Mbr, which I believe it is due to this statement
...
Then the grub entry for windows xp may be pointing to the wrong partition because of this statement
Good theory. I hadn't thought of that one. If that is the case then fixing the grub configuration would allow booting Windows, then Windows would automatically run chkdsk (as I'm pretty sure part of the problem is that the partition is flagged as needing chkdsk). Then it should be possible to (at least try to) shrink the partition.

Another possible cause with similar symptom may be that the Windows partition is not flagged as bootable in the primary partition table. That could be fixed in the grub configuration (to temporarily flag it as bootable each time it is selected) or fixed using gparted (to permanently flag it as the only bootable Microsoft partition).

Quote:
as far as resizing the windows partition as I stated earlier, having the virtaul memory setting set to system managed will cause problems with resizing the partition
I'm still pretty sure the symptoms of that problem would occur later. The OP reports a problem too early for that cause.

I would definitely disable Windows paging (set the max page file size down to zero) and defragment within XP before resizing in gparted. The OP seems optimistic about the meaning of 20% free, but in my experience 20% free tends to mean many impediments to shrinking the partition. Killing paging and defragmenting are likely necessary to allow shrinking to work. Assuming you don't shrink too much, after shrinking you can reboot XP and reenable paging.

Last edited by johnsfine; 11-28-2011 at 11:32 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
issue with gparted on CentOS. avee137 Linux - Newbie 8 05-21-2010 12:33 PM
gparted drakeone Linux - Newbie 5 07-07-2009 07:47 PM
need help with Gparted vinoloco Linux - Software 4 06-18-2009 06:05 PM
Installed Ubuntu, ran GParted and have an issue now? fuzzylogic25 Linux - Newbie 2 06-03-2009 12:15 PM
gParted Help carlosinfl Linux - Software 6 09-26-2006 09:41 PM


All times are GMT -5. The time now is 10:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration