maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   HELP unable to install/remove apps (/opt is full) (https://talk.maemo.org/showthread.php?t=66102)

flipalong 2010-11-24 06:24

HELP unable to install/remove apps (/opt is full)
 
could anyone please help me out?
i went to conky and it says i have 0 bites left from my /opt partition, but a few days ago i had about 300mbs.
i tried to uninstall some apps and i rebooted and it was still 0 bites free.
i tried to use filebox to delete a folder from /opt and i rebooted and its still 0 bites free.
and i wouldnt like to reflash the whole os, so hopefully you can just reflash /opt :)
thanks

debernardis 2010-11-24 06:41

Re: HELP unable to install/remove apps (/opt is full)
 
Seems your /opt partition has problems.
If you reflash /opt you are also deleting the majority of those files in rootfs which are symlinked to /opt. So you better reflash both rootfs and opt and start over. Also, if you have a recent backup - or your n900 is still able to backup - at the time you restore, after reflashing, you get a chance to reinstall all the applications you had, or the select only some.

flipalong 2010-11-24 09:27

Re: HELP unable to install/remove apps (/opt is full)
 
how can u reflash just opt and rootfs?
yeah it can still backup :) everything works besides wallpaper, music, videos, and app downloads and removals.

michaaa62 2010-11-24 09:33

Re: HELP unable to install/remove apps (/opt is full)
 
Please try to check in X-Terminal before trying something like reflashing.
What is the output of some unix commands to analyze the situation.
Code:

df
ls -al /opt
mount
du -h /opt | sort -h

Check if /dev/mmcblk0p2 is mounted at /home and /opt is mounted at /home/opt.

debernardis 2010-11-24 09:42

Re: HELP unable to install/remove apps (/opt is full)
 
Well everything you need is explained here:
http://wiki.maemo.org/Updating_the_tablet_firmware
It's in your own interest to read it well and don't start fiddling before you've understood it right.

Backup all your stuff from MyDocs (don't forget hidden directories) and make also a backup with the stock app. Double check you got everything.
Once you're safe that everything is secured, you flash the rootfs and then the emmc.
Your n900 comes out clean from this experience.
Then restore everything. When you restore from backup your application manager will offer you to re-download all your previous apps; you could exclude also some from the restore, especially bulky games, in order you're sure you don't clutter all your opt space again.

Good luck ;)

flipalong 2010-11-25 05:54

Re: HELP unable to install/remove apps (/opt is full)
 
Quote:

Originally Posted by debernardis (Post 881903)
Well everything you need is explained here:
http://wiki.maemo.org/Updating_the_tablet_firmware
It's in your own interest to read it well and don't start fiddling before you've understood it right.

Backup all your stuff from MyDocs (don't forget hidden directories) and make also a backup with the stock app. Double check you got everything.
Once you're safe that everything is secured, you flash the rootfs and then the emmc.
Your n900 comes out clean from this experience.
Then restore everything. When you restore from backup your application manager will offer you to re-download all your previous apps; you could exclude also some from the restore, especially bulky games, in order you're sure you don't clutter all your opt space again.

Good luck ;)

thanks, i kinda knew most of that already :)
im just gonna backup the stuff it backs up with the backup app, and also my music, vids and pics :)

flipalong 2010-11-25 05:55

Re: HELP unable to install/remove apps (/opt is full)
 
and also this is the stuff from terminal:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ df
Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 232752 135908 92560 59% /
ubi0:rootfs 232752 135908 92560 59% /
tmpfs 1024 72 952 7% /tmp
tmpfs 256 84 172 33% /var/run
none 10240 72 10168 1% /dev
tmpfs 65536 4 65532 0% /dev/shm
/dev/mmcblk0p2 2064208 2018212 0 100% /home
/home/opt 2064208 2018212 0 100% /opt
/opt/pymaemo/usr/lib/python2.5
2064208 2018212 0 100% /usr/lib/python2.5
/opt/pymaemo/usr/share/pyshared
2064208 2018212 0 100% /usr/share/pyshared
/opt/pymaemo/usr/lib/pyshared
2064208 2018212 0 100% /usr/lib/pyshared
/opt/pymaemo/usr/share/python-support
2064208 2018212 0 100% /usr/share/python-support
/opt/pymaemo/usr/lib/python-support
2064208 2018212 0 100% /usr/lib/python-support
/dev/mmcblk0p1 28312128 7601344 20710784 27% /home/user/MyDocs
~ $ ls -al /opt
drwxr-xr-x 27 root root 4096 Nov 24 17:19 .
drwxr-xr-x 26 root root 1840 Nov 18 17:27 ..
drwxr-xr-x 2 root root 4096 Sep 11 01:34 bin
drwxr-xr-x 4 root root 4096 Oct 28 21:47 catorise
drwxr-xr-x 2 root root 4096 Nov 24 17:09 crochik
drwxr-xr-x 3 root root 4096 Oct 28 20:24 fapman-cache
drwxr-xr-x 2 root root 4096 Nov 15 20:12 fapn
drwxr-xr-x 4 root root 4096 Oct 30 13:45 filebox
drwxr-xr-x 4 root root 4096 Nov 15 20:13 fmms
drwxr-xr-x 2 root root 4096 Nov 13 20:42 lfocus
drwxrwxr-x 3 root root 4096 Nov 19 18:25 lib
drwxrwxr-x 3 root root 4096 Oct 28 20:15 maemo
drwxr-xr-x 7 root root 4096 Nov 24 14:27 maesynth
drwxr-xr-x 14 root root 4096 Nov 20 14:24 mediabox
drwxr-xr-x 3 root root 4096 Nov 13 17:39 modrana
drwxr-xr-x 5 root root 4096 Oct 31 08:38 opera
drwxrwxr-x 9 root root 4096 Nov 7 12:19 plastic-schemes
drwxr-xr-x 5 root root 4096 Nov 7 10:39 preenv
drwxr-xr-x 2 root root 4096 Nov 13 21:03 psx4m
drwxr-xr-x 3 root root 4096 Nov 1 21:36 pymaemo
drwxr-xr-x 3 root root 4096 Oct 28 20:41 rovio
drwxrwxr-x 2 root root 4096 Oct 28 20:27 rx
drwxr-xr-x 4 root root 4096 Sep 11 01:34 share
drwxrwxrwx 8 root root 4096 Nov 20 14:24 theme-customizer
drwxr-xr-x 3 root root 4096 Nov 24 07:53 unzip
drwxr-xr-x 7 root root 4096 Nov 16 20:07 usr
drwxr-xr-x 4 root root 4096 Oct 28 19:54 var
~ $ mount
rootfs on / type rootfs (rw)
ubi0:rootfs on / type ubifs (rw,bulk_read,no_chk_data_crc)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,noatime,size=1024k)
tmpfs on /var/run type tmpfs (rw,nosuid,noatime,size=256k,mode=755)
none on /dev type tmpfs (rw,noatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noatime,size=65536k)
/dev/mmcblk0p2 on /home type ext3 (rw,noatime,errors=continue,commit=1,data=writebac k)
/home/opt on /opt type none (bind)
nodev on /sys/kernel/debug type debugfs (0)
/opt/pymaemo/usr/lib/python2.5 on /usr/lib/python2.5 type bind (bind)
/opt/pymaemo/usr/share/pyshared on /usr/share/pyshared type bind (bind)
/opt/pymaemo/usr/lib/pyshared on /usr/lib/pyshared type bind (bind)
/opt/pymaemo/usr/share/python-support on /usr/share/python-support type bind (bind)
/opt/pymaemo/usr/lib/python-support on /usr/lib/python-support type bind (bind)
/dev/mmcblk0p1 on /home/user/MyDocs type vfat (rw,noauto,nodev,nosuid,noatime,noexec,nodiratime, utf8,uid=29999,shortname=mixed,dmask=000,fmask=013 3,rodir)
~ $ du -h /opt | sort -h
sort: invalid option -- h
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) multi-call binary

Usage: sort [-nrugMcszbdfimSTokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR] [FILE]...

~ $


how do i check if its mounted and stuff?

michaaa62 2010-11-25 16:47

Re: HELP unable to install/remove apps (/opt is full)
 
I am sorry, should have been
Code:

du -H /opt | sort -n
Please also check the diskusage for /home/user
Code:

du -H /home/user | sort -n
mount without options does tell you which device and which directory are mounted where.

Everything is mounted where it should be for /home and /opt, but the partition is full. Could be /home/user or /opt, so please check with the above command, which one is the culprit for wasting your valuable space.

flipalong 2010-11-26 05:51

Re: HELP unable to install/remove apps (/opt is full)
 
i tried it and the list is so long that i cant copy and paste it all cause the top doesnt show up in terminal :(
im going to reflash the os like now, see if it helps :)
and also i think that maybe my phone cant recognize the /opt partition? because it says its 0B free and even if i delete stuff from it with filebox, its still 0B free...

jim80b 2010-11-26 06:30

Re: HELP unable to install/remove apps (/opt is full)
 
more then likely your apt-get cache is full

sudo apt-get autoclean

or

sudo apt-get clean

will clean this out


All times are GMT. The time now is 10:27.

vBulletin® Version 3.8.8