How can I load sata_nv before amd_pata on Hardy
Nigel Henry
cave.dnb2m97pp at aliceadsl.fr
Sat Nov 6 23:53:18 UTC 2010
On Saturday 06 November 2010 22:15, Rashkae wrote:
> On 10-11-06 04:35 PM, Tom H wrote:
> > grub2 now uses "/dev/disk/by-id" to name its devices and you could
> > probably use "/dev/disk/by-id" in"/etc/fstab". But "/dev/disk/by-uuid"
> > is just as unique from a partition and filesystem viewpoint and it's
> > also more orthodox.
>
> disk/by-id is good to use when you want an immutable reference to the
> exact hardware. Useful for reference with drive partitioning software
> (fdisk), bootloader software, etc.
>
> Tis the kind of thing you learn when you accidentally clone a drive the
> wrong way because a boot cd flipped sda/sdb on you. Not that I ever did
> such (that anyone can prove, in any case.)
Many thanks to You and Tom for your suggestions.
I looked about on the web with "changing load order of modules in initramfs",
and found the solution as below.
Check load order of harddrive modules in lsmod, which were.
libata
ata_generic
pata_acpi
pata_amd
sata_nv
List the desired load order of modules in /etc/initramfs-tools/modules as
below.
libata
sata_nv
ata_generic
pata_acpi
pata_amd
I'd booted up Hardy with the oldest kernel, and saved the current initrd.img
for it to a Backups directory just in case of mishaps.
Then ran: sudo update-initramfs -u -k `uname -r` , which didn't take long.
Rebooted, and the problem is resolved. Swap is back, desktop links to sdb1,
and sdb2 work again, and fdisk -l shows sda (1st sata drive), sdb (2nd sata
drive), and sdc (the pata drive), thus matching all the other distros on this
machine that use libata.
Apologies for not using your suggestions.
All the best.
Nigel.
More information about the ubuntu-users
mailing list