Author Topic: Making a drive image  (Read 1947 times)

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Making a drive image
« 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.
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Making a drive image
« Reply #1 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 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)
SLC-860 cacko / senao wifi

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Making a drive image
« Reply #2 on: November 10, 2004, 08:09:44 am »
thanks - exactly what i was looking for.
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

ikm

  • Full Member
  • ***
  • Posts: 172
    • View Profile
    • http://
Making a drive image
« Reply #3 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.

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Making a drive image
« Reply #4 on: November 10, 2004, 08:41:52 am »
Thanks ikm, I should have search the ZUG!
there is a thread about jffs2 and blkmtd.
« Last Edit: November 10, 2004, 08:42:42 am by pgas »
SLC-860 cacko / senao wifi

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Making a drive image
« Reply #5 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?
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

corecoder

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • http://patternsemerge.home.mindspring.com
Making a drive image
« Reply #6 on: November 10, 2004, 09:20:54 am »
"cp -a" from the comand line should do the trick. (without quotes). This acts like xcopy.
SL-C860 Original Sharp ROM (Flash back and forth wit RC5)/Pocket Workstation
4gb/1gb/340mb MicroDrives
1gb/512/256 SD cards
CampactLAN
Ambicom wireless LAN
Pretec Bluetooth
Ambicom Modem
PocketTop IR keyboard
2X-5500 Orginal ROM/OZ3.5.1

richardh

  • Newbie
  • *
  • Posts: 16
    • View Profile
Making a drive image
« Reply #7 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
« Last Edit: November 11, 2004, 12:30:13 am by richardh »