Qemu /dev/zero

Hi all,

I was emulating kernel image and rootfs using qemu.

qemu -kernel vmlinuz- -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

Reply to
Loading thread data ...

Search at google with: "what is /dev/zero for" turned up:

Results 1 - 10 of about 400,000 for what is /dev/zero for. (0.29 seconds)

Best result is:

formatting link

YOU could have done the same...


Jerry McBride (jmcbride@mail-on.us)
Reply to
Jerry McBride

I think i wanted to know "what is the role of /dev/zero here?"..in the qemu command..

qemu -kernel vmlinuz- -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

Reply to

Nabendu schrieb:

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

Reply to

Thanks a lot.I should have read that.

Regards, Nabendu

Reply to

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.