1 |
Salut à tous, |
2 |
|
3 |
Pour chaque nouveau noyau, kernel newbies donne des informations très |
4 |
concises et claires : |
5 |
je site : |
6 |
|
7 |
Libata PATA (Parallel ATA) merge |
8 |
|
9 |
By "Parallel ATA" we mean all the ATA/IDE controllers and drives that we |
10 |
have been using for years before SATA. Almost from the start, one of the |
11 |
objectives of some *kernel* hackers was to replace the IDE drivers available |
12 |
in drivers/ide<http://marc.theaimsgroup.com/?l=linux-kernel&m=115514409104283&w=2>(everything |
13 |
under the "Device drivers -> ATA/ATAPI/MFM/RLL support" |
14 |
configuration menu) with a reimplementation on top of libata (i.e.: the |
15 |
"SATA layer"). Drivers/ide suffers from many ugly and obscure problems, and |
16 |
re-implementing it on top of libata has been much easier than fixing the |
17 |
unfixable drivers/ide mess - most of the porting work has been done by Alan |
18 |
Cox (a consequence of this PATA merge is that libata and all its SATA |
19 |
drivers have also been moved from drivers/scsi (available in the "Device |
20 |
drivers -> SCSI device support -> SCSI low-level drivers" submenu) to |
21 |
drivers/ata (now "Device drivers -> Serial ATA (prod) and Parallel ATA |
22 |
(experimental) drivers"), and all the CONFIG_SCSI_FOOBAR options for the |
23 |
individual SATA drivers have been changed to CONFIG_FOOBAR, so this means |
24 |
you may need to reconfigure your SATA configuration options) |
25 |
|
26 |
This means *2.6.19* may have two drivers for your PATA-based device: The old |
27 |
IDE driver under "Device drivers -> ATA/ATAPI/MFM/RLL support" and an |
28 |
alternative driver under "Device drivers -> Serial ATA (prod) and Parallel |
29 |
ATA (experimental) drivers" (along with the rest of the SATA drivers) |
30 |
|
31 |
What one must you choose? Well, the safe option is using the old driver: The |
32 |
old drivers will continue working just as they did before. There'll be no |
33 |
changes if you continue using the old drivers. |
34 |
|
35 |
Donc tu compiles ton noyau avec les nouveaux drivers, et tu changes ton |
36 |
fstab, ainsi que la ligne root= dans ton grub. |
37 |
|
38 |
etcetcetc. |
39 |
|
40 |
AMicalement. |
41 |
|
42 |
Mickael |
43 |
|
44 |
|
45 |
|
46 |
Le 09/03/07, Didier Link <didier@××××××××××××.fr> a écrit : |
47 |
> |
48 |
> Le Fri, 9 Mar 2007 09:01:56 +0100, |
49 |
> "Jean-Paul Lacquement" <zelos414@×××××.com> a écrit : |
50 |
> |
51 |
> > Bonjour, |
52 |
> |
53 |
> Bonjour, |
54 |
> |
55 |
> > |
56 |
> > J'ai installé gentoo sur mon serveur (auparavant, c'était une debian). |
57 |
> > Celui-ci comporte deux disques: |
58 |
> > |
59 |
> > /dev/hda -> IDE -> /mnt/hd |
60 |
> > |
61 |
> > /dev/hdc -> SATA -> /dev/hdc1 -> /boot |
62 |
> > -> /dev/hdc3 -> / |
63 |
> > |
64 |
> > Je pouvais pas deviner qu'au reboot, après l'installation, mon SATA |
65 |
> > serait hdc (j'aurai préféré sda ou encore hda). Horreur! Le SATA est |
66 |
> > terriblement lent! Forcèment, il n'est pas actif dans le noyau par |
67 |
> > défaut 2.6.19. Je l'ai recompilé dans le noyau |
68 |
> > |
69 |
> > sedna linux # grep -i SATA /usr/src/linux/.config |
70 |
> > # CONFIG_BLK_DEV_IDE_SATA is not set |
71 |
> > # CONFIG_SATA_AHCI is not set |
72 |
> > # CONFIG_SATA_SVW is not set |
73 |
> > # CONFIG_SATA_MV is not set |
74 |
> > # CONFIG_SATA_NV is not set |
75 |
> > # CONFIG_SATA_QSTOR is not set |
76 |
> > # CONFIG_SATA_PROMISE is not set |
77 |
> > # CONFIG_SATA_SX4 is not set |
78 |
> > # CONFIG_SATA_SIL is not set |
79 |
> > # CONFIG_SATA_SIL24 is not set |
80 |
> > # CONFIG_SATA_SIS is not set |
81 |
> > # CONFIG_SATA_ULI is not set |
82 |
> > # CONFIG_SATA_VIA is not set |
83 |
> > # CONFIG_SATA_VITESSE is not set |
84 |
> > CONFIG_SATA_INTEL_COMBINED=y |
85 |
> > |
86 |
> > Par contre lorsque je boote sur le nouveau noyau, on dirait bien que |
87 |
> > ma racine n'est plus la même... Comment faire pour démarrer avec prise |
88 |
> > en charge de mon disque SATA? |
89 |
> |
90 |
> Oui effectivement le nom a dû changer en /dev/sda. C'est quoi le |
91 |
> message d'erreur exact que tu as au reboot ? Un kernel panic ou quelque |
92 |
> chose du genre ? |
93 |
> |
94 |
> > |
95 |
> > Merci. |
96 |
> > |
97 |
> > Ci-dessous mon grub.conf et fstab: |
98 |
> > |
99 |
> > sedna linux # cat /boot/grub/grub.conf |
100 |
> > default 0 |
101 |
> > timeout 30 |
102 |
> > |
103 |
> > splashimage=(hd0,0)/boot/grub/splash.xpm.gz |
104 |
> > |
105 |
> > title=Gentoo Linux ancien |
106 |
> > root (hd0,0) |
107 |
> > kernel /kernel-genkernel-x86-2.6.19-gentoo-r5 root=/dev/ram0 |
108 |
> > init=/linuxrc ramdisk=8192 real_root=/dev/hdc3 udev |
109 |
> > initrd /initramfs-genkernel-x86-2.6.19-gentoo-r5 |
110 |
> > |
111 |
> > title=Gentoo Linux recompile |
112 |
> > root (hd0,0) |
113 |
> > kernel /kernel-genkernel-x86-2.6.19-gentoo-r5-custom root=/dev/ram0 |
114 |
> > init=/linuxrc ramdisk=8192 real_root=/dev/hdc3 udev |
115 |
> > initrd /initramfs-genkernel-x86-2.6.19-gentoo-r5-custom |
116 |
> |
117 |
> Ici à mon avis tu devrais changer "/dev/hdc3" en "/dev/sda3", tu iras |
118 |
> un peu plus loin je pense dans le processus de boot. |
119 |
> |
120 |
> > |
121 |
> > sedna linux # cat /etc/fstab |
122 |
> > /dev/hdc1 /boot reiserfs |
123 |
> > notail,noatime 1 2 /dev/hdc3 / |
124 |
> > reiserfs notail,noatime 0 1 /dev/hdc2 |
125 |
> > none swap sw 0 |
126 |
> > 0 /dev/cdroms/cdrom0 /mnt/cdrom iso9660 |
127 |
> > noauto,ro 0 0 /dev/fd0 /mnt/floppy |
128 |
> > auto noauto 0 |
129 |
> > 0 /dev/hda1 /mnt/hd1 reiserfs |
130 |
> > defaults 0 0 proc /proc |
131 |
> > proc defaults 0 0 |
132 |
> > shm /dev/shm tmpfs nodev,nosuid,noexec |
133 |
> > 0 0 |
134 |
> |
135 |
> Ici aussi tu devrais changer tous tes /dev/hdc[123] en /dev/sda[123] |
136 |
> |
137 |
> Tout ceci à condition que le driver sata du noyau se comporte comme le |
138 |
> mien (nvidia nforce4 pour ma part). |
139 |
> |
140 |
> Avant de changer ton fstab assures-toi d'avoir un livecd sous la main |
141 |
> pour pouvoir réparer ton installation facilement. |
142 |
> |
143 |
> Bon courage ! |
144 |
> |
145 |
> Didier |
146 |
> |
147 |
> |
148 |
> -- |
149 |
> Didier Link <didier@××××××××××××.fr> |
150 |
> Jabber : zanfib@××××××××××.net |
151 |
> MSN : zanfib@×××××××.fr |
152 |
> SIP : Zanfib@×××××.net |
153 |
> |
154 |
> Clé GPG : 75BAC9EE |
155 |
> -- |
156 |
> gentoo-user-fr@g.o mailing list |
157 |
> |
158 |
> |