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.
I cant help much, but im in the exact same spot, linux on my ATA disk (hda) and XP on my SATA disk (sda).
First i used kernel 2.4.20 i think, but then i couldnt see the sata disks at all.
So i rebooted into kernel 2.6.8, and now that works -- part1
However, the entire lilo documentation conserning sata disk and booting on ntfs systems is...im lost.
I did try GRUB at first, and i accidently got it too boot up XP, however when i rebooted the system, something had gone wrong,
i couldnt boot on the disk anymore, and grub gave me "ERROR 17", whatever that means. So i decided to reinstall linux and im now trying to get LILO to work instead. It have never failed me before.
I hope someone with experience can help us out on this, i'll update if i find anything of interest.
Kernel's before 2.4.27 didn't have SATA Support. The Latest LILO that comes with Slackware 10.0 seems to Boot SATA disks fine, both win and slack are on my SATA disk.........
First, make sure you can see the SATA disk, i use the command,
# sfdisk -l (lowercase L)
This means your kernel support SATA.
Second, i think you have to have ntfs support in kernel to be able to boot your XP parition, i read it somewhere, either way, if you can mount the partition in linux your ready to go -- a good idea is to edit the /etc/fstab and add it there..
Third, and this was the part i didnt understand, never used it before.
Try the command,
# lilo -T geom
this will give you some important info about the bios map, (man lilo for more info).
The first disk should have bios=0x80
The second disk should have bios=0x81
The third disk, bios=0x82 (i actually have two sata disks, but XP was on 0x81 one =)
Im not exactly sure what this means, but 0x80 seem to mean active or primary disk.
In lilo.conf you need this part to boot XP:
...
lba32 # see manual for lilo or lilo.conf
...
# Other boot parition(s)
other=/dev/sda
label="Windows XP"
map-drive=0x81 # make the sata disk active, or primary.
to=0x80
map-drive=0x80
to=0x81
...
Have you ever tried to install XP on secondary slave or similar? Not, i have, and it doesnt work. It has to be Primary master to boot up properly. So the map-drive part makes the SATA disk primary and then boots it. LILO have chainload default, so generally that options should not be needed, read through the lilo manual either way, and you'll understand better what map-drive=.., to=.., means.
Lastly, LILO have some really nice extra boot options, so you can make the boot loader uber leet, like menu-schema and more, ...when everything else works fine, this may be cool to check more on.
and if I try and mount any of the other partitions I get:
root@demon:~# mount -t ntfs /dev/sda2 /windows
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)
root@demon:~# mount -t ntfs /dev/sda6 /windows
mount: special device /dev/sda3 does not exist
root@demon:~# mount -t ntfs /dev/sda6 /windows
mount: special device /dev/sda6 does not exist
The disc sda1 is 2x120Gb sata drives in a Raid 0 stripe array (Fasttrak 378) and is partitioned into four.
I were searching around alittle and found this link, i think it explains the general concept pretty good even thou it is for the 2.4.23 kernel. Also, i think the newest 2.6 kernel (2.6.8) have all the "patches" he talked about included already.
Just noticed that 2.6.9 is out, released ~5 days ago.
This should make a good start if nothing else.
Also note that, iswraid in 2.4 is called/replaced with dmraid in 2.6!!
EDIT: FYI i ripped this off from another post here in linuxquestions, was a bit late last knight, forgot to add that part -- my bad! ^_^
...
Try the command,
# lilo -T geom
this will give you some important info about the bios map, (man lilo for more info)
...
Thank you very much! Not only helping me to boot XP from lilo (I've almost the same HDD configuration as you) but also for pointing me to new area of education. Thanks man!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.