LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-26-2004, 07:31 PM   #1
sharpie
Member
 
Registered: Jan 2004
Location: California
Distribution: Slackware 10.1
Posts: 190

Rep: Reputation: 30
Dual booting XP pro and slackware 9.1


The 2 OS' were working fine together until...

After playing with my windows partitions, the lilo wasn't appearing on startup and the root had changed from /dev/hda10 to /dev/hda8.

Tried booting off the CD and running /sbin/lilo, but I was on fd2 as my root partition. Tried passing the parameters
bare.i root="/dev/hda8"
to the kernel again booting from the CD, but still on fd2 for some reason.

I tried mounting /dev/hda8 and running /sbin/lilo, but still wouldn't work.

What am I doing wrong?

Is my linux partitions moving around gonna be a regular occurence unless I give them a number nearer the bottom where the partitions don't get moved around much?
 
Old 01-26-2004, 10:14 PM   #2
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
The numbers change?

Oh. I re-read it.

Boot up to a rescue CD.

Your / should be mounted for you in /mnt/sysimage (That is for redhat, read your docs on which ever rescue CD you have. You may have to manually mount your / to a directory. The directory you mount it to is up to you, but you may want to: mkdir /mnt/sysimage. Then: mount /dev/hdXx /mnt/sysimage.)

cp /mnt/sysimage/etc/sbin/lilo /sbin/lilo

Edit your /mnt/sysimage/etc/lilo.conf so that every entry is correct. (vi) is available in linux rescue.

mount --bind /mnt/sysimage/etc /etc (READ THE MAN_PAGE ON MOUNT, I'm doing this from memory.)

/sbin/lilo

Done.

Note: If you are unfamiliar with anything use man-pages; there are man-pages online as well. The spaces aren't really clear on this text.

Last edited by Eqwatz; 01-26-2004 at 10:23 PM.
 
Old 01-27-2004, 02:44 AM   #3
sharpie
Member
 
Registered: Jan 2004
Location: California
Distribution: Slackware 10.1
Posts: 190

Original Poster
Rep: Reputation: 30
I tried doing this with the slackware install CD and got this error while running the last command (/sbin/lilo):

Fatal:creat /boot/map~: No such file or directory.

I saw (mounted root)/boot/map without the tilde key, would it be safe copying this over?

I also take it you meant to put /sbin/lilo the places you put /etc/sbin/lilo am I right?

Also am I using the right kind of CD (the regular slackware install CD). Please note I have no floppy drive.
 
Old 01-27-2004, 04:44 AM   #4
sharpie
Member
 
Registered: Jan 2004
Location: California
Distribution: Slackware 10.1
Posts: 190

Original Poster
Rep: Reputation: 30
Would it be a bad idea to run fdisk and make slackware the boot partition? At the moment my Windows is. I figured I could make it my boot, boot into it and run /sbin/lilo possibly to the MBR, then make Windows my boot partition. But will this cause me to not be able to boot from my Windows partition if something goes wrong?
 
Old 01-27-2004, 03:19 PM   #5
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
Err. . .yes. Sorry.

NO. Don't flag the /boot as bootable, that would leave XP unable to boot.

Then mount /dev/hdXz (your boot partition) to /boot

and try again.

HEY, WAIT A MINUTE.

Did you say you weren't installing Lilo to hda1/MBR?

Or is it you don't know about boot managers?

If you don't install a boot manager to the MBR in the first IDE disk you can't natively boot linux.

As far as fixing or restoring the MBR (master boot record) for XP if it gets hosed up. That is easy. Just insert the XP CD into the CD-rom and boot it up on the repair option. Start Recovery Console. Type the command fixmbr or if that doesn't work FIXMBR. (I can't remember whether case makes a difference.)


The alternative is to do searches for using the windows chainloader to load linux.

Last edited by Eqwatz; 01-27-2004 at 03:36 PM.
 
Old 01-27-2004, 04:49 PM   #6
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
If you chose to install Lilo to the root partition, either boot from the floppy, or boot the cd with the following option (at the boot: screen)...

bare.i root=/dev/hdax noinitrd ro

hdax will be your /root partition (hda8?)

It will look like this...

boot:bare.i root=hda8 noinitrd ro

Once the system is booted, login as root and do the following...

insert a blank floppy...then do...

mkfs.msdos /dev/fd0

Then do...

dd if=/dev/hda8 of=/bootsect.lnx bs=512 count=1

Then do...

mcopy /bootsect.lnx a:

reboot into Windows, then copy the bootsect.lnx file from the floppy to C:\

Right click on "My Computer", click Properties, click the Advanced tab, click Settings under Startup and Recovery, click Edit, add the following on a seperate line...or...just edit c:\boot.ini and add the following...

C:\BOOTSECT.LNX="Slackware"

Save the file, reboot, then choose either Windows or Slackware. Anytime you recompile the kernel, or change Lilo, you'll need to follow the process again. HTH.

Last edited by DaOne; 01-27-2004 at 04:51 PM.
 
Old 01-27-2004, 07:45 PM   #7
sharpie
Member
 
Registered: Jan 2004
Location: California
Distribution: Slackware 10.1
Posts: 190

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Eqwatz
Err. . .yes. Sorry.

NO. Don't flag the /boot as bootable, that would leave XP unable to boot.

Then mount /dev/hdXz (your boot partition) to /boot

and try again.

HEY, WAIT A MINUTE.

Did you say you weren't installing Lilo to hda1/MBR?

Or is it you don't know about boot managers?

If you don't install a boot manager to the MBR in the first IDE disk you can't natively boot linux.

As far as fixing or restoring the MBR (master boot record) for XP if it gets hosed up. That is easy. Just insert the XP CD into the CD-rom and boot it up on the repair option. Start Recovery Console. Type the command fixmbr or if that doesn't work FIXMBR. (I can't remember whether case makes a difference.)


The alternative is to do searches for using the windows chainloader to load linux.
No it was in the MBR, but I think it got erased when I was playing with the windows partitions. Either that or it's not loading because it's pointing to the wrong root linux partition.
 
Old 01-27-2004, 07:46 PM   #8
sharpie
Member
 
Registered: Jan 2004
Location: California
Distribution: Slackware 10.1
Posts: 190

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by DaOne
If you chose to install Lilo to the root partition, either boot from the floppy, or boot the cd with the following option (at the boot: screen)...

bare.i root=/dev/hdax noinitrd ro

hdax will be your /root partition (hda8?)

It will look like this...

boot:bare.i root=hda8 noinitrd ro

Once the system is booted, login as root and do the following...

insert a blank floppy...then do...

mkfs.msdos /dev/fd0

Then do...

dd if=/dev/hda8 of=/bootsect.lnx bs=512 count=1

Then do...

mcopy /bootsect.lnx a:

reboot into Windows, then copy the bootsect.lnx file from the floppy to C:\

Right click on "My Computer", click Properties, click the Advanced tab, click Settings under Startup and Recovery, click Edit, add the following on a seperate line...or...just edit c:\boot.ini and add the following...

C:\BOOTSECT.LNX="Slackware"

Save the file, reboot, then choose either Windows or Slackware. Anytime you recompile the kernel, or change Lilo, you'll need to follow the process again. HTH.
When I try "bare.i root=/dev/hda8 noinitrd ro" I type df and I'm still on fd2 as my root. And the rest I can't try because I don't have a floppy.
 
Old 01-28-2004, 01:51 PM   #9
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
It was my impression that you already "nuked" your Linux partition.

I gave explicit directions to do what you request. You need to read the documentation for your distribution on exactly how you can boot a linux rescue environment.

Either that or download RIP (recovery is possible) and burn it to CD. Boot it. Then create a directory named sysimage in /mnt-- this means when you ls /mnt you should see some directories like hd and the newly created sysimage. The fricking directions are right there.

Last edited by Eqwatz; 01-28-2004 at 01:52 PM.
 
  


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
Dual Booting SuSE 9.2 & XP Pro/dual hard drives The_Bug Linux - General 3 01-04-2006 05:44 PM
Dual Booting XP pro with SuSE 9.1 Ree Linux - Distributions 3 10-03-2004 12:58 AM
Dual dual booting with Suse 9.1 pro and windows 98SE UDflyer Linux - General 1 07-30-2004 02:37 PM
Dual Booting Mandrake 9.1 With Xp Pro B16MCC Linux - Newbie 4 09-18-2003 08:47 PM
Dual Booting with XP Pro and RH9 eacable Linux - General 3 05-13-2003 03:21 PM


All times are GMT -5. The time now is 11:45 AM.

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