-   Linux - Server (
-   -   restore systemu form /dev/hda to /dev/sda (

czezz 06-21-2010 01:33 AM

restore systemu form /dev/hda to /dev/sda
I have restored system form backup (tar).
It is not a first time Im doing that - and it always works.

However this time I want to restore system which was working on device /dev/hda to a /dev/sda.
At the last stage of the procedure, I have mounted restoret root file system, and change root to it. Then change /dev/hda to /dev/sda in /etc/vfstab and /etc/lilo.conf.
When I executed "lilo" command I received this error:

fatal: raid_setup: stat("/dev/hda")
What did I forgot to do ? Is that possible to restore system like that ?
Kernel has support for both IDE and SATA devices. This is Slackware 12.2

czezz 06-21-2010 05:08 PM

Well... the answer is: block devices (these is /dev) need to be created/recreated. This way:


# mknod /dev/hda b 3 0
# mknod /dev/hda1 b 3 1

All times are GMT -5. The time now is 07:37 AM.