maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   easydebian /home problem (https://talk.maemo.org/showthread.php?t=56660)

m0da 2010-06-20 08:06

easydebian /home problem
 
Long story short: I have 11mb free space on /home, because of the following-

1. Installed easydebian through app. manager
2. ran easy deb img install, attempted to decompress to MyDocs.
-operation came back with an error (i didn't read much into it).
3. after, I had 0 free space on my /home partition

troubleshooting:
1. searched /home for any "debian" files, and for files over 50mb- no luck/significant findings. size of /home is 4671mb, size of MyDocs is 4175mb (so actual home is 4671-4175=~500mb). did this through ssh.
2.tracker-processes --hard-reset, then a reboot just in case.
3. uninstalled easydebian, rebooted.

any help on specific files to look for/to delete (i don't want to do a reflash if i don't have to)?

m0da 2010-06-20 16:09

Re: easydebian /home problem
 
is there an x-term command that'll list all files on /home, ordered by size?

pantera1989 2010-06-20 16:18

Re: easydebian /home problem
 
Download a program called 'Storage Usage' from extras, although I do not know if you are able to install with 0b free.

The program should list your partitions. Click on the /home/ partition and it will display the files in it ordered by size.

rustler 2010-06-20 16:57

Re: easydebian /home problem
 
Quote:

Originally Posted by m0da (Post 722717)
is there an x-term command that'll list all files on /home, ordered by size?

du -h /home | sort -n

You can also redirect to file, but if you are out of space we would need to know the partition to save to.
Take care.

m0da 2010-06-20 17:04

Re: easydebian /home problem
 
2 Attachment(s)
Do these screenshots make sense?

I'm still wondering why my /home is showing up as 90% full (uninstalled some apps).

have any insights?

pantera1989 2010-06-20 17:37

Re: easydebian /home problem
 
Actually no. Only 163 MB free but the program shows only 353 MB of usage.

I think you have a file that is taking more space than it should. The kind that is ex. 100 MB in reality but taking 1.6 GB of usage.

I don't know how you can check that. Check each file using storage usage I guess and find the rogue one. If you find it check it's path in storage usage and then in xterm use the rm command.

Ex: rm /home/user/aaa.txt

Have you tried uninstalling easy debian?

stlpaul 2010-06-20 18:08

Re: easydebian /home problem
 
stuff like openarena can take up several hundreds of megabytes all by itself in /home partition.

m0da 2010-06-20 18:12

Re: easydebian /home problem
 
Thanks for checking it out. I just wanted to make sure I wasn't missing something that was right in front of me.

I've uninstalled easydebian.

one last thing before i flash it all: do you know how to run storage usage from x-term?

pantera1989 2010-06-20 18:31

Re: easydebian /home problem
 
No sorry. I wanted to know that myself. Healthcheck is crashing on startup and I wanted to run it using xterm to know the errors but I couldn't find how.

m0da 2010-06-20 18:35

Re: easydebian /home problem
 
Thanks a bunch for your help.

Reflashing everything now. eh, schtuff happens.

noobmonkey 2010-06-21 06:37

Re: easydebian /home problem
 
Quote:

Originally Posted by pantera1989 (Post 722838)
No sorry. I wanted to know that myself. Healthcheck is crashing on startup and I wanted to run it using xterm to know the errors but I couldn't find how.

It's written in the mega healthcheck thread :)

Running an app depends on how it was made, the python ones run like this -
Code:

python /<path>/filename.py
So in Healthcheck's case :
Code:

python /opt/healthcheck/healthcheck.py

pantera1989 2010-06-21 06:53

Re: easydebian /home problem
 
Thanks noobmonkey. Now that I've seen it I did use xterm to run healthcheck before. That code jogged my memory.

Have you had any luck m0da?

alex.darziu 2010-06-21 09:06

Re: easydebian /home problem
 
Hello everybody,

I've tried to install the Easy Debian and got an error right at the end of the process when the image was extracted... can't remember the exact message but was somewhat related to the IZA image...

Since it wouldn't open any of the apps, i have uninstalled it via Application Manager and then deleted the remaining file from the File Manager. After the first reboot, I got a message that notifies me that my Memory is in Read Only Mode... I don't have a Card and although functionality wise, main apps are working, I can't make a back-up nor restore an existing one, I can't even take a picture, due to the memory issue...

Since I'm very new to Maemo as this is my first device, can someone please provide me with step by step procedure on how to gain access to my memory again?

Many thanks in advance.

pantera1989 2010-06-21 11:27

Re: easydebian /home problem
 
Hi Alex.

First try this. Since you are using windows do the following:

1. Connect your N900 via Mass Storage mode with the USB Cable
2. Right click on the N900's main memory (in Windows)
3. Select 'Properties' from the menu
4. Go to the 'Tools' tab
5. Under 'Error-Checking', click on the button 'Check Now'
6. Select both options and click on Start

Now to the hard way (Not that hard..just follow my instructions. I will try to keep them simple).

1. Install Rootsh from extras. If it is already installed skip this step.
2. Then open X Terminal
3. In X Terminal type: (note: that mmcblk0p1 is mmcblk-zero-p-one)
Code:

root
umount /dev/mmcblk0p1
fsck -f /dev/mmc/blk0p1

Post your results please.

alex.darziu 2010-06-21 12:18

Re: easydebian /home problem
 
Hi pantera1989,

your quick response is very much appreciated!

Since I don't have the data cable with me, I've tried the X Terminal commands that you listed and my result was:

fsck.ext2: No such file or directory while trying to open /dev/mmc/blk0p1

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alterna
te superblock:
e2fsck –b 8193 <device>

Nokia-N900-51-1:~#

What should I run now? As I don't want to mess it up more than I did already...

pantera1989 2010-06-21 12:28

Re: easydebian /home problem
 
But MyDocs shouldn't be ext3. It should be fat.

The N900 has mainly 4 partitions.

On the same chip:

1. /dev/mmcblk0p1 commonly known as MyDocs - FAT file system with 27GB
2. /dev/mmcblk0p2 commonly known as /home/ - EXT3 file system with 2GB
3. /dev/mmcblk0p3 commonly known as Swap - Linux swap file system with 768MB

4. Rootfs on a seperate chip with 256MB.

/dev/mmcblk0p1 should NOT be EXT3. Did you do any repartitioning or anything?

I will try and help you. But if nothing works I suggest you wait till you have a USB cable handy, try Mass storage mode, backup your data and try the fix I posted using WinXP.

If that doesn't work format it. If that doesn't work reinstall fimware and flash the eMMC. I don't know how you can backup though.

alex.darziu 2010-06-21 12:38

Re: easydebian /home problem
 
I'm starting to be a bit worried now... Earlier on, I've checked the memory and could see indeed 4 partitions, right now however, after opening Storage Usage all I can see is:

RootFS - 47MB Free
home - 1.6GB Free

But it's simply impossible to have that much space occupied on my device...

I'm also a bit confused on why are you referring to ext3 as there was no mention of it in the above response...

Will see if I can get a cable today and try your previous suggestion. We'll also keep you posted on the process.

pantera1989 2010-06-21 13:09

Re: easydebian /home problem
 
Oh sorry. You don't need to worry then. I mistakenly read ext2 as ext3.
I was in a hurry because there was a match on TV.

Anyway try this next:
Code:

root
umount /dev/mmcblk0p1
fsck.vfat /dev/mmcblk0p1

And if you do not have important stuff in MyDocs, and do not want to wait till you get home you can try formatting the card using your N900. I would leave this as a last resort though.

Code:

root
mkfs.vfat /dev/mmcblk0p1


alex.darziu 2010-06-21 13:15

Re: easydebian /home problem
 
root
umount /dev/mmcblk0p1

umount: cannot umount /de/mmcblk0p1: Invalid argument

:(

Will try the data cable at home...

pantera1989 2010-06-21 13:20

Re: easydebian /home problem
 
You forgot a 'v'. Its dev/mmcblk0p1.

Try again.

alex.darziu 2010-06-21 13:24

Re: easydebian /home problem
 
Just bad typing as I'm not currently copy/paste-ing from my device - I got in right and get the same error message with the invalid argument...

pantera1989 2010-06-21 13:35

Re: easydebian /home problem
 
I don't know then. It should have worked. Sorry I couldn't help you. Goodluck for when you get home.

alex.darziu 2010-06-22 05:58

Re: easydebian /home problem
 
Following your instructions have managed to fix the memory via the data cable - all directories visible now and thus all back to normal - many many thanks for all the tips! :)

pantera1989 2010-06-22 06:09

Re: easydebian /home problem
 
You're welcome. Glad something finally worked :)


All times are GMT. The time now is 15:59.

vBulletin® Version 3.8.8