LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 12-03-2007, 08:46 AM   #1
spiffytech
Member
 
Registered: Dec 2005
Location: NC, USA
Distribution: (K)ubuntu
Posts: 139

Rep: Reputation: 15
Compiles 2.6.23.9 kernel, sees drive as hda, reiserfs still thinks it's sda


I'm trying to upgrade my kernel from the Slackware 12 default to the newest 2.6.23.9. After I compile the kernel, I install it and reboot, only to see reiserfs complain, thinking that the filesystem is supposed to be at sda2, but the kernel identifies it as hda2. How can I make the kernel identify my (sata) drive as sda?
 
Old 12-03-2007, 09:37 AM   #2
polymath69
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Ubuntu, DSL, TRK, etc.
Posts: 16

Rep: Reputation: 3
Why do you need your sata drive to be treated as SCSI? You're probably better off without invoking that whole emulation layer.

If you just can't boot, try passing root=/dev/hda2 to the kernel at boot, and make sure /etc/fstab agrees.
 
Old 12-03-2007, 09:54 AM   #3
spiffytech
Member
 
Registered: Dec 2005
Location: NC, USA
Distribution: (K)ubuntu
Posts: 139

Original Poster
Rep: Reputation: 15
OK, that worked. I'd changed grub, but forgot to change fstab to reflect hda.

I wanted to use sda because that's what I've seen in every other distro for the last 6-12 months and I wanted to keep my Slackware install in line with the rest of the Linux world. It's not terribly important, it just seemed like the easiest way to fix my boot issue (I thought the problem was with some reiserfs config that pointed to sda)
 
Old 12-03-2007, 10:15 AM   #4
guzzi
Member
 
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 290

Rep: Reputation: 32
sata / hda

This sda being called hda by the kernel happens when I forget to select SATA by enabling pixx when configuring a kernel.

Have not made that error lately, but I recall it caused some other strangeness.
 
Old 12-03-2007, 12:54 PM   #5
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Posts: 11,388
Blog Entries: 2

Rep: Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825
Performance-wise you want to compile SATA support into the kernel (or as module).
 
Old 12-04-2007, 01:09 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,434

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
reiserfs doesn't know anything about the drive hda or sda. You see the error when tgrub tries to mount the root partition and the entry in fstab doesn't agree with the entry in your grub menu.lst. The same would happen no matter what file sysstem you are using.
 
Old 12-05-2007, 08:01 AM   #7
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Slackware sans KDE4 (Gnome Slackbuild)
Posts: 454

Rep: Reputation: 35
Quote:
Originally Posted by polymath69 View Post
Why do you need your sata drive to be treated as SCSI? You're probably better off without invoking that whole emulation layer.
Why do distros like Ubuntu do this?

I've noticed my hda and hdb drives are sda and sdb in Ubuntu.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which kernel config option shows hda as sda? durwin Linux - General 5 11-27-2007 03:15 PM
Install lilo on external drive (/dev/sda), then boot as INTERNAL (/dev/hda)? slackware-elf Slackware 3 08-18-2007 04:51 PM
Custom kernel 2.6.22 name change from hda to sda bristi Debian 4 07-15-2007 11:27 AM
/hda to /sda - help! dodgydodgy Linux - General 9 10-20-2006 06:07 PM
The kernel I compiled reads my sata drives as hda even though the rpm kernel read sda abefroman Linux - Software 5 07-10-2006 04:42 PM


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