SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
and how to set my hda3 as the active partition?
currently my hda1(NTFS) partition is active because fdisk -l show
hda1 * .
i am still thinking of install my lilo into linux partition hda3. First thing i need to do is to make my linux partition active first. am i right? so that i can install lilo correctly and boot from hda3. From there i also can choose to boot to my Win2k (NTFS) partition. am i right?
Because you want lilo in either your Linux
partition or in the Master Boot Record. If
you wrote it to /dev/hda1 windows probably
won't work anymore :}
Quote:
and how to set my hda3 as the active partition?
currently my hda1(NTFS) partition is active because fdisk -l show
hda1 * .
i am still thinking of install my lilo into linux partition hda3. First thing i need to do is to make my linux partition active first. am i right? so that i can install lilo correctly and boot from hda3. From there i also can choose to boot to my Win2k (NTFS) partition. am i right?
Well, you can install Lilo to /dev/hda3 ...
but as Azmeen pointed out you'd need
some other chainloader to be able to
access Win and Linux alternately.
You can always just use the Windows bootloader like so:
During the install, choose to install lilo in the Root partition.
After the Slack install, either boot from the floppy, or boot the cd with the following option (at the boot: screen)...
bare.i root=hda2 noinitrd ro
It will look like this...
boot:bare.i root=hda2 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/hda3 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...
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.
I think the best place to install lilo is the MBR of your hard drive. Lilo is capable of loading most of the OS-es, so if configured right, you won't have a problem in future.
If you'd like to install lilo in MBR, this is how to do it:
first of all it would be a good thing to clear the MBR, for that login as root, and do:
Code:
dd if=/dev/hda of=/dev/zero bs=512 count=1
this would clear the entire contens of your MBR,
next(and last) thing to do, is to run liloconfig(as root), step-by-step configure lilo to correctly load any OS you got, and to install it into the MBR.
after this steps you should be good to go.
in case you would want to install lilo in the superblock of your linux partition, you would probably need to set that partition active. here's how to do it:
run 'fdisk /dev/hda'
then enter 'a', it will ask you which partition you want to set active, just enter your linux partition number.
save the changes, by entering 'w' and hit enter.
although i am not shure if you need to toggle your win partition flag, so it won't be active. (this is done the same way, as w/ the linux partition).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.