Author Topic: Oz 3.5.3 Gpe, Out Of Space On /  (Read 3388 times)

andrewy

  • Newbie
  • *
  • Posts: 6
    • View Profile
Oz 3.5.3 Gpe, Out Of Space On /
« on: January 13, 2006, 08:53:51 pm »
As you can see, I have virtually no space left on /, but plenty of space left in /media/ram:

Filesystem                Size      Used Available Use% Mounted on
/dev/mtdblock4           14.1M     13.0M      1.2M  92% /
/dev/mtdblock6           31.0M     28.0k     29.4M   0% /media/ram

However, /media/ram only contains home/andrew and packages/usr. When I try to do a "ipkg update", I completely ran out of space and reflashed instead of bothering to find the files it had created. How can I make it so that /media/ram is used for anything new?

remick182

  • Newbie
  • *
  • Posts: 11
    • View Profile
Oz 3.5.3 Gpe, Out Of Space On /
« Reply #1 on: January 25, 2006, 12:36:59 am »
I've got the same setup.  I started off with the 64 x 0 setup and then continued to back off until I was back to the 32 x 32.  I've been looking everywhere on the net trying to figure this stuff out and I might have found a couple of useful sites, but I just don't understand this stuff enough to decypher the coding they use.  I really like linux and I want to understand it, but I'm kinda limited on free time.  

Most of the info I've found gives 3 options:
-->First, you could go through and delete any unused files and programs (like bluetooth and such) if you aren't going to use them.  A couple of the users got their Internal Flash (mounted @ /) up to 10+ MB free space.
-->Second, you could somehow copy the entire /usr directory to an sd or cf card and use it as your root directory, or something like that, but it seemed like they were saying that it can cause things to run a bit slower, and once moved, you still can't delete everything or GPE will lose its link to the sd card....not quite sure though.  
-->The third method was to use ipkg through the command line and tell it to install the packages to a certain destination directory, but I can't for the life of me figure out how to do that.  Most of what I've read is utilizing the ipkg function either through a sync or wifi to download and install the packages over the net (kinda like synaptic does).
It seems like there is so much information on the internet on so many different distros, that it getting difficult to narrow down what you are searching for.  I wish I could find a couple of rock solid sites, or even a local community to answer some of my questions.
Feel free to email me if you get a hold of any good info.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Oz 3.5.3 Gpe, Out Of Space On /
« Reply #2 on: January 25, 2006, 05:39:00 am »
Quote
The third method was to use ipkg through the command line and tell it to install the packages to a certain destination directory, but I can't for the life of me figure out how to do that. Most of what I've read is utilizing the ipkg function either through a sync or wifi to download and install the packages over the net (kinda like synaptic does).

ipkg install -d <mount point> <package name>

E.g.: ipkg install -d ram foo.ipk

Then run: ipkg-link mount /media/ram

Which will produce symlinks from the files you installed so that they appear to be on the root partition.

Don't try running ipkg upgrade. The jffs2 filesystem requires some working space and it must also be forced to reclaim space from deleted file - it is not released immediately. This means that just deleting a package (for example one which is about to be upgraded) won't work, the jffs2 garbage collector must be made to run first.

The only way I know to do this (and I'd be interested in more info if anyone has it) is to reboot a couple of times.


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

remick182

  • Newbie
  • *
  • Posts: 11
    • View Profile
Oz 3.5.3 Gpe, Out Of Space On /
« Reply #3 on: January 28, 2006, 07:39:23 pm »
Quote
Quote
The third method was to use ipkg through the command line and tell it to install the packages to a certain destination directory, but I can't for the life of me figure out how to do that. Most of what I've read is utilizing the ipkg function either through a sync or wifi to download and install the packages over the net (kinda like synaptic does).

ipkg install -d <mount point> <package name>

E.g.: ipkg install -d ram foo.ipk

Then run: ipkg-link mount /media/ram

Which will produce symlinks from the files you installed so that they appear to be on the root partition.[div align=\"right\"][a href=\"index.php?act=findpost&pid=112294\"][{POST_SNAPBACK}][/a][/div]

Ok.  This worked for me until I hit another bump.  I had a power issue that was resolved by upgrading my kernel from 3.5.3 to 3.5.4RC and nudging Opie from 1.2.0 to 1.2.1.  Now, when I go into either system info or pkg manager, I don't have my /media/ram listed.  Do I have to manually mount it?  I installed the 48 x 16 kernel, so I know that I should have something...right?  Or am I being a dunce and forgetting that the 14 MB Opie file gets installed there?

cesarcardoso

  • Newbie
  • *
  • Posts: 45
    • View Profile
    • http://
Oz 3.5.3 Gpe, Out Of Space On /
« Reply #4 on: January 28, 2006, 08:06:50 pm »
On collie, IMHO the best is to move your root to a SD card and use altboot to boot your system.

IIRC the altboot ipk can be found on hentges.net, for those not running 3.5.4-RC.
Zaurus SL-5500 (Collie) with 512MB SD, OpenZaurus 3.5.4 and GPE
Linksys WCF-12 Wi-Fi Card, Belkin F8T020 Bluetooth Card

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Oz 3.5.3 Gpe, Out Of Space On /
« Reply #5 on: January 29, 2006, 06:47:37 am »
Quote
Now, when I go into either system info or pkg manager, I don't have my /media/ram listed. Do I have to manually mount it? I installed the 48 x 16 kernel, so I know that I should have something...right?

You just need to add the dest line to /etc/ipkg.conf - the rootfs is shared and OZ doesn't check to see what mount points are available at first boot - this might be worth a bug as it's a usability issue.


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

remick182

  • Newbie
  • *
  • Posts: 11
    • View Profile
Oz 3.5.3 Gpe, Out Of Space On /
« Reply #6 on: January 30, 2006, 08:32:47 pm »
Is there another way to get my /media/ram directory to show back up under 3.5.4RC?  I looked in the /etc/ipkg.conf file and all checked the same as 3.5.3, so is there any other reason it wouldn't mount?

I'd rather just stay under 3.4.5RC and work through the issues as opposed to going back.

I've been able to install many ipk's under my SD card w/o a hitch in order to get some new apps working, but I'm getting hung up on installing libc6.  It gives me a very long error stating something like this:

Configuring libc6
Could not open //usr/lib/ipkg/info/libc6.list for writing: No space left on device
pkg_write_filelist pkg=libc6 returned 28
Linking packages installed in:  sd
Error linking '/media/card/packages/opt/QtPalmtop/etc/colors/Dark.scheme' to '/opt/QtPalmtop/etc/colors/Dark.scheme'
etc...


Is this primarily because of lack of internal flash space?

And if I have to remove some of the apps preinstalled from Opie and move them to my SD card, how do I know which ones I can move?  And how do I avoid massive dep problems?  

I know I've got a lot of questions, so answer what you can.  Any info is help well appreciated.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Oz 3.5.3 Gpe, Out Of Space On /
« Reply #7 on: January 31, 2006, 05:39:18 am »
Quote
  Is there another way to get my /media/ram directory to show back up under 3.5.4RC?

What does 'mount' show? I assume you've flashed one of the kernels other than 64-0.

Quote
I've been able to install many ipk's under my SD card w/o a hitch in order to get some new apps working, but I'm getting hung up on installing libc6. It gives me a very long error stating something like this:

Configuring libc6
Could not open //usr/lib/ipkg/info/libc6.list for writing: No space left on device
pkg_write_filelist pkg=libc6 returned 28
Linking packages installed in: sd
Error linking '/media/card/packages/opt/QtPalmtop/etc/colors/Dark.scheme' to '/opt/QtPalmtop/etc/colors/Dark.scheme'
etc...

Is this primarily because of lack of internal flash space?

Yes. libc will try to update itself on /. Therefore if there's not enough free space on / you'll get an error like this (in addition, as everything is linked to libc, I'm not sure how happy it will be about upgrading it anyway...).

Quote
And if I have to remove some of the apps preinstalled from Opie and move them to my SD card, how do I know which ones I can move? And how do I avoid massive dep problems?

This is a difficult one. I'd recommend moving stuff like the PIM apps, games, etc.

Does anyone know how the latest OE version of ipkg works these days to remove hanging deps (which you'd want to remove with the apps, then re-install and they will be automatically re-installed)?


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