OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: omega on November 10, 2004, 06:05:16 am

Title: Making a drive image
Post by: omega on November 10, 2004, 06:05:16 am
Hi all,

I'd like to be able to place a image file on a samba share (fat32) and then mount it as a filesystem formatted to ext2.  I would also like to be able to place one of these image files on my 1gig CF (fat32) and mount it and use it to install some programs that i would like to keep installed but don't use very often.

Also Is it possible to mount a cramfs image file as rw?  My zgcc is mounted as rw but i get a permission denied when i try to write to it.
Title: Making a drive image
Post by: pgas on November 10, 2004, 06:22:25 am
AFAIK , after searching on internet, the only rw compressed file system is jffs2 on flash, which can be used only with internal flash of the Z not on sd or cf.

Hence the interest for uclx for compressing exe on the sd or cf.

you have instruction for creating an image file in this thread (https://www.oesf.org/forums/index.php?showtopic=8155) it might work on samba or nfs (I didn't try any of these things)

If this work you should be able to copy some of these images to your cf and
mount it to the same mount point but you'll have to issue the mount command by hand anf not put shortcut in fstab.

There is a limitation in the number of image you can mount (loop device)
Title: Making a drive image
Post by: omega on November 10, 2004, 08:09:44 am
thanks - exactly what i was looking for.
Title: Making a drive image
Post by: ikm on November 10, 2004, 08:18:57 am
Quote
AFAIK , after searching on internet, the only rw compressed file system is jffs2 on flash, which can be used only with internal flash of the Z not on sd or cf.
Actually, it can be used on a regular block device, such as CF or SD, via the blkmtd driver, which provides an emulated MTD device over a regular block device. I haven't tried this on Zaurus, though.
Title: Making a drive image
Post by: pgas on November 10, 2004, 08:41:52 am
Thanks ikm, I should have search the ZUG!
there is a thread about jffs2 and blkmtd (https://www.oesf.org/forums/index.php?showtopic=3986&hl=blkmtd).
Title: Making a drive image
Post by: omega on November 10, 2004, 09:03:46 am
Okay, say i have  a blockdevice mounted and working grand as ext2 - how can i extend this file to make it bigger?

else, how can i do the equivalent of xcopy in linux to copy one drive to another?
Title: Making a drive image
Post by: corecoder on November 10, 2004, 09:20:54 am
"cp -a" from the comand line should do the trick. (without quotes). This acts like xcopy.
Title: Making a drive image
Post by: richardh on November 11, 2004, 12:29:22 am
It isn't easy to grow these filesystems after they are created, so make sure the initial file you create is large enough.

-Richard