From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B4fGi-0000O1-By for qemu-devel@nongnu.org; Sat, 20 Mar 2004 07:08:00 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B4fEV-0008WP-0Y for qemu-devel@nongnu.org; Sat, 20 Mar 2004 07:06:15 -0500 Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B4fEF-0008RN-Oz for qemu-devel@nongnu.org; Sat, 20 Mar 2004 07:05:27 -0500 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B4fEA-0006nF-00 for ; Sat, 20 Mar 2004 13:05:22 +0100 Received: from stradivarius.ressukka.net ([212.182.193.154]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 20 Mar 2004 13:05:22 +0100 Received: from ressu by stradivarius.ressukka.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 20 Mar 2004 13:05:22 +0100 From: Sami Haahtinen Date: Sat, 20 Mar 2004 14:05:18 +0200 Message-ID: References: <200403191157.32252.vaise@votreservice.com> <200403191324.40788.vaise@votreservice.com> <200403201011.09796.vaise@votreservice.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <200403201011.09796.vaise@votreservice.com> Sender: news Subject: [Qemu-devel] Re: qemu and already installed OS Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org vaise@votreservice.com wrote: > On Friday 19 March 2004 14:17, Sami Haahtinen wrote: >>That would be your lilo, grab the kernel from the partition, put it >>somewhere, load that kernel image with qemu (with the appropriate >>parameters, you can get them from lilo conf, it's the append line) and >>fire away. >> > > How do you "grab the kernel" ? > I tried "dd if=/dev/hda", but as I said, lilo crash.... Ok, i found a neater way for you to do that.. ;) go to: http://www.lnx-bbc.org/download.html fetch the iso image. boot with the image, log in as root. mount your partition, and chroot to it: mount /dev/hda1 /tmp chroot /tmp /bin/sh If you have other filesystems you are forced to mount, you shouldn't really do this unless you have to. If you do this, you need to clean up before you go: mount -a Re-install lilo by running lilo. Back out once again: exit (exit back to lnx-bbc) umount /tmp sync (i like to play it safe) shutdown the system and boot up without the bootable CD-Image. That's the quick tour on recovering from a HD failure, there are better howtos for this, but if you are clever you should be able to do it with this. -- Sami