LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-15-2005, 02:03 AM   #1
Casket
Member
 
Registered: Jul 2005
Location: Australia
Distribution: Slackware 10.1 - 2.4.29
Posts: 79

Rep: Reputation: 15
WinXP/Slack (LILO)


Hey all.

Currently i have slackware 10.1, WinXP Home, WinXP Pro and Win2003 on this computer. Unfortuantly i have to keep a Windows Distro for school.

Now i am going to completely format all Win partitions and install WinXP on a 10GB partition. This will roughly free up 60 or so gigs. However, i know when i install WinXP it will overwrite the MBR with its own bootstrap. This means that Slack will be virtually inaccesible.

LILO is installed to the MBR. What steps should i take (such as putting LILO on a floppy) to ensure that when this happens ill have access to my slack partiton to re config LILO.
 
Old 10-15-2005, 02:58 AM   #2
CWizard
Member
 
Registered: Dec 2004
Location: Sweden
Distribution: Slackware
Posts: 30

Rep: Reputation: 15
DISCLAIMER: Don't do this unless you completely understands and agree

Probably not the simplest way. I would simply install Windows (on a second thought, *I* wouldn't) then boot with a slackware install cd. This will give you a Linux environment. Then I'm not too sure, but I would probably mount my old partitions, and copy the lilo.conf to /etc (perhaps modify to reflect the changes), run lilo, and hope for the best

*repeat disclaimer a couple of times*
 
Old 10-15-2005, 05:05 AM   #3
Casket
Member
 
Registered: Jul 2005
Location: Australia
Distribution: Slackware 10.1 - 2.4.29
Posts: 79

Original Poster
Rep: Reputation: 15
I dont agree :P

Your sure this will work?
 
Old 10-15-2005, 11:07 AM   #4
CWizard
Member
 
Registered: Dec 2004
Location: Sweden
Distribution: Slackware
Posts: 30

Rep: Reputation: 15
Quote:
Originally posted by Casket
I dont agree :P

Your sure this will work?
I'm sure one could make it work. That is, the general method (install win, reinstall lilo) works, but that last step might require some tweaking. It might be as simple as booting the cd, then "mount /dev/hda1 /mnt/root && lilo -C /mnt/root/etc/lilo.conf", but it might be more complicated.
 
Old 10-15-2005, 01:08 PM   #5
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 30
Quote:
mount /dev/hda1 /mnt/root && lilo -C /mnt/root/etc/lilo.conf
That should work, though it's been some years since I used lilo. I prefer grub theses days.

The easiest way would be to copy your mbr before installing windows and then just copy it back again afterwards. As root,

Code:
dd if=/dev/hda of=/root/mbr.backup bs=512 count=1
Then install windows, boot up the slackware CD, mount your Linux root on /mnt and do

Code:
dd if=/mnt/root/mbr.backup of=/dev/hda bs=512 count=1
Depending on which order the partitions are in, you may need to alter /etc/fstab to reflect the changes.
 
Old 10-15-2005, 01:30 PM   #6
xgreen
Member
 
Registered: Aug 2003
Distribution: Slackware,Ubuntu
Posts: 389

Rep: Reputation: 30
just install your window, then boot your pc using slack install cd (CD 1) & boot your slack partition from it & if i not mistaken the cmd look like this :

bare.i root=/dev/hxx noinitrd ro

after log on as root, /sbin/lilo
 
Old 10-15-2005, 02:20 PM   #7
Eerath
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.9, SimplyMEPIS 3.3.2, Mandrake 10.1, SUSE 10.0, Windows 2000 Pro, Windows XP Home + Pro
Posts: 138

Rep: Reputation: 15
Download MEPIS and use the OS Centre on the Live CD to install GRUB.
 
Old 10-16-2005, 08:42 AM   #8
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally posted by nazmin
just install your window, then boot your pc using slack install cd (CD 1) & boot your slack partition from it & if i not mistaken the cmd look like this :

bare.i root=/dev/hxx noinitrd ro

after log on as root, /sbin/lilo
Hello,
as there are too many different answers for your question........so i'm reiterating the way of doing it in the right manner

follow what "nazmin" has instructed.
..............
just install windows, then boot your pc using slackware 1st cd.
when you reach the prompt for the first time.......type
#linux root=/dev/hdax ro and press enter
( now here 'x' depends on the partition where you have installed the linux )......on my maching its hda9....so take care

now just do
#/sbin/lilo

thats it.

regards

Last edited by b0nd; 10-16-2005 at 08:43 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
installed GRUB over winxp slack and mandrake and LILO insyte LinuxQuestions.org Member Success Stories 0 08-12-2004 02:04 PM
LILO and MBR with WinXP a_priebe47 Slackware 26 08-05-2004 05:13 AM
LILO, WinXP and Slack 9.0 - need help flame Slackware - Installation 4 02-08-2004 04:33 PM
LILO hides winXP... ilhbutshm Linux - Newbie 18 11-26-2003 08:21 AM
Adding WinXP to LILO insanebluecow Linux - General 7 06-18-2003 07:17 PM


All times are GMT -5. The time now is 02:17 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