maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   N900 filesystem corrupt?! (https://talk.maemo.org/showthread.php?t=72870)

Wagner1975 2011-05-08 13:28

N900 filesystem corrupt?!
 
My N900 rebooted by itself this morning, and when I wanted to use it, the background was black, almost none of my programs wanna work, all my contacts and called and recieved numbers are gone. When I reboot it, it shows 'Internal error' atleast 3 or 4 times. It doesn't see any backups, so can't restore. MicroB dead, email dead, etc. Didn't install any programs for the last month or two. Was working fine this morning. Plugged it into laptop to see if I can use it as internet connection when it rebooted.

Please help.
Thanx

Wagner1975 2011-05-08 16:40

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by michaaa62 (Post 1000448)
You must have rootsh from extras repository installed for this to work! It checks the filesystem for easy (automatically) correctable errors.

Code:

sudo gainroot
umount /dev/mmcblk0p1

This should give you an error because the device is not mounted since corrupted, but to be on the safer side, do it anyway.
Code:

fsck -af /dev/mmcblk0p1
mount /dev/mmcblk0p1 /home/user/MyDocs

Pleas feel free to ask, if any more errors occur.

I've tried the above, but when I try 'sudo gainroot' it says
'Enable RD mode if you want to break your device'
I have downloaded Rootsh a long time ago.
Can't connect to internet either, so can't download it again.

PLEASE HELP

Wagner1975 2011-05-08 16:49

Re: N900 filesystem corrupt?!
 
This morning when I tried 'sudo gainroot' it asked me for a password ... does anyone else have this problem? Then when I tried it again ... it started giving me the above message.

michaaa62 2011-05-08 16:52

Re: N900 filesystem corrupt?!
 
Try to reinstall rootsh, somehow its functionality is broken by some other stuff you installed. Because root access is broken you have to use HAM application manager to uninstall rootsh and then install it again.
Note: It might be necessary to make a list of some packages that will also get removed along rootsh.

Wagner1975 2011-05-08 16:55

Re: N900 filesystem corrupt?!
 
thanx for replying michaaa62
I'm not very good with terminal, so you'll have to explain:

What is HAM app, and can I reinstall without internet access?

Wagner1975 2011-05-08 17:25

Re: N900 filesystem corrupt?!
 
I went into Application Manager and could not find rootsh there ... does that mean it's not installed?

michaaa62 2011-05-08 17:30

Re: N900 filesystem corrupt?!
 
Hildon Application Manager is the package manager that comes with Maemo.
Check from the X-terminal if it is installed, no need for root rights here with
Code:

apt-cache policy rootsh
Be patient, this command takes some time!
You need some way to download rootsh, may that be some computer or your n900, may be from the download page here http://repository.maemo.org/extras/p..._1.5_armel.deb
Transfer it to your N900 and click the package in your file manager to install it again via HAM.

JonWW 2011-05-08 17:33

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by Wagner1975 (Post 1002214)
I went into Application Manager and could not find rootsh there ... does that mean it's not installed?

If it is installed it will be under the uninstall button, if you have not installed it it will be under the download button.

Check that you have the right repositories setup

Wagner1975 2011-05-08 18:06

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by michaaa62 (Post 1002219)
Hildon Application Manager is the package manager that comes with Maemo.
Check from the X-terminal if it is installed, no need for root rights here with
Code:

apt-cache policy rootsh
Be patient, this command takes some time!
You need some way to download rootsh, may that be some computer or your n900, may be from the download page here http://repository.maemo.org/extras/p..._1.5_armel.deb
Transfer it to your N900 and click the package in your file manager to install it again via HAM.

I downloaded it to my laptop, copied it to the n900, and then went into midnight comander and clicked on the file, then it gave me this error message

Inconsistent extfs archive
sh: /opt/mc/libexec/mc/extfs.d/deb: not found

How else should I try to run it?

PS it wasn't installed anymore

michaaa62 2011-05-08 19:16

Re: N900 filesystem corrupt?!
 
Yes indeed, mc is the geeky way to get things done, but it is not very well integrated into Maemo.
Please move the .deb file to /home/user/MyDocs/.documents to find it in Hildon File Manager (HFM). Clicking here should now start HAM

JonWW 2011-05-08 19:21

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by Wagner1975 (Post 1002233)
How else should I try to run it?

Find it in the file manager and click on it

Wagner1975 2011-05-08 19:22

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by michaaa62 (Post 1002295)
Yes indeed, mc is the geeky way to get things done, but it is not very well integrated into Maemo.
Please move the .deb file to /home/user/MyDocs/.documents to find it in Hildon File Manager (HFM). Clicking here should now start HAM

Hi Michaaa62, the problem is in my HFM there is now files or folders. I managed to connect my phone through my simcard now and through HAM I managed to install Rootsh.
Where should I start now?

Wagner1975 2011-05-08 19:23

Re: N900 filesystem corrupt?!
 
Ok cool ... 'sudo gainroot' worked
what now?

Wagner1975 2011-05-08 19:38

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by JonWW (Post 1002301)
Find it in the file manager and click on it

Thanx JonWW, I appreciate the input, but almost none of my programs are working, HFM shows no folders or files ... nothing.

Wagner1975 2011-05-08 19:44

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by michaaa62 (Post 933291)
You might try to get debugging info from within your device in X-Terminal. But for some of the commands to work you need rootsh from extras repository installed.
Code:

mount
df -h
ls -al /home
sudo gainroot
sfdisk -l

If you have questions regarding the output, feel free to ask, but attach or copy'n'paste the full output of all commands.

I did the above, but since I use a different coputer to post, I can't copy and paste the output. What do I look for?

JonWW 2011-05-08 19:46

Re: N900 filesystem corrupt?!
 
Do you have a backup of you contacts?
or
Do you still have
Code:

/home/user/.osso-abook
and
Code:

/home/user/.osso-abook-backup
this is where your contacts are.

JonWW 2011-05-08 19:51

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by Wagner1975 (Post 1002324)
I did the above, but since I use a different coputer to post, I can't copy and paste the output. What do I look for?

Do you not have internet access from the phone? because you can copy and paste from XTerm.

If you have OpenSSH on your phone? you could use PuTTY on your PC to access the phone's command prompt, and copy and paste from there.

Wagner1975 2011-05-08 20:02

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by JonWW (Post 1002327)
Do you have a backup of you contacts?
or
Do you still have
Code:

/home/user/.osso-abook
and
Code:

/home/user/.osso-abook-backup
this is where your contacts are.

Hi JonWW

I have a backup at home, but I won't be back there for 3 weeks.

I only have the second one, not the first one

Wagner1975 2011-05-08 20:06

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by JonWW (Post 1002330)
Do you not have internet access from the phone? because you can copy and paste from XTerm.

If you have OpenSSH on your phone? you could use PuTTY on your PC to access the phone's command prompt, and copy and paste from there.

No internet doesn't work on the phone, Neither does the web browser. I don't know OpenSSH or PuTTy, usiong Windows 7.

Wagner1975 2011-05-08 20:09

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by michaaa62 (Post 933345)
Yes it does.
The partition for MyDocs is not mounted, this might be often triggered by a corrupted file system due to not being safely removed from a PC.
Please try
Code:

sudo gainroot
fsck -af /dev/mmcblk0p1

If no errors occur, try to mount it
Code:

mount /dev/mmcblk0p1 /home/user/MyDocs

I did this, and had no troubles, terminal went through those code without any hickups, so I guess that's not the problem.

michaaa62 2011-05-08 20:10

Re: N900 filesystem corrupt?!
 
Although i remember giving all the code in a couple of threads to sort things, i don't know which exact errors you are facing. There are is a way to get around the shortage of internet access from the N900 itself.
Try to redirect the output of the commands to a text file, copy this file to your pc, then paste its content here.
Code:

sudo gainroot
umount /dev/mmcblk0p1
fsck -af /dev/mmcblk0p1 > output.txt
mount /dev/mmcblk0p1 /home/user/MyDocs >> output.txt

This would give you root rights, then unmounts the MyDocs partition, redirects (>) the output of the fsck commant to the output.txt file and finally append (>>) the output of the mount command to output.txt file also.
Accordingly the codeblock for those debugging commands would be
Code:

mount > debug.txt
df -h >> debug.txt
ls -al /home >> debug.txt
sudo gainroot
sfdisk -l >> debug.txt


JonWW 2011-05-08 20:12

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by Wagner1975 (Post 1002335)
I only have the second one, not the first one

If the backup has folders and files in it then copy the backup over the first and hopfully you will get your (some) contacts back. I have never tried this so I cannot say how successful it wil be. Fingers crossed.

Wagner1975 2011-05-08 20:22

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by michaaa62 (Post 1002343)
Although i remember giving all the code in a couple of threads to sort things, i don't know which exact errors you are facing. There are is a way to get around the shortage of internet access from the N900 itself.
Try to redirect the output of the commands to a text file, copy this file to your pc, then paste its content here.
Code:

sudo gainroot
umount /dev/mmcblk0p1
fsck -af /dev/mmcblk0p1 > output.txt
mount /dev/mmcblk0p1 /home/user/MyDocs >> output.txt

This would give you root rights, then unmounts the MyDocs partition, redirects (>) the output of the fsck commant to the output.txt file and finally append (>>) the output of the mount command to output.txt file also.
Accordingly the codeblock for those debugging commands would be
Code:

mount > debug.txt
df -h >> debug.txt
ls -al /home >> debug.txt
sudo gainroot
sfdisk -l >> debug.txt


Can you give me some help how to get it to txt file?

The first one is short so I'll type it quickly

# fsck -af /dev/mmcblk0p1
fsck 1.41.3.maemo0 (12-Oct-2008)
dosfsck 2.11, 12 Mar 2005, FAT 32, LFN
/dev/mmcblk0p1: 6020 files, 384378/442377 clusters
#

# mount /dev/mmcblk0p1 /home/user/MyDocs
#

no problems.

Wagner1975 2011-05-08 20:26

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by JonWW (Post 1002346)
If the backup has folders and files in it then copy the backup over the first and hopfully you will get your (some) contacts back. I have never tried this so I cannot say how successful it wil be. Fingers crossed.

Why are there no first file? What should I copy it over, since there are no file, or should I copy and then rename it? I have copied everything I could from the n900 to my Laptop, so I should have everything safe. All my docs and pics and all are there. Just can't get the n900 to see them.

michaaa62 2011-05-08 20:28

Re: N900 filesystem corrupt?!
 
Just add the sign for 'larger as' > to the command and specify the name of the file. That will give you no response in the terminal, because it redirects the terminal output into the file.
Quote:

# fsck -af /dev/mmcblk0p1
fsck 1.41.3.maemo0 (12-Oct-2008)
dosfsck 2.11, 12 Mar 2005, FAT 32, LFN
/dev/mmcblk0p1: 6020 files, 384378/442377 clusters
This indicates that the MyDocs partition is clean, there is no corrupt file system here.
The 'mount' command without any further argument will list any partitions and directories which are mounted on the device. There could be some indication that important stuff is missing right now.

Wagner1975 2011-05-08 20:39

Re: N900 filesystem corrupt?!
 
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/mmcblk1p1 on /media/mmc1 type vfat (rw,noauto,nodev,noexec,nosuid,noatime,nodiratime, utf8,uid=29999,shortname=mixed,dmask=000,fmask=013 3,rodir)
/dev/mmcblk0p1 on /home/user/MyDocs type vfat (0)
Filesystem Size Used Available Use% Mounted on
rootfs 227.9M 148.7M 75.0M 66% /
ubi0:rootfs 227.9M 148.7M 75.0M 66% /
tmpfs 1.0M 76.0k 948.0k 7% /tmp
tmpfs 256.0k 72.0k 184.0k 28% /var/run
none 10.0M 76.0k 9.9M 1% /dev
tmpfs 64.0M 100.0k 63.9M 0% /dev/shm
/dev/mmcblk0p2 2.0G 601.1M 1.3G 31% /home
/home/opt 2.0G 601.1M 1.3G 31% /opt
/opt/pymaemo/usr/lib/python2.5
2.0G 601.1M 1.3G 31% /usr/lib/python2.5
/opt/pymaemo/usr/share/pyshared
2.0G 601.1M 1.3G 31% /usr/share/pyshared
/opt/pymaemo/usr/lib/pyshared
2.0G 601.1M 1.3G 31% /usr/lib/pyshared
/opt/pymaemo/usr/share/python-support
2.0G 601.1M 1.3G 31% /usr/share/python-support
/opt/pymaemo/usr/lib/python-support
2.0G 601.1M 1.3G 31% /usr/lib/python-support
/dev/mmcblk1p1 3.7G 32.0k 3.7G 0% /media/mmc1
/dev/mmcblk0p1 27.0G 23.5G 3.5G 87% /home/user/MyDocs
drwxr-xr-x 49 user users 4096 Dec 3 11:25 .
drwxr-xr-x 25 root root 1632 Dec 3 09:34 ..
drwxr-xr-x 3 root root 4096 Dec 3 11:28 .apt-archive-cache
drwx------ 26 root root 16384 Jan 1 1970 lost+found
drwxr-xr-x 44 root root 4096 May 8 19:57 opt
drwxr-xr-x 3 user users 4096 Nov 27 20:01 temp
drwxr-xr-x 58 user users 4096 May 8 22:35 user

Disk /dev/mmcblk1: 121008 cylinders, 4 heads, 16 sectors/track
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk1p1 0+ 121007 121008- 3872248 b W95 FAT32
/dev/mmcblk1p2 0 - 0 0 0 Empty
/dev/mmcblk1p3 0 - 0 0 0 Empty
/dev/mmcblk1p4 0 - 0 0 0 Empty

Disk /dev/mmcblk0: 977024 cylinders, 4 heads, 16 sectors/track
Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 1 884864 884864 28315648 c W95 FAT32 (LBA)
/dev/mmcblk0p2 884865 950400 65536 2097152 83 Linux
/dev/mmcblk0p3 950401 974976 24576 786432 82 Linux swap / Solaris
/dev/mmcblk0p4 0 - 0 0 0 Empty

JonWW 2011-05-08 20:42

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by Wagner1975 (Post 1002350)
Why are there no first file?

Something to do with your crash, you have lost your contacts, so copying the backup should restore them.

Make sure "Contacts" is closed, then type in XTerm.
Code:

cp -r /home/user/.osso-abook-backup/ /home/user/.osso-abook/
Quote:

Originally Posted by Wagner1975 (Post 1002350)
I have copied everything I could from the n900 to my Laptop, so I should have everything safe. All my docs and pics and all are there. Just can't get the n900 to see them.

If we can find your contacts again then you can back them up and then reflash.

Wagner1975 2011-05-08 20:57

Re: N900 filesystem corrupt?!
 
JonWW I'm not too concerned with my Contacts, since I know they are safe at home, further I have my old phone with me, and most of my contacts are still on there, the problem is even if I do copy the 2'nd file to the first, the n900 will still not see it, and the backup utility is not working either. I did copy my previous backups to my laptop aswell. So I think the data is safe. I'm a bit scared of flashing, so I'll stick with any other options until it's the only option left. Wanna get behind why it happened.

JonWW 2011-05-08 21:12

Re: N900 filesystem corrupt?!
 
I doubt you'll be able to find out why it happened. I would reflash because everything will be back to factory deflaults and if it crashes again then it could indicate you have a hardware problem.

Also, it's good to know how to reflash, there's nothing to worry about and it will format the corrupted drive.

Wagner1975 2011-05-08 21:21

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by JonWW (Post 1002375)
I doubt you'll be able to find out why it happened. I would reflash because everything will be back to factory deflaults and if it crashes again then it could indicate youl have a hardware problem.

Also, it's good to know how to reflash, there's nothing to worry about and it will format the corrupted drive.

Ok JonWW, how do I go about it? I know it's somewhere in the wiki, but how do I get there?

JonWW 2011-05-08 21:35

Re: N900 filesystem corrupt?!
 
http://wiki.maemo.org/Updating_the_firmware

Good luck

michaaa62 2011-05-08 21:43

Re: N900 filesystem corrupt?!
 
The output is okay, there is no indication that something is weird or broken.
If a reboot does not fix things, you might try to get rid of the widgets and stuff on the desktops and apply one of the default themes to the desktop (if you had a custom setup, at all, this is). There is a chance that some misbehaving application is causing it.
Do you use a modified version of hildon-desktop, like the CSSU (community seamless software update) version or MAG's modified hildon-desktop?

Wagner1975 2011-05-09 09:38

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by JonWW (Post 1002392)

JonWW, do I only flash the rootfs, or do I need to flash the emmc aswell? Furher can I download some of the programs that I had from a website since I don't have a wireless connection for my n900 for the next 3 weeks, or is there a way to connect my n900 to my laptop and use the laptops internet access?

Michaaa62, I have rebooted it several times, everytime I reboot, it start up ... the welcome tune sound very scratchy, the it goes to the desktop, with black background and then it start throwing all this error messages like ... 'unable to perform operation, internal error' and 'application mail closed, internal error' and 'application web closed, internal error' etc. It repeat that lines over and over, without me doing or opening anything. I've closed all widgets changes themes etc ... nothing! Further I can't change the background, it stays black.

JonWW 2011-05-09 09:54

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by Wagner1975 (Post 1002628)
JonWW, do I only flash the rootfs, or do I need to flash the emmc aswell?

I always flash both, if you have everything backed up then I would do both.

Quote:

Originally Posted by Wagner1975 (Post 1002628)
Furher can I download some of the programs that I had from a website since I don't have a wireless connection for my n900 for the next 3 weeks, or is there a way to connect my n900 to my laptop and use the laptops internet access?

You can try USB networking, http://wiki.maemo.org/N900_USB_networking I have not tried this as I have Wifi so cannot verify how easy it is to do.

You could try an adhoc connection to your laptop's Wifi
http://talk.maemo.org/showthread.php?t=5816
http://www.brighthub.com/computing/w...cles/7785.aspx
http://talk.maemo.org/showthread.php?t=40617

Wagner1975 2011-05-09 16:22

Re: N900 filesystem corrupt?!
 
Quote:

Originally Posted by michaaa62 (Post 1002397)
The output is okay, there is no indication that something is weird or broken.
If a reboot does not fix things, you might try to get rid of the widgets and stuff on the desktops and apply one of the default themes to the desktop (if you had a custom setup, at all, this is). There is a chance that some misbehaving application is causing it.
Do you use a modified version of hildon-desktop, like the CSSU (community seamless software update) version or MAG's modified hildon-desktop?

Hi Michaaa62

My phone decided it doesn't wanna boot anymore. I only get the white screen and then it goes dark and then after few seconds white again. Took out battery several times, rebooted, plugged into usb, plugged into charger ... orange light doesn't even go on.
I haven't flashed it yet, because my internet connection isn't too fast and further I can't download 190mb of data ... for the reflash. Are there anything else I can do?

michaaa62 2011-05-09 16:46

Re: N900 filesystem corrupt?!
 
If not a reflash, then may be Customer Care is your last hope?
Sounds that the hardware is broken not the software, i am afraid.


All times are GMT. The time now is 04:09.

vBulletin® Version 3.8.8