Hi all,
I’m new to Linux so I’m not sure if this is the right place to post.
I installed suse 11.4 and tried to test a bare-metal recovery by using KNOPPIX
- fdisk -l > fdisk.bk
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006a70e
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 104855551 52426752 83 Linux
/dev/sda2 104855552 171960319 33552384 82 Linux swap / Solaris
/dev/sda3 171960320 1953503231 890771456 83 Linux
- cat fstab > fstab.bk
/dev/disk/by-id/ata-ST31000528AS_6VPBRQM5-part1 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-ST31000528AS_6VPBRQM5-part3 /home ext4 acl,user_xattr 1 2
/dev/disk/by-id/ata-ST31000528AS_6VPBRQM5-part2 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
-
backup mbr to flash: dd if=/dev/sda of=/media/sdf1/backup/mbr.img bs=512 count=1
-
backup /: tar cvfpj /media/sdf1/backup/system.tar.bz --exclude /mnt --exclude /proc --exclude . (this was down while i was in the / directory)
-
backup /home: tar cvfpj /media/sdf1/backup/home.tar.bz . (done while i was in /home)
-
tried testing by wiping out MBR and partitions:
dd if=/dev/zero of=/dev/sda bs=512 count=1
dd if=/dev/zero of=/dev/sda1 bs=1024k count=50 -
the system did not load after reboot which was to be expected.
-
using KNOPPIX again i restored the MBR from the flash drive
-
using mke2fs -t ext4 /dev/sda1 -L / (to restore the root filesystem)
-
used mke2fs -t ext4 /dev/sda3 -L /home (to restore the home filesystem)
-
After that / and /home mounted and I untared my backups into the respective directories.
-
When I try to reboot all I see is:
“Error No operating system” and am told to “Reboot and Select proper Boot device or Insert Boot Media in selected Boot device and press a key”
How can I make this work? Where did I go wrong? How can I properly perform a bare metal recovery?