Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
Qemu /dev/zero
- 05-18-2008
May 18, 2008, 8:04 am

Hi all,
I was emulating kernel image and rootfs using qemu.
qemu -kernel vmlinuz-2.6.22.17-0.1-default -initrd test.cpio.gz /dev/
zero
as mentioned in ramfs-rotfs documentation.
every thing works fine. But i have some confusion here...
What is the role of /dev/zero.
anyone please explain..
Regards,
Nabendu
I was emulating kernel image and rootfs using qemu.
qemu -kernel vmlinuz-2.6.22.17-0.1-default -initrd test.cpio.gz /dev/
zero
as mentioned in ramfs-rotfs documentation.
every thing works fine. But i have some confusion here...
What is the role of /dev/zero.
anyone please explain..
Regards,
Nabendu

Re: Qemu /dev/zero

I think i wanted to know "what is the role of /dev/zero here?"..in the
qemu command..
qemu -kernel vmlinuz-2.6.22.17-0.1-default -initrd test.cpio.gz /dev/
zero
when i am not using /dev/zero qemu is executing and shutting down the
run window..why thats so..
Regards,
Nabendu

Re: Qemu /dev/zero

>

Qemu requires you to specify a hard disk to boot from. Obviously, if you
load a kernel directly and have your root file system on a ramdisk, you
don't need it. But you still have to specify it: Your emulated hda is
/dev/zero - nothing.
Another approach would be to have a command line like:
qemu -kernel vmlinux-2.6 -initrd test.cpio.gz -hda /dev/zero
You could have read this in the Qemu documentation, too. It is mentioned
there.
Regards,
Sebastian
Site Timeline
- » Writing to file delayed with Linux 2.6.10 & NFS
- — Next thread in » Embedded Linux
-
- » inittar patch on new 2.6 kernel
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Miernik energii potrzebny, taki domowy
- — The site's Newest Thread. Posted in » Electronics (Polish)
-
- » ESR "больших" конденсаторов
- — The site's Last Updated Thread. Posted in » Electronic Circuits (Russian)
-