| Author |
Message |
|
|
Post subject: new kernel breaks for some users, easy fix
Posted: Jul 14, 2008 - 10:13 PM
|
|
Joined: Nov 28, 2006
Posts: 4277
Status: Offline
|
|
I've automated this in smxi for smxi users, but some users will get a failed install now, this is easy to fix: in /boot/grub/device.map change /dev/hdx to /dev/sdx
x is any letter, only change the hd to sd
smxi does this automatically at the moment.
If you had a kernel install fail this morning or yesterday, then you can just reinstal the kernel and it will go through fine. I tested this and so far so good, but debian kernels need separate handling, but debian kernel users wouldn't see this anyway so don't worry about it.
As root, you can do this: sed -i 's|/dev/hd|/dev/sd|' /boot/grub/device.map |
_________________ sidux Maintenance script: dist-upgrade, kernel install, general utilities: smxi
Backup script [using rdiff-backup]: rd-h2.sh
|
| |
|
|
|
 |
|
|
Post subject: RE: new kernel breaks for some users, easy fix
Posted: Jul 15, 2008 - 03:12 AM
|
|
Joined: Dec 02, 2006
Posts: 1904
Status: Offline
|
|
| the old /dev/hdx format's a leftover from really old kernels and a remnant of kanotix which had kept the old hd naming scheme for a while. Nice to see there's a fix for that too. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: new kernel breaks for some users, easy fix
Posted: Jul 15, 2008 - 05:17 AM
|
|
Joined: Nov 28, 2006
Posts: 4277
Status: Offline
|
|
I found this on sidux chaos, by the way, and I've tested making device.map have /dev/sdx on debian stable and testing, and grub didn't seem to mind, though I guess I'll really know when a new kernel comes into stable or testing, which won't be soon.
In smxi, however, I'm only running this fix for sidux kernels because I'm not positive it's correct for debian kernels. |
_________________ sidux Maintenance script: dist-upgrade, kernel install, general utilities: smxi
Backup script [using rdiff-backup]: rd-h2.sh
|
| |
|
|
|
 |
|
|
Post subject: RE: new kernel breaks for some users, easy fix
Posted: Jul 15, 2008 - 01:36 PM
|
|
Joined: Dec 02, 2006
Posts: 1687
Location: Germany / NRW
Status: Offline
|
|
the hd naming scheme is not necessarily a kanotix remnant, with via chipset you will have it until kernel 2.6.24.x, it changed with kernel 2.6.25.x.
Thanks for reminding me the /boot/grub/device.map which in my case still is wrong, it still looks like (with no negativ effect, though):
Quote:
# cat /boot/grub/device.map
(hd0) /dev/hda
(hd1) /dev/sda
(hd2) /dev/sdb
(hd3) /dev/sdc
(hd4) /dev/sdd
allthough it really should look like (that's how fdisk now names the disks):
Quote:
# cat /boot/grub/device.map
(hd0) /dev/sda
(hd1) /dev/sdc
(hd2) /dev/sdd
(hd3) /dev/sde
(hd4) /dev/sdf
(that's due to the use of an additional host adapter (sdc to sdf @ 2nd adapter) |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: new kernel breaks for some users, easy fix
Posted: Jul 15, 2008 - 03:29 PM
|
|

Joined: Dec 05, 2007
Posts: 31
Location: Kathmandu
Status: Offline
|
|
| Hats off to you H2. Your fix was a miracle. I spoke with you yesterday on IRC about new hardware issues. Your fix did the trick. Thanks to you and all who make sidux rock ! |
_________________ Linux 2.6.25-11.slh.1-sidux-686 i686 [ sidux 2007-04.5 - Έρως christmas special - kde-lite - (200712260129) ]
Rock on sidux !
|
| |
|
|
|
 |
|
|
Post subject: RE: new kernel breaks for some users, easy fix
Posted: Jul 15, 2008 - 05:11 PM
|
|
Joined: Aug 15, 2007
Posts: 19
Location: Oregon
Status: Offline
|
|
| Thanks to damentz and h2, I've got the kernel installed. Everything seems to be running fine, even after today's big DU. If you are interested, this one started as a Gaia install. And still a goddess even after all these upgrades! |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: new kernel breaks for some users, easy fix
Posted: Jul 15, 2008 - 07:04 PM
|
|

Joined: Dec 01, 2006
Posts: 324
Location: Greece
Status: Offline
|
|
Thanks h2.
Worked fine in sidux and antiX. |
_________________ "Philosophers have interpreted the world in many ways; the point is to change it."
|
| |
|
|
|
 |
|
|