maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Lost 2GB partition at /home/ (https://talk.maemo.org/showthread.php?t=39639)

beli 2010-01-07 20:13

Lost 2GB partition at /home/
 
Hi,

My device doens't show a 2 GB ext3 partition. /dev/mmcblk0p2 is not mounted (not showing up with 'mount' and 'df -h' command or in /proc/mounts).

It is however there in /etc/fstab, but when I try mount /dev/mmcblk0p2 it says:
mount: mounting /dev/mmcblk02p on /home failed: Invalid argument.

As cause of that I only have the 256MB of rootfs to install applications :(

ossipena 2010-01-07 21:24

Re: Lost 2GB partition at /home/
 
have you tried rebooting? how did you get your device to such state?

beli 2010-01-07 21:45

Re: Lost 2GB partition at /home/
 
yes, rebooting changes nothing ...

After a reboot of my device (sw_rst) I noticed the /home/opt folder was gone... later I discovered this was due to the fact that the partition mounted at /home/ was no longer mounted.

fatalsaint 2010-01-07 21:46

Re: Lost 2GB partition at /home/
 
I need the output from fstab.

"Invalid argument" means it's trying to mount with a bad option for the filesystem..

beli 2010-01-07 22:05

Re: Lost 2GB partition at /home/
 
Thanks for the help , the fstab is still ok

I figured out what was wrong. Apparantly the filesystem was corrupted.

I ran:
fsck /dev/mmcblk0p2

Which stated a lot of errors and fixed things up using the journal of the ext3 filesystem ...

After that I rebooted and now everything is ok again.

I think I had a sw_rst reboot while another process was maybe writing to the partition. In each case the reboot caused the partition to be in a corrupted state. fsck fixed it all.

ruskie 2010-01-08 07:20

Re: Lost 2GB partition at /home/
 
Hmm odd.. The init system should detect this and try to correct for it. Atleast if it's done properly.

fanoush 2010-01-08 09:12

Re: Lost 2GB partition at /home/
 
Quote:

Originally Posted by ruskie (Post 458727)
Hmm odd.. The init system should detect this and try to correct for it. Atleast if it's done properly.

AFAIK it simply prints into sytem log that /home mount failed. And few lines below it copies default values to /home/user if there is nothing.

See /etc/event.d/rcS-late

I don't see any attempt to fsck /home partition.

ravioli156 2010-01-08 11:42

Re: Lost 2GB partition at /home/
 
Quote:

Originally Posted by fanoush (Post 458850)
AFAIK it simply prints into sytem log that /home mount failed. And few lines below it copies default values to /home/user if there is nothing.

See /etc/event.d/rcS-late

I don't see any attempt to fsck /home partition.

mmm that needs to be reported in the bug tracker (if not already declared), there is no way a phone for mass market leaves a partition in a corrupted state without trying to fscking it.

fanoush 2010-01-08 13:31

Re: Lost 2GB partition at /home/
 
yes, bugzilla is down for me today, please post here a link if you do report it, if not I will do it and post a link

EDIT: it is due to slow DNS propagation issue, have bugzilla working now (new IP of bugs.maemo.org is 80.248.164.252), I'll report it

EDIT2: reported as https://bugs.maemo.org/show_bug.cgi?id=7784

gidoca 2010-02-22 12:43

Re: Lost 2GB partition at /home/
 
Quote:

Originally Posted by fanoush (Post 459128)

Are you sure this is the right bug? This one is about SIP.

pelago 2010-02-22 14:15

Re: Lost 2GB partition at /home/
 
It looks like there was a bugzilla problem around that time, probably due to the server move. Fanoush's original bug 7784 seems to have been replaced with one about SIP. The only evidence I can find for the old 7784 bug is this thread, https://bugs.maemo.org/show_bug.cgi?id=7708, and the first result on http://www.google.co.uk/search?num=1...meta=&aq=f&oq=


All times are GMT. The time now is 00:54.

vBulletin® Version 3.8.8