Moving OS Install from PATA to SATA
Long Story:
I recently aquired an ASUS T2-AE1 with a very troublesome SIS 182 SATA controller. In order to get a functioning Debian install on this box, I've done the following: 1.) Added an old IDE hard drive into the box and disabled my brand new 250 gig SATA. 2.) Installed Debian Sarge with the 2.6.8 kernel 3.) Upgraded Sarge to Unstable 4.) Installed kernel 2.6.14.1 from Unstable (my SIS 182 was now recognized) At this point, I wanted to migrate my install to the SATA drive and pitch the IDE. So, I begin by: 1.) Partition and format SATA as Root (sda1 - 20 gigs - EXT2), Swap (sda3 - 500 megs), and the rest as XFS (sda2). 2.) Set Root with boot flag. 3.) Mounted Root (to /newdisk/) and copied everything from the IDE drive. 4.) Modified /boot/grub/menu.lst so that root=/dev/sda1 5.) Modified /boot/grub/device.map so that (hd0) /dev/sda 6.) Modified /etc/fstab switching / from hda1 to sda1 7.) Installed GRUB on SATA with the following: chroot /newdisk grub --device-map=/boot/grub/device.map --config-file=/boot/grub/menu.lst grub> root (hd0,0) grub> setup (hd0) 8.) Shutdown and removed the IDE drive. Here comes the problem. When I rebooted, grub kicked in on the SATA drive. I booted my 2.6.14.1 kernel but it dies at: /bin/cat: /sys/block/hda/dev: No such file or directory Device /sys/block/hda/dev seems to be down. Ughh. What did I miss? Any ideas? LarsenMTL |
Post your fstab before you modified it. Also post the modified fstab. Post a listing of your partitions of each hard drive. You should not have to change device.map. Assuming you only have two hard drives. You just need to change hd0 to hd1 in /boot/grub/menu.lst. If you do not know the number, run grub and type root (<tab> at grub's prompt.
The /sys directory is the new sysfs feature in 2.6.x kernels. Did you forgot to include it in the fstab file. The line below will work. Code:
none /sys sysfs defaults 0 0 |
Thanks for replying.
Quote:
Code:
# /etc/fstab: static file system information. Code:
# /etc/fstab: static file system information. Quote:
Code:
Disk /dev/hda: 13.6 GB, 13613064192 bytes Code:
Disk /dev/sda: 250.0 GB, 250059350016 bytes Quote:
Code:
The /sys directory is the new sysfs feature in 2.6.x kernels. Quote:
Thanks. I really appreciate the help. |
Electro,
Thank you so much. Your last comment was the winner. Adding the sata_sis module to my initrd fixed the problem. These forums rock. |
All times are GMT -5. The time now is 08:49 AM. |