LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-21-2007, 09:19 PM   #1
xpromisex
Member
 
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Rep: Reputation: 30
Changing between logical and primary partitions


Okay - I seem to have stumbled upon something extremely strange.

Approximately two weeks ago I reformatted my WinXP partition and reinstalled WinXP. For the past two weeks or so I just haven't really had the need to boot my linux partition so I just kept NTLDR on the MBR. Today, however, I decided to go through the steps to put grub back on my MBR, and it seems to have worked fine. That is until I attempted to boot my Windows partition.

When I did attempt to boot back into Windows (wanted to listen to some music without having to fiddle with MPD) I found that GRUB would halt after outputting the stanza in the grub.conf file for windows onscreen. I investigated this and it seems that, for all intents and purposes, that my Windows drive (which was a primary partition) is now registered as a logical drive. I'd like to be able to boot WinXP without having to reformat and reupdate. My question is if there is any feasible way to change a logical partition back into a primary partition? I seem to recall a way to do it with PartitionMagic 8 from back in the day, but I have yet to find a way to do so with gParted, cfdisk, fdisk or parted.

Partition table BEFORE:
sda1 - NTFS (Holds WinXP data)
sda2 - EXT3 (/)
sda3 - EXT3 (/home)
sda4 - FAT32 (Windows Linux Swap for Music etc.)

Partition table AFTER:
sda1 - extended
sda5 - logical NTFS (Holding WinXP data)
sda2 - EXT3(/)
sda3 - EXT3(/home)
sda4 - FAT32(Windows Linux Swap)
 
Old 03-22-2007, 03:00 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,772

Rep: Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170
Partitions (generally) dont just go changing - might be interesting to see the steps involved in:
Quote:
I decided to go through the steps to put grub back on my MBR
You'll need to delete the logical, then the extended, then reallocate the primary, in the correct location
Given the way logicals chain to each other, you probably have a trashed boot sector record in the NTFS partition.

fixboot from (M$oft) recovery console should be able to fix that, but would likely require fixmbr first - neither of which will work against a logical IIRC.
 
Old 03-22-2007, 06:20 PM   #3
xpromisex
Member
 
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Original Poster
Rep: Reputation: 30
steps involved in reinstalling grub:

booted arch install CD and changed grub boot lines to fit my system and therefore booting my kernel straight off of my harddrive then I issued "grub-install /dev/sda"

Doesn't seem as if I have done anything to warrant a switch (to me at least). (I'd be the first to admit if I felt I had messed up significantly.)

Either way I have just deleted my Windows install as well as Arch - All I left intact was my backup / swap drive. Repartitioned and set it up again. No real big deal but thank you for your interest.
 
Old 03-22-2007, 06:46 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,772

Rep: Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170Reputation: 3170
Odd - I use Arch on several machines, and never seen anything like that.
But I never use the grub-install wrapper (on any Distro), I always use the native grub commnads.

Alls welll that ends well.
 
  


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
Partitions, logical vs primary AphoxemaG General 15 02-16-2007 12:33 AM
to many partitions? (IDE: 4 primary, 3 logical) drkstr Linux - Software 13 06-14-2006 10:16 AM
Logical drives, and Primary Partitions Infernolinux Linux - Hardware 19 01-09-2006 07:44 PM
primary or logical partitions? blotch Slackware 10 09-09-2004 04:36 AM
Partitioning - Primary and Logical partitions quietguy47 Linux - General 2 07-06-2003 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:57 PM.

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