Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SATA: 2.4.x /dev/hde -- 2.6.x /dev/???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
zbadone
n00b
n00b


Joined: 24 Mar 2004
Posts: 20
Location: Florida

PostPosted: Thu May 13, 2004 5:59 am    Post subject: SATA: 2.4.x /dev/hde -- 2.6.x /dev/??? Reply with quote

I am running Gentoo with a kernel ver. of 2.4.25r2, with a single SATA drive booting from /dev/hde5, decided to upgrade kernel to 2.6.5r1.

Using the same grub menu templete (2.4.x), substituting the new kernel image, I get an error and can't boot 2.6.5r1.

I have compilied SATA support into kernel.

dmesg show the SATA drive as ata1, do I need to change /etc/fstab from /dev/hde5 to /dev/ata15 or /dev/sda5?

thanks.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Thu May 13, 2004 7:32 am    Post subject: Reply with quote

Try adding the kernel command line
Code:
ide=reverse
It might help restore the old bus scan order.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Thu May 13, 2004 8:50 pm    Post subject: Re: SATA: 2.4.x /dev/hde -- 2.6.x /dev/??? Reply with quote

zbadone wrote:
dmesg show the SATA drive as ata1, do I need to change /etc/fstab from /dev/hde5 to /dev/ata15 or /dev/sda5?

The partition should show up as /dev/sda5 if you have the proper options compiled into the kernel.

The 2.6 kernel treats SATA controllers as SCSI.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Thu May 13, 2004 9:13 pm    Post subject: Re: SATA: 2.4.x /dev/hde -- 2.6.x /dev/??? Reply with quote

cyrillic wrote:
The 2.6 kernel treats SATA controllers as SCSI.


Oh, wasn't aware of that. Thanks.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
gcasillo
l33t
l33t


Joined: 23 Sep 2003
Posts: 739
Location: Cincinnati, Ohio, USA

PostPosted: Thu May 13, 2004 11:14 pm    Post subject: Reply with quote

Quote:
The 2.6 kernel treats SATA controllers as SCSI.


Not for Intel chipsets it doesn't, at least with the proper kernel config. Provided you are using a mobo with an Intel chipset (e.g. ICH5), you can (and should) run your SATA drives as regular IDE drives. Disable SCSI support especially the low-level drivers for SATA and Intel chipsets. That's it. That's all you have to do. Now you can run hdparm on your drives which you couldn't do if they were treated as SCSI devices.

This is a small pet peeve of mine. There's SCSI devices and there's not-SCSI devices. And SATA drives are not SCSI drives. Granted you can use the SCSI support, but it's not the right way to do this.

Your drives will then likely appear as /dev/hde, /dev/hdg, etc.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Fri May 14, 2004 1:32 am    Post subject: Reply with quote

gcasillo wrote:
Now you can run hdparm on your drives which you couldn't do if they were treated as SCSI devices.

I'm not sure what you mean about hdparm not working ...
Code:
# hdparm -tT /dev/sda /dev/sdb /dev/md0
 
/dev/sda:
 Timing buffer-cache reads:   1140 MB in  2.00 seconds = 569.80 MB/sec
 Timing buffered disk reads:  172 MB in  3.02 seconds =  56.87 MB/sec
 
/dev/sdb:
 Timing buffer-cache reads:   1152 MB in  2.01 seconds = 574.36 MB/sec
 Timing buffered disk reads:  172 MB in  3.02 seconds =  56.92 MB/sec
 
/dev/md0:
 Timing buffer-cache reads:   1136 MB in  2.00 seconds = 568.09 MB/sec
 Timing buffered disk reads:  340 MB in  3.00 seconds = 113.16 MB/sec

On this machine, /dev/sda and /dev/sdb are SATA drives.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Fri May 14, 2004 1:35 am    Post subject: Reply with quote

-t and -T yup. -d, -c, -u etc nope.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
gcasillo
l33t
l33t


Joined: 23 Sep 2003
Posts: 739
Location: Cincinnati, Ohio, USA

PostPosted: Fri May 14, 2004 1:41 am    Post subject: Reply with quote

When I got my first batch of SATA drives and I began dealing with all of this stuff, I could not run hdparm against my drives when using SCSI support. Not sure why, but I knew from seeing Knoppix address the drives as regular non-SCSI drives (i.e. /dev/hde) and being able to run hdparm against them while in Knoppix that I should be able to run the drives without SCSI support.

It's just my preference, but I don't want SCSI support for my SATA drives when it isn't necessary.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Fri May 14, 2004 1:44 am    Post subject: Reply with quote

I think libata already configures the drives for maximum performance (DMA, etc.), so hdparm is not needed to adjust these settings.

ps. People who try to avoid SCSI at all cost are a small pet peeve of mine. :P
Back to top
View user's profile Send private message
gcasillo
l33t
l33t


Joined: 23 Sep 2003
Posts: 739
Location: Cincinnati, Ohio, USA

PostPosted: Fri May 14, 2004 2:04 am    Post subject: Reply with quote

Well, I have a USB memory stick that uses SCSI. Can I stay in your inner circle? :wink:
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Fri May 14, 2004 2:21 am    Post subject: Reply with quote

Well, actually all harddrives in existence today are IDE drives (be they SCSI or ATA), so we can all get along :lol:

Um, excluding the weathered old survivors of Elder Days, of course :)
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Fri May 14, 2004 2:39 am    Post subject: Reply with quote

OK, we can still be friends. :D
Back to top
View user's profile Send private message
tiny
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2003
Posts: 102
Location: Slovenia

PostPosted: Fri May 14, 2004 5:46 am    Post subject: Reply with quote

moocha wrote:
Well, actually all harddrives in existence today are IDE drives (be they SCSI or ATA), so we can all get along :lol:


Ok! Now I'm confused. What has IDE(ATA) got to do with SCSI?
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Fri May 14, 2004 6:10 am    Post subject: Reply with quote

Indeed.
IDE is short for Intelligent Drive Electronics. It relates to the fact that most of the controller logic is included on a board in or under the hard drive case, i.e. comes packaged with the drive, as opposed to older drives which were built similar to floppies - separate controller (on motherboard and/or extension card) and dumb harddrive. In order to function properly, the controller needed to know the exact geometry of the drive, down to how many sectors, cylinders, tracks, platters, etc etc the drive had. All modern drives do their own internal magic and basically lie to the "world" about their geometry (ah, the holy grail of compatibility :P).
ATA is short for AT Attachment. It's an interface standard and doesn't make any assumptions about internal drive geometry. ATA and IDE are distinct categories and have a priori nothing to do with one another.
SCSI is short for Small Computer Systems Interface. It's yet another interface standard that also doesn't make assumptions about internal drive geometry.
The confusion stems from a time when the ATA standard had only recently been laid out and the only IDE drives available were ATA ones.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
tiny
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2003
Posts: 102
Location: Slovenia

PostPosted: Fri May 14, 2004 7:19 am    Post subject: Reply with quote

We f. up this topic but anyway, thanx for clearing things up a bit for me. I went googling a bit and read some more about it. Things are much more clear to me now.

T.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Fri May 14, 2004 7:51 am    Post subject: Reply with quote

Ah well, going a bit offtopic once in a while doesn't hurt anybody :lol: *ducks to avoid thrown tomatoes*
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
zbadone
n00b
n00b


Joined: 24 Mar 2004
Posts: 20
Location: Florida

PostPosted: Fri May 14, 2004 12:11 pm    Post subject: fix ed problem! Reply with quote

During the new kernel confi, I left a option unchecked.
What that option was, I can not remember at this time.

My single SATA drive is back to it's normal setting of /dev/hdeX.

My MB is an A7N8X-Deluxe, just to clear up some of the other replies to my thread.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum