qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] using a Disk-image in qemu


From: Narcis Garcia
Subject: Re: [Qemu-discuss] using a Disk-image in qemu
Date: Wed, 9 Dec 2015 12:11:55 +0100

You didn't seem copy a disk to image, but you seemed to copy only a
partition.
Instead of /dev/sda1 you can use /dev/sda as input for dd.


El 09/12/15 a les 11:58, Philipp Walderdorff ha escrit:
> Hallo
> I wanted to transfer the image of a disc from an old slowly PC (Fedora
> (2.6.21-1.3194.fc7) to a modern ubuntu 15.04 -PC.
> Therfore I did the following:
> 
> dd if=/dev/sda1 | gzip -9 - | ssh address@hidden "cat >
> /Datenplatte/Fc7Platte.img.gz"
> 
> and on 10.0.0.27 I did:
> gunzip /Datenplatte/Fc7Platte.img.gz
> 
> Then in the gnome-terminal:
> 
> qemu-system-i386 /Datenplatte/Fc7Platte.img
> 
> This could boot Fedora (2.6.21-1.3194.fc7)
> root /hd0,0)
> filesystem type is ext2fs, partition type 0x83
> kernel /vmlinuz-2.6.21-1.3194.fc7 ro root_LABEL=/   rhgb quiet
> initrd /initrd-2.6.21-1.3194.fc7.img
> 
> uncompressing Linux ... Ok, booting the kernel.
> PCI: PIIX3: Enabeling Passive Release on 0000:00:01.0
> Red Hat nash version 6.0.9 starting
> Unable to acess resume devuice (LABEL=SWAP-sda3)
> mount: could not find filesystem '/dev/root'
> setuproot: moving /dev failed: No such file or directory
> setuproot: error mounting /proc: No such file ore directory
> setuproot: error mounting /sys: No such file or directory
> switchroot: mount failed: No such file or directory
> Kernel panic - no syncing: Attempted to kill init!
> 
> 
> I suppose, there is a problem with recognizing the partitions.
> In the old Fedora-PC fdisk shows the same datas concerning the structure
> of the disc like on the modern Ubuntu-15.04-PC
> 
> /Datenplatte$ fdisk -lu /Datenplatte/Fc7Platte.img
> 
> Disk /Datenplatte/Fc7Platte.img: 15,8 GiB, 16907304960 bytes, 33022080
> 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
> Disklabel type: dos
> Disk identifier: 0xaffeaffe
> 
> Device                      Boot   Start      End  Sectors   Size Id Type
> /Datenplatte/Fc7Platte.img1 *         63   401624   401562 196,1M 83 Linux
> /Datenplatte/Fc7Platte.img2       401625  8594774  8193150   3,9G 83 Linux
> /Datenplatte/Fc7Platte.img3      8594775  9622934  1028160   502M 82
> Linux swap
> /Datenplatte/Fc7Platte.img4      9622935 33013574 23390640  11,2G  5
> Extended
> /Datenplatte/Fc7Platte.img5      9622998 33013574 23390577  11,2G 83 Linux
> 
> Only difference: The Device-names in the image-file
> /Datenplatte/Fc7Platte.img have changed from /dev/sda1 to
> /Datenplatte/Fc7Platte.img1
> and so on.
> 
> Is that the problem? Is the problem, that grub is expecting root on
> /dev/sda2  but there is only /Datenplatte/Fc7Platte.img2 ???
> 
> Does someone have an idia?
> thank you verry much
> Philipp
> 
> 
> 
> 
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]