Author Topic: Openzaurus - Automatically Mounting Loop Fs  (Read 2532 times)

geo

  • Newbie
  • *
  • Posts: 5
    • View Profile
Openzaurus - Automatically Mounting Loop Fs
« on: April 23, 2005, 12:30:43 pm »
Hello everybody!

I have Zaurus 5500 and just flashed with OpenZaurus 3.5.3, zImage-collie-64-0-20050407102515.bin and Opie for GUI.

I have Transcend SD 512MB, vfat formatted. I created 256 MB file on it and formatted it as ext2 file system. I can't make the linux to mount the file at boot time. I searched the forums here and couldn't find aplicable topics. I also tried the steps from here:
http://www.olfsworld.de/software/linux/zaurus/
and didn't work.
Well, what I want to achieve is to keep the SD with vfat fs (so I can use it w/o reformatting with non-linux devices) and to make OpenZaurus "see" a file on the SD as an ext2 (or whatever other suitable) file system and install programs on it.

I guess I am not the first one with such question, but... couldn't find working answer till now.
I also appreciate another useful suggestions for flexible usage of the space on the SD card.
Thanks!
SL5500
512 MB SD Transcend
ASUS SpaceLink Wireless LAN CD Card WL-110
OpenZaurus 3.5.3

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Openzaurus - Automatically Mounting Loop Fs
« Reply #1 on: April 23, 2005, 08:02:45 pm »
What does your /etc/fstab look like? And what does output from dmesg say?

z.
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

CoreDump

  • Hero Member
  • *****
  • Posts: 713
    • View Profile
    • http://www.hentges.net
Openzaurus - Automatically Mounting Loop Fs
« Reply #2 on: April 24, 2005, 06:51:12 am »
The only ways i can think of to make this work is :

1) to hack /etc/sdcontrol to do as you wish.
2) to change /etc/fstab and to mount the (VFAT) card somewhere else (like /media/VFAT),
    then call a script after the card is mounted which mounts the image in /media/card

FYI: /etc/fstab is _not_ used to mount /media/card at boot-time. Mounting is done by /etc/sdcontrol.
« Last Edit: April 24, 2005, 06:52:49 am by CoreDump »
Webmaster of hentges.net & Embedded Linux Developer.

geo

  • Newbie
  • *
  • Posts: 5
    • View Profile
Openzaurus - Automatically Mounting Loop Fs
« Reply #3 on: April 24, 2005, 05:30:39 pm »
Quote
The only ways i can think of to make this work is :

1) to hack /etc/sdcontrol to do as you wish.
2) to change /etc/fstab and to mount the (VFAT) card somewhere else (like /media/VFAT),
    then call a script after the card is mounted which mounts the image in /media/card

FYI: /etc/fstab is _not_ used to mount /media/card at boot-time. Mounting is done by /etc/sdcontrol.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Same is suggested on the page pointed by the link in my original post. I will play a little with sdcontrol script.
Btw, I found this:
[a href=\"http://www.purple.dropbear.id.au/node/view/97]article[/url] ("Customisation of OpenZaurus 3.5.2 (Collie / sl5500 )"), and particularly the part which explains the usage of rboot (I found recent version here: http://mysite.verizon.net/dfsteen/rboot-3.5.3.tar.gz).
Rboot allows different images placed on ext2 formatted SD to be booted. The idea is that the whole internal flash is copied into the image on the SD and then the mounted image becomes the root - / . You can configure which images are available for booting with a .conf file. Well, seems I have to touch the scripts a little so it mounts also vfat formatted SD. Btw does anybody else have used rboot? Pls, share some experience.
SL5500
512 MB SD Transcend
ASUS SpaceLink Wireless LAN CD Card WL-110
OpenZaurus 3.5.3