LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-24-2005, 11:04 PM   #1
bird603568
Member
 
Registered: Aug 2004
Distribution: Slackware current
Posts: 250

Rep: Reputation: 30
found problem now how to change from hda to sda


Ok i found the problem, under kernel 2.6 in order to get DMA i have to change everything from hd* to sd*. I know the option in the kernel, but what else needs to be changed, and how do i do it?
 
Old 10-24-2005, 11:25 PM   #2
Keruskerfuerst
Member
 
Registered: Oct 2005
Location: Lat: 482356N, Lon: 104145E
Distribution: Gentoo 2006
Posts: 719

Rep: Reputation: 31
Hello!

You have to change the mountpoints in /etc/fstab and /etc/mtab.
The path in the bootloader must be changed.

Greetings

Last edited by Keruskerfuerst; 10-24-2005 at 11:46 PM.
 
Old 10-25-2005, 12:00 AM   #3
Namaseit
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 325

Rep: Reputation: 30
Since lilo won't boot unless it is also set to sda the best way would be to boot a 2.6 kernel live cd that has sata and then mount your hdd's and then chroot into it and update lilo. Slax is what I had to use for my laptop.
 
Old 10-25-2005, 07:29 AM   #4
bird603568
Member
 
Registered: Aug 2004
Distribution: Slackware current
Posts: 250

Original Poster
Rep: Reputation: 30
ive never used slax, so what do i chroot to? And since you've done this before, could you give me a list of steps tp follow because i prefer that my laptop turns back on. It's my only computer. Thank you
 
Old 10-25-2005, 07:41 AM   #5
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Maybe it's supported by the sata.i kernel included with Slackware CD 1.
Boot with Slackware CD 1 and when you get the boot: prompt type: sata.i root=/dev/XXXX
Replace XXXX with either hdaX or sdaX where the X is the number of your root partition.
 
Old 10-25-2005, 08:08 AM   #6
bird603568
Member
 
Registered: Aug 2004
Distribution: Slackware current
Posts: 250

Original Poster
Rep: Reputation: 30
I already have it install, and i dont want to reinstall it. I booted into slax and it does support it. I know what to compile into the kernel, i just dont know 100% what i'm supposed to do from there. And i will have to say that i hdparm -Tt /dev/sda and it was amazing i got over 15X speed boost
 
Old 10-25-2005, 10:42 AM   #7
Namaseit
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 325

Rep: Reputation: 30
well actually you could use the slackware cd also. You just use the sata.i kernel as mentioned and when in the environment instead of installing you're going to create a mount point to mount your HDD. Whatever you call it, it doesn't matter. If you did multiple partitions don't worry, as long as you know the main partition its fine. If you don't remember a 'cat /proc/partitions' will list all HDD's and their partitions.

# mkdir /mnt/mount
# mount /dev/sda1 /mnt/mount
# mount -t proc proc /mnt/mount/proc
# chroot /mnt/mount

Now edit your /etc/fstab to reflect your correct partitions and edit /etc/lilo.conf changing ALL references to hda. If you use pico for your editor 'ctrl + w' will allow you to search for strings. After you edited those all you have to do now is update lilo.

# lilo

You should see no errors. If there is any warnings they usually don't mean anything as long as you see the Linux* or whatever your kernel name is show up in the output.

Another thing you might want to do just as a precautionary is run:

# lilo -M /dev/sda mbr
# lilo

All that first line does is reload lilo into the Master Boot Record. Just incase, you know.

After that just exit and reboot. Then you should see lilo come up all nice and pretty.

Chroot is your godsend if you screw up any type of configuration that causes the system not to boot. You chroot into the environment and it's just like you're in there so you can change and update anything necessary or revert to a working configuration.

Any problems just reply back. I work an odd shift so I might not reply quite immediately. Or someone else might be able to help, I'm sure.
 
Old 10-25-2005, 01:26 PM   #8
bird603568
Member
 
Registered: Aug 2004
Distribution: Slackware current
Posts: 250

Original Poster
Rep: Reputation: 30
Thanks for all the help, but i did what you said and on the new boot, it says something about make a correct boot= and error somehting(8,3) and normally its (3,3)
 
Old 10-25-2005, 01:39 PM   #9
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Well, did you change the line that says boot=/dev/XXXX in lilo.conf?
 
Old 10-25-2005, 03:33 PM   #10
bird603568
Member
 
Registered: Aug 2004
Distribution: Slackware current
Posts: 250

Original Poster
Rep: Reputation: 30
yep, it said hda i change it to sda. But the problem is that its looking for something(8,3) and it use to be something(3,3)
 
Old 10-25-2005, 08:33 PM   #11
Namaseit
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 325

Rep: Reputation: 30
in your lilo.conf root = /dev/sda1 ?
for you kernel entry.
 
Old 10-25-2005, 08:36 PM   #12
bird603568
Member
 
Registered: Aug 2004
Distribution: Slackware current
Posts: 250

Original Poster
Rep: Reputation: 30
no. it was hda so i made it sda. And it would be sda3 because sda1 is swap and sda2 is my spare partition
 
Old 10-25-2005, 09:03 PM   #13
Namaseit
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 325

Rep: Reputation: 30
alright, sda3 then. I didn't know your partition table layout.
 
Old 10-25-2005, 10:12 PM   #14
bird603568
Member
 
Registered: Aug 2004
Distribution: Slackware current
Posts: 250

Original Poster
Rep: Reputation: 30
why do i change it to sda3 when it use to be hda?
 
Old 10-25-2005, 11:32 PM   #15
Namaseit
Member
 
Registered: Dec 2003
Distribution: Slackware
Posts: 325

Rep: Reputation: 30
for the kernel entry?

image = /boot/2.6.13
root = /dev/sda1
label = 2.6.13-archck1
read-only

as the example from above shows root=/dev/sda1 because sda1 is my root partition that it will be booting off of.
 
  


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
Where is my HD? - not /dev/hda or /dev/sda ?? BrianK Linux - Hardware 11 04-24-2007 05:35 PM
hda and hdb automounts nicely, but sda does not Navyblue Linux - Newbie 7 08-21-2005 11:53 AM
INIT NOT FOUND + HDA(x) NOT FOUND fred99 Linux - Software 1 02-25-2005 02:10 PM
hda? sda? what do i have? nr5 Linux - Newbie 12 02-24-2005 06:50 PM
mount USB devices, sda, manually/statically assign sda? Oxyacetylene Debian 3 12-20-2004 02:45 PM


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