Author Topic: Loop device and memory question?  (Read 2271 times)

it0

  • Newbie
  • *
  • Posts: 10
    • View Profile
Loop device and memory question?
« on: April 15, 2004, 09:35:39 am »
As a newbie I have 2 questions

1 At the moment  I have OZ 3.3.5 and a 43MB loop device on my sd card which works fine.

How do I mount this automaticly during startup? At the moment I have an entry in /etc/fstab like this
/mnt/card/loop/part /mnt/loop ext2 defaults,loop 0,0

which mount the part file on /mnt/loop fine, however it cannot be mounted on startup as the sd card is not mounted using the fstab (I guess)

If I do this after startup I have to restart opie so it can find the applications installed on there, is there an easier way?

2 Memory, at the moment I have a 32/32 mb layout, but what does that mean? I can install apps in /mnt/ram but does that mean I have less ram to run apps in? Or if /mnt/ram is full, do I still have 32MB ram free to run apps in?

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Loop device and memory question?
« Reply #1 on: April 15, 2004, 09:46:38 am »
Quote
If I do this after startup I have to restart opie so it can find the applications installed on there, is there an easier way?

Can you not just install them directly to the card? Why are you using a loop device (I\'ve no idea what it is).

Quote
2 Memory, at the moment I have a 32/32 mb layout, but what does that mean? I can install apps in /mnt/ram but does that mean I have less ram to run apps in? Or if /mnt/ram is full, do I still have 32MB ram free to run apps in?

The Z has 64Mb total, so you have 32Mb for running apps and 32Mb for storage.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

it0

  • Newbie
  • *
  • Posts: 10
    • View Profile
Loop device and memory question?
« Reply #2 on: April 15, 2004, 10:19:31 am »
Quote
Quote
If I do this after startup I have to restart opie so it can find the applications installed on there, is there an easier way?

Can you not just install them directly to the card? Why are you using a loop device (I\'ve no idea what it is).


The loop device  can be used to mount a file as a filesystem. I do this because I don\'t want to format the sd card with ext2 or alike. This way I have more I have the benefits of ext2 on the fat formatted card.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Loop device and memory question?
« Reply #3 on: April 15, 2004, 10:23:17 am »
it0,

Your best bet is to mount them via a script run from /etc/rc.d/rc.local or anytime after the sd script in /etc/rc.d/rc5.d/ is run. I\'d go for rc.local as it\'s the last script run prior to running qpe.sh (you could put it here too)

Lardman,

Loop device allows you for example to load a filesystem image (ususally floppy image or CD/DVD iso) without having to burn the image to disk/floppy. Great for testing images before you burn them.

It also allows you to mount compressed filesystem images (usually cramfs) without having to decompress them first. The roms for 5x00 series are cramfs images (actually not sure about 5600). The Cacko 1.21 rom used a loop device to mount the /usr directory (41.2M) from a 22.1M image, saving room in the root flash partition. The main disadvantage is that they are readonly (but in the case of the cacko example so is the root flash partition)


Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card