Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sata pata controller kernel module load order
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
lantoeter
n00b
n00b


Joined: 14 Feb 2007
Posts: 8

PostPosted: Fri Apr 03, 2015 11:24 am    Post subject: sata pata controller kernel module load order Reply with quote

Hello,

i installed an new gentoo to my server system:
Linux 3.18.9-gentoo #2 SMP Thu Apr 2 19:44:03 CEST 2015 x86_64 Intel(R) Xeon(R) CPU E5320 @ 1.86GHz GenuineIntel GNU/Linux

The PC does have many sata pata controller. For all of them i choose the kernel module to build in the kernel.
with DMESG You can see:
ahci
ata_piix
sata_via

i installed the system to an ide drive while no other hard disk where connected. Everything work fine.
Then i connect hard disk to the sata_via controller. The system still works.
But when i connect hard disk to the ahci controller. i get kernel panic.
I think its because the new disk on the ahci controller gets the /dev/sda.

How can i change the order for the kernel modules?

i like to have the order "ata_piix sata_via ahci"

i used google but found no solutions that works (i have tryed many udev sample)

Can someone tell me how that works or give me a link to the docu how kernel modules are loaded in the newest gentoo version.

Or some other way to put every single hard disk to a permanent /dev/sd* link

best regards
LANToeter
Back to top
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1733
Location: St. Wendel

PostPosted: Fri Apr 03, 2015 12:35 pm    Post subject: Reply with quote

You can't, the better Solution is using PARTUUID (without initrd) or LABELS/UUID with an initrd.
Back to top
View user's profile Send private message
lantoeter
n00b
n00b


Joined: 14 Feb 2007
Posts: 8

PostPosted: Fri Apr 03, 2015 1:03 pm    Post subject: Reply with quote

thanks for your fast answer :-)

did you mean something like that ?

vi /etc/fstab

#UUID="3f467b45-fdd5-4a62-b199-c7960d7ae975" /boot ext2 noatime 0 2
#UUID="bafa10ed-1c11-4538-804a-17e81be59f96" / ext4 noatime 0 1
#PARTUUID="d7da7cb2-5d6f-49fd-9c52-6cb009577aa9" none swap sw 0 0
/dev/sda2 /boot ext2 noatime 0 2
/dev/sda4 / ext4 noatime 0 1
/dev/sda3 none swap sw 0 0

i have tried the one in comments but it doesnt helped/worked or did i do someting wrong ?

by the way this one seems to work
UUID=3216529C165260C1 /HDmount/daten01 ntfs defaults,nls=utf8 0 0
UUID=76F836AFF8366D8D /HDmount/daten02 ntfs defaults,nls=utf8 0 0
UUID=4692E17992E16E3D /HDmount/daten03 ntfs defaults,nls=utf8 0 0
UUID=50F2912AF2911576 /HDmount/daten04 ntfs defaults,nls=utf8 0 0
/HDmount/daten01/blurayimage=ro:/HDmount/daten02/blurayimage=ro:/HDmount/daten03/blurayimage=ro:/HDmount/daten04/blurayimage=ro /merged_movie_images fuse.unionfs allow_other 0 0

here is my systems blkid without the ahci disks connected :-)
/dev/sda1: PARTUUID="2dd3b25c-eeb9-4c6e-abd0-86949bac4976"
/dev/sda2: UUID="3f467b45-fdd5-4a62-b199-c7960d7ae975" TYPE="ext2" PARTUUID="94dd9935-2539-4924-9a3b-5dee2ff1ff93"
/dev/sda3: PARTUUID="d7da7cb2-5d6f-49fd-9c52-6cb009577aa9"
/dev/sda4: UUID="bafa10ed-1c11-4538-804a-17e81be59f96" TYPE="ext4" PARTUUID="b67ac7c3-b96c-4640-89fb-55941f54f2c0"
/dev/sdb1: LABEL="Daten25" UUID="50F2912AF2911576" TYPE="ntfs" PARTUUID="d066d066-01"
/dev/sdc1: PARTLABEL="Microsoft reserved partition" PARTUUID="5465e5ab-cb26-4985-9d83-e0b1e2ef62aa"
/dev/sdc2: LABEL="DATEN33" UUID="4692E17992E16E3D" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="fb7bd3f4-e538-4cb3-9e4f-353642cebbca"
/dev/sdd1: LABEL="WIN7" UUID="B2E0A1C0E0A18B65" TYPE="ntfs" PARTUUID="1de5c25e-01"
/dev/sde1: PARTLABEL="Microsoft reserved partition" PARTUUID="299a68ff-815f-4b0c-8755-669cbefb44d4"
/dev/sde2: LABEL="DATEN36" UUID="76F836AFF8366D8D" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="4be7f6f1-2e5a-4a26-b815-7e17d521bac1"
/dev/sdf1: LABEL="Daten16" UUID="3216529C165260C1" TYPE="ntfs" PARTUUID="08cbcda7-01"
/dev/sdh1: UUID="4C68696F686958AA" TYPE="ntfs" PARTUUID="00024041-01"
/dev/sdg1: PARTUUID="e75ae75a-01"


best regards
LANToeter
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Fri Apr 03, 2015 2:51 pm    Post subject: Reply with quote

Have a look: https://forums.gentoo.org/viewtopic-t-1007788-highlight-.html

So even you cannot really put the order like you wish, you can always tell who will be the first one, making sure you will know who will hold your root.
In order to fix your issue, it is a simple as making ata_piix build in kernel and other build as modules
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43198
Location: 56N 3W

PostPosted: Fri Apr 03, 2015 6:47 pm    Post subject: Reply with quote

lantoeter,

Using filesystem UUIDs can be ugly. You need an initrd to mount root that way as the kernel does not understand ttem.
Partitions, even MSDOS partitions, have a PARTUUID. Its different te the filesystem UUID but the kerned understands them without any help.

A word of caution, with a MSDOS partition table, the PARTUUIDs for logical partitions may change if you delete a logical partition.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lantoeter
n00b
n00b


Joined: 14 Feb 2007
Posts: 8

PostPosted: Fri Apr 03, 2015 11:23 pm    Post subject: Reply with quote

thanks for your help

now i use ata_piix as kernel build in and ahci, sata_via as load module

and it works!
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