LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-22-2004, 08:38 AM   #1
mickc1303
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
Sata


Hi

I have searched around the forums but can't find an answer really.

I have slackware installed on hda but I also have a XP installation on sda

All I want to be able to do is access my windows partitions from slackware and also have the option to boot into windows from lilo.

Any ideas as to how I do this?

Thanks in advance
 
Old 10-22-2004, 10:46 AM   #2
alin02
LQ Newbie
 
Registered: Oct 2004
Location: Sweden
Posts: 3

Rep: Reputation: 0
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.
 
Old 10-22-2004, 02:17 PM   #3
predator.hawk
Member
 
Registered: Aug 2004
Location: USA
Distribution: FreeBSD-5.4-STABLE
Posts: 252

Rep: Reputation: 30
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.........
 
Old 10-22-2004, 06:19 PM   #4
alin02
LQ Newbie
 
Registered: Oct 2004
Location: Sweden
Posts: 3

Rep: Reputation: 0
Yes, i finaly got it to work *woot*

Im using LILO version 22.6.

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.

Hope this helps out alittle.
 
Old 10-23-2004, 06:32 AM   #5
mickc1303
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Well fdisk recognizes my sata disk but not quite how it should be.

Disk /dev/sda: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 3824 30716248+ 7 HPFS/NTFS
/dev/sda2 3825 19451 125523877+ f W95 Ext'd (LBA)
/dev/sda5 3825 7648 30716248+ 7 HPFS/NTFS
/dev/sda6 ? 144818 6989 1040366273 50 OnTrack DM

sda1 is automatically mounted during boot up as this is displayed.

/dev/sda1 on /windows type ntfs (rw)

However if I do a ls /windows then I get.

/usr/bin/ls: reading directory /windows: Input/output error

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.

c: 30gb
d: 30gb
e: 110gb
f: 30gb

Any help would be apprecitaed
 
Old 10-23-2004, 05:34 PM   #6
alin02
LQ Newbie
 
Registered: Oct 2004
Location: Sweden
Posts: 3

Rep: Reputation: 0
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! ^_^

Last edited by alin02; 10-24-2004 at 05:49 AM.
 
Old 10-27-2004, 08:30 AM   #7
Roger Krowiak
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 38

Rep: Reputation: 18
Quote:
...
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!
 
  


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
Slackware 10.1 sata.i dosn't support my sata controller kryptobs2000 Slackware 7 12-05-2007 06:25 PM
Linux support: pci sata card vs integrated sata Synesthesia Linux - Hardware 2 10-17-2005 03:27 PM
SATA 1 & SATA 2 support varun_saa Mandriva 1 09-28-2005 04:35 AM
RH9 and SATA - Kernel 2.4.27 - how to get SATA to work? rolf_mueller Linux - Hardware 5 10-30-2004 08:30 PM
Is native SATA same as ncq SATA satimis Linux - Hardware 8 10-01-2004 08:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:09 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
Open Source Consulting | Domain Registration