Hi Wolf,
try something like this: ($ is Linux/host OS, # is HelenOS command):
$ dd if=/dev/zero of=hd.img bs=1M count=64
$ qemu-system-i386 -cdrom image.iso -hda hd.img
# cd /loc
# ls devices
\hw\pci0\00:01.0\ata-c1\d0
....
# mkfat devices/\hw\pci0\00:01.0\ata-c1\d0
/// Note: the device name above is the same as relative locfs path under /
loc. Since we are in directory /loc, you can use tab-completion with the
device name.
# fat
# mkdir /mnt
# mount fat /mnt devices/\hw\pci0\00:01.0\ata-c1\d0
This is obviously not very handy to type in by hand all the time but you
could add it in init.c. Also note that if you modify the FS you need to
unmount it before closing the emulator window.
Maybe the webserver approach is a little bit easier :-)
-Jiri
---------- Původní zpráva ----------
Od: Wolf Ramovsky <[email protected]>
Komu: HelenOS development mailing list <[email protected]>
Datum: 5. 6. 2014 14:47:48
Předmět: Re: [HelenOS-devel] Mode setting test
"Hi Jiri,
Yes, I see ata devices in /loc/devices. I just thought I they will
appear in /loc/bd.
Nevertheless, could you tell how to mount hard disk, please?
2014-06-05 16:20 GMT+04:00, Jiri Svoboda <[email protected]>:
> Hi Wolf,
>
>
> Od: Wolf Ramovsky <[email protected]>
>
> "Than you for links.
> But I didn't found option to mount hard disk automatically in
> configure dialogue, as discribed in [2]. Furthermore, ata_bd server
> doesn't work (log attached), so I can't even mount disk manually.
> I have used webserver.
> """
> I think you just misunderstood the log messages. The system tries to probe
> 4
> instances of ata_bd on 4 different I/O base addresses. The first two
> instances succeed to attach, each finding one device (hard disk and cd-
rom,
>
> respectively), the other two find no device so they refuse to attach.
>
>
>
>
> I believe if you tried ls /loc/devices, you should see the two ATA
devices.
>
>
>
>
> Cheers,
>
> Jiri
>
>
>
_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel"
_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel