Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #187100

Re: image created by debootstrap does not work

From Ulf Volmer <u.volmer@u-v.de>
Newsgroups linux.debian.user
Subject Re: image created by debootstrap does not work
Date 2017-09-23 00:10 +0200
Message-ID <usEj0-3dn-21@gated-at.bofh.it> (permalink)
References <usEj0-3dn-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 22.09.2017 21:07, 慕 冬亮 wrote:

> qemu-img create $IMG 5G
> sudo mkfs.ext4 $IMG

> qemu-system-x86_64 -kernel /boot/vmlinuz-4.12.0-1-amd64 -hda 
> qemu-stretch.img -append "root=/dev/sda1 single"

You have created an image without any partition table, so root should
point to /dev/sda. And, as Reco already wrote, initrd is needed for ext4.

i will also recommend to use the stretch kernel and initrd to boot you
image.

best regards
Ulf

Back to linux.debian.user | Previous | Next | Find similar | Unroll thread


Thread

Re: image created by debootstrap does not work Ulf Volmer <u.volmer@u-v.de> - 2017-09-23 00:10 +0200

csiph-web