I have to do this exercise:
- Create a virtual disk
- Partition this disk
- Create File system
- Mount File System
I'm using Minix (which runs by Qemu as guest machine) on Linux (Host)
Is there anybody who knows how to solve first three point?
Thanks
I have to do this exercise:
I'm using Minix (which runs by Qemu as guest machine) on Linux (Host)
Is there anybody who knows how to solve first three point?
Thanks
I guess you want to do that to get some more space for Minix (the Qemu guest machine)?
Do you have the Qemu Launcher installed? If so, then it's gonna be a pretty easy task.
I've successfully tested following steps with DSL as Qemu guest on FreeBSD host:
qemu-img create virtdisc.img 1G
Open the Qemu Launcher, click on the button "Open" next to "Hard disk 1" entry, browse to the directory which is containing the image you have previously created, select the image and click the "Open" button.
Launch your Guest OS.
Now you need to check if the new created disk is recognized by your Guest OS. Run
dmesg | grep hd
to know that. If you're lucky, you will find a couple lines similar to these:
<4>hdb: attached ide-disk driver
<6>hdb: 2097152 sectors (1074 MB) w/256KiB Cache, CHS=130/255/63
<6>Partition check:
<6> hdb: unknown partition table
cfdisk -z /dev/hdb
The usage of this tool is pretty self-explanatory.
Reboot Guest OS
Check if the partition was successfully created, use "dmesg | grep hd" again. This time the hdb line will look slightly different:
<6> hdb: hdb1
Looks good ^^
mkfs /dev/hdb1
mount /dev/hdb1 /mnt/hdb1
df -h
dmesg doesn't exist in my version of minix (R3.1.6)
---------- Post updated at 06:30 AM ---------- Previous update was at 05:18 AM ----------
This is the settings of Qemu launcher. Is it right?
Minix hasn't the command dmesg, How can I find virtual image in /dev/ ?
Try
cat /var/log/dmesg
.
/var/log/ is empty, but now I know
You can find Virtual disk in this order (in Minix, in this case, but similar for other):
Hard Disk 0: /dev/c0d0
Hard Disk 1: /dev/c0d1
Hard Disk 2: /dev/c0d2
.............. : ......
Pseudocoder thank you for your help :D:D