more than one ramdisk
Rohner Thomas
Thomas.Rohner at nanotronic.ch
Tue Jun 24 13:08:42 UTC 2014
Thanks Sebastian,
this was my first contact to users at rtems.org
Yes, I do mount 2 different filesystems (both FAT16) on a RAM-Disk. Is this allowed?
The binary files are generated by makefile.
@dd if=/dev/zero of=fatbin1 bs=1024 count 2048 > /dev/null
/sbin/mkfs.vfat -n name1 -i DiskID1 -F 12 -S 512 -s 1 -r 512 -f -v fatbin1
mcopy -b/ -i fatbin1 content/* ::/
@dd if=/dev/zero of=fatbin2 bs=512 count 1024 > /dev/null
/sbin/mkfs.vfat -n name2 -i DiskID2 -F 12 -S 512 -s 1 -r 512 -f -v fatbin2
mcopy -b/ -i fatbin2 content/* ::/
Should I use some more options?
Freundliche Grüsse / Kind regards,
Thomas Rohner
Entwicklungsingenieur Software
nanoTRONIC GmbH
Werkstrasse 27, CH - 3250 Lyss
T: +41 32 384 69 30, F: +41 32 384 69 31
www.nanotronic.ch | thomas.rohner at nanotronic.ch
-----Original Message-----
From: Sebastian Huber [mailto:sebastian.huber at embedded-brains.de]
Sent: Dienstag, 24. Juni 2014 14:33
To: Rohner Thomas
Cc: users at rtems.org
Subject: Re: more than one ramdisk
Hello Thomas,
On 2014-06-24 14:27, Rohner Thomas wrote:
> I'm using RTEMS 4.10-RSB......
>
> I want to mount RAMDISK.
you cannot mount a RAM disk, you can mount a file system on a RAM disk. Which file system do you use and which parameters do you use for mount()?
>
> The first is no problem, the second I can mount an change path.
>
> But reading back getcwd() I get always current path of first mounting point!
>
> Are there any restrictions?
>
I guess this is because both RAM disks have the same device identifier.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the users
mailing list