LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-05-2002, 02:28 PM   #1
Alfafa
LQ Newbie
 
Registered: Apr 2002
Location: Copenhagen - Denmark
Distribution: Debian
Posts: 3

Rep: Reputation: 0
Unhappy Help after upgrading a Dualboot machine to WinXP


Hi

Befor i upgraded my disklayout looked like this

hde1 -- Windows Millenium (For games)

hde2 -- Linux Swap (128Mb at the end of the disk)

hde3 -- Ext3 root filesystem

After i upgraded to WindowsXP it has rewritten the partition table to the following

hde1 -- Windows XP (for games)

hde2 -- Ext3 root filesystem

hde3 -- Linux Swap

Then i thought I could just boot linux with lilo and use the "linux root=/dev/hde2"

This will make it boot, but it will panic saying it cannot mount a reiserfs filesystem at device xx.x . I have reiserfs support in my kernel but are not using it at the moment.

(The big question) Can I modify the partition table to "switch" my root & swap back to normal?

With the best regards
Hasse Johansen
 
Old 04-05-2002, 10:02 PM   #2
Psycho
Member
 
Registered: Feb 2002
Location: Carson City, Nevada
Distribution: Gentoo / SuSE 9.1 Pro (both A64)
Posts: 159

Rep: Reputation: 30
You _may_ be able to if you can boot a rescue image from CDRom or Floppy. A rescue boot will find your / partition and mount it to /sysroot or something like that. If the partitions got swapped you would be able to edit /sysroot/etc/fstab and fix it.

My question would have to be how / why would the partitions get swapped?? That would have to be done in fstab, I can't imagine any other way to do it.
 
Old 04-06-2002, 01:36 AM   #3
Alfafa
LQ Newbie
 
Registered: Apr 2002
Location: Copenhagen - Denmark
Distribution: Debian
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your reply

I don't think it has been swaped in the fstab, because when i boot from a rescue disk with "linux root=/dev/hde2" I can boot the system, but with a lot of errors. When I after boot do a mount to see which drives is mounted it says that /dev/hde3 is mounted on / So that is very weird, or is it the partition numbering scheme that is fooling me? (lilo<->linux)
 
Old 04-06-2002, 03:01 AM   #4
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Try editing your /etc/fstab file. Change the entries for root ' / ' and swap partitions. Change root ' / ' from hde3 to hde2 and swap from hde2 to hde3. Also, change the ' root=/dev/hde3 ' line in your lilo.conf file to ' root=/dev/hde2 '. Then run /sbin/lilo.
 
Old 04-06-2002, 06:57 AM   #5
Alfafa
LQ Newbie
 
Registered: Apr 2002
Location: Copenhagen - Denmark
Distribution: Debian
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks

I now works. I also changed the "boot" directive en lilo.conf, because i think I can remember that NT/2000/XP doesn't work if the bootloader is installed in the MBR. But again many thanks, now i can make usefull stuff again.

/Hasse
 
Old 04-06-2002, 05:58 PM   #6
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You're welcome.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FC3 & winxp dualboot finkoisti Fedora 6 05-11-2005 07:09 AM
Dualboot WinXP doesn't detect DVD-RW rockbttm Linux - Newbie 4 09-29-2004 12:35 PM
Linux/WinXP Dualboot and Raid bluebox Linux - Hardware 3 06-30-2004 11:49 PM
WinXP problems when trying to dualboot.. asyd Linux - Newbie 10 10-29-2003 07:36 AM
DualBoot: WinXP does not boot britcoms9 Linux - Newbie 10 09-05-2003 11:36 PM


All times are GMT -5. The time now is 09:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration