Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
is it possible to change logical to primary partition?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
babo
Guru
Guru


Joined: 10 Aug 2004
Posts: 477
Location: Ljubljana

PostPosted: Mon Mar 28, 2005 7:48 pm    Post subject: is it possible to change logical to primary partition? Reply with quote

So, the story goes:

I Installed gentoo on a lap top with previous windows instalation. For some reason windows was installed on /dev/hda5 which is a logical partition made from extended partition on /dev/hda1.
So I made boot, root and swap partitions for gentoo instalation.
Now it looks like so:
/dev/hda1 extended partition
/dev/hda2 linux boot
/dev/hda3 linux swap
/dev/hda4 linux root
/dev/hda5 windows on logical p. made from hda1

Now you can boot into gentoo, but not into windows, couse windows is not on primary partition.

Does anyone know of any solution to this situation?
My thoughts were if it is possible to change hda1-extended and hda5-logical to hda1-primary with parted without loosing data.

Thanx in advance
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Mon Mar 28, 2005 7:55 pm    Post subject: Reply with quote

Does Windows really need to reside on a primary partition, or would it be sufficient to mark the logical partition as "Active"?
Back to top
View user's profile Send private message
babo
Guru
Guru


Joined: 10 Aug 2004
Posts: 477
Location: Ljubljana

PostPosted: Mon Mar 28, 2005 8:07 pm    Post subject: Reply with quote

well, I read that windows has to be primary for grub to be able to boot into it.

How do you mark logical partition as "Active"?
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Mon Mar 28, 2005 8:09 pm    Post subject: Reply with quote

Grub doesn't care. Really, just point the root (hdX,Y) command to the correct partition (you can use tab completion when in Grub's interactive shell) (or rootnoverify if the partition is in NTFS) and run chainloader +1.

I don't know if Windows itself supports it or not though.

To turn a partition active, you need to toggle the active bit. Both fdisk and cfdisk can do this. I think fdisk uses the "a" command to toggle a partition active.
Back to top
View user's profile Send private message
babo
Guru
Guru


Joined: 10 Aug 2004
Posts: 477
Location: Ljubljana

PostPosted: Mon Mar 28, 2005 8:26 pm    Post subject: Reply with quote

It didn't work

I have:

Code:
title=XP
rootnoverify (hd0,4)
makeactive
chainloader +1


grub said:
Error 12: Invalid device requested

and here I have read that windows needs to be on primary partition:
https://forums.gentoo.org/viewtopic-t-295426-highlight-invalid+device+requested+windows.html?sid=577e236fb50697e5d56e28cc49d9b79a
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Mon Mar 28, 2005 8:46 pm    Post subject: Reply with quote

http://www.gentoo.org/doc/en/grub-error-guide.xml#doc_chap3

If that isn't the cause, then yes, chances are that Windows doesn't like being on a logical partition.

No, you cannot just change a logical partition to a primary partition without repartitioning. So, make a backup, repartition and replace your backup.
Back to top
View user's profile Send private message
babo
Guru
Guru


Joined: 10 Aug 2004
Posts: 477
Location: Ljubljana

PostPosted: Mon Mar 28, 2005 9:00 pm    Post subject: Reply with quote

Thank you
Tomorrow is the day for backup and repartitioning :D
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Mon Mar 28, 2005 9:57 pm    Post subject: Reply with quote

FYI :
Windows requires a primary partition for its bootloader (NTLDR).
Linux does not require any primary partitions. You can have /boot swap and / on logical partitions.
Back to top
View user's profile Send private message
NewBlackDak
Guru
Guru


Joined: 02 Nov 2003
Posts: 512
Location: Utah County, UT

PostPosted: Mon Mar 28, 2005 10:43 pm    Post subject: Reply with quote

You can use device mappings in your bootloader to fool Windows into thinking it's on a primary partition.
_________________
Gentoo systems.
X2 4200+@2.6 - Athy
X2 3600+ - Myth
UltraSparc5 440 - sparcy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum