You are not logged in.

#1 2007-04-24 02:18:02

Phrodo_00
Member
From: Seattle, WA
Registered: 2006-04-09
Posts: 342
Website

Moving from ide-legacy to pata?

Hi, I heard somewhere else that the 0.8 install cd uses the pata driver instead of the ide one... how can I make that in my already installed arch (my wiki search didn't come out with anything interesting).
I even switched to use uuid in both grub and fstab.

Offline

#2 2007-04-24 02:52:33

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Moving from ide-legacy to pata?

if u are using a 2.6.20.x kernel its already been done for you


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#3 2007-04-24 11:30:16

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: Moving from ide-legacy to pata?

unless you've still got the ide-hook instead of the pata-hook in your /ect/mkinitcpio.conf...
If such is the case, do this:

# vim /etc/mkinitcpio.conf
go to the HOOKS= line and replace ide with pata
:wq
# mkinitcpio
check for errors...
# mount /boot # if necessary
# mkinitcpio -g /boot/kernel26pata.img

Now, I hope you're using grub, because that's all i ever used, so i don't know how to do this in lilo, but here it goes:
reboot, select the kernel you normally boot in grub, but don't press enter.
Press 'e'. Select the initrd-line and press 'e' again.
You can now change "/kernel26.img" into "kernel26pata.img".
When you're done, press enter and 'b' to boot.

If all goes well, do this to make the change permanent:

# mount /boot # if necessary
# cp /boot/kernel26{pata,}.img

done smile


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#4 2007-04-24 11:35:51

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Moving from ide-legacy to pata?

If I understand correctly, this will make all hd* devices appear as sd* devices? How would my devices nodes lay out be if I currently have two hardrives, hda and sda, one dvd drive hdc and 6 removable drives sd[b-f]?

Offline

#5 2007-04-24 11:47:45

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: Moving from ide-legacy to pata?

Your dvd-drive would be /dev/sr0.
The rest is something else... There's realy no way to tell.
And that's exactly the reason why you should be using persistent block device naming if you want to make the switch.

Another great trick is to use LVM. Instant persistent naming wink


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#6 2007-04-24 16:42:34

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Moving from ide-legacy to pata?

Nice, I think I've got it working. But hdparm doesn't work on my pata drives no more? Are the best settings auto detected then or something?

Last edited by Ramses de Norre (2007-04-24 16:42:45)

Offline

#7 2007-04-24 18:28:46

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Moving from ide-legacy to pata?

Don't forget to edit your /etc/fstab as well.

Offline

#8 2007-04-24 18:35:22

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: Moving from ide-legacy to pata?

I've had no complaints about the performance of my drive... I'm quite happy with the kernel-chosen settings...

I don't know if it's of any use as to tuning performance, but there's also "sdparm", which is suitable for the scsi subsystem that pata uses... There's a PKGBUILD for it in AUR


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#9 2007-04-24 18:40:17

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Moving from ide-legacy to pata?

Yeah, I already searched with pacman for sdparm but it couldn't find it. I'll look into the PKGBUILD when I've got time.
And I did edit my fstab wink

Oh it also seems like hal is acting funky on removable drives, it seems like they are mounted twice... Once by fstab and once by hal or so? Hal didn't do so before. They appear twice in nautilus but only once in /etc/mtab.

Thanks for the very useful info you all gave me, I appreciate it a lot and I'm having a very good time on Arch.

Offline

#10 2007-04-24 21:03:49

Phrodo_00
Member
From: Seattle, WA
Registered: 2006-04-09
Posts: 342
Website

Re: Moving from ide-legacy to pata?

klixon wrote:

unless you've still got the ide-hook instead of the pata-hook in your /ect/mkinitcpio.conf...
If such is the case, do this:
...

Thanks!, it works like a charm.

Offline

#11 2007-04-24 21:30:23

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: Moving from ide-legacy to pata?

tomk wrote:

Don't forget to edit your /etc/fstab as well.

True... although the original post already mentioned:

Phrodo_00 wrote:

I even switched to use uuid in both grub and fstab.

But for others reading this thread... Better follow tomk's advice (or wiki's concerning persistent block device naming)


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

Board footer

Powered by FluxBB