Active Topics

 


Reply
Thread Tools
Posts: 2,829 | Thanked: 1,459 times | Joined on Dec 2009 @ Finland
#1
Hi,

I have some suspicions about my file systems. I would like to check all or some of them so I would really need some step by step howtos? Only things I know is that sudo root is command for root user and fsck has something to do with filesystems checking and there should be some unmounting and also that i have at least these file systems:

root / 256MB
space for software installations etc.
/home 2GB
Nokia N900
/home/user/MyDocs 27GB

Any help is appreciated.
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#2
The only one you can easily do is MyDocs, and the simplest way to do this is probably to connect to the PC in mass storage mode, then do a check on the virtual drive.

The other two you can't unmount in normal usage, so are difficult to check. You could probably insert a fsck statement into the startup scripts to check /home, but this risks locking up the device at boot time. The rootfs would be even trickier (assuming there is actually a fsck tool for ubifs).

Last edited by Rob1n; 2010-02-08 at 09:04.
 
Posts: 2,829 | Thanked: 1,459 times | Joined on Dec 2009 @ Finland
#3
Is it possible to turn off my device, connect to pc with some linux distro and do fsck to those ext3 filesystems from PC?
 
Fargus's Avatar
Posts: 1,217 | Thanked: 446 times | Joined on Oct 2009 @ Bedfordshire, UK
#4
Originally Posted by slender View Post
Is it possible to turn off my device, connect to pc with some linux distro and do fsck to those ext3 filesystems from PC?
You need to run the OS to expose it to the PC. Thing is you only get part of the filesystem exposed.
 
Posts: 67 | Thanked: 28 times | Joined on Oct 2009 @ Switzerland
#5
Just an idea: what about booting some kind of a rescue system off a microSD?
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#6
There's only /home which is ext3 (rootfs is ubifs), and I'm pretty sure that won't work - when you connect to the PC, it just makes the MyDocs folder available (and memory card, if installed).
 
Posts: 80 | Thanked: 114 times | Joined on Dec 2009 @ Belgium
#7
You can prevent your phone of mounting /home at boot time by commenting the "/bin/mount /home" rule in /etc/event.d/rcS-late

So to check your /home partition
- comment the mount line in /etc/event.d/rcS-late
- reboot
- run fsck
- uncomment the mount line again
- reboot
 

The Following User Says Thank You to beli For This Useful Post:
Posts: 287 | Thanked: 127 times | Joined on Oct 2009 @ Sweden
#8
Have you tested that it boots properly without this line? Remember that pretty much everything is run as the user "user", and all the config files for this user are on /home.
 
Posts: 80 | Thanked: 114 times | Joined on Dec 2009 @ Belgium
#9
You have to do it as root ... also be careful not to change any other lines since it could break your system

And it works, just did it today
 
Posts: 9 | Thanked: 2 times | Joined on Mar 2010 @ Mexico
#10
A word of warning. I tried this and the phone reboots constantantly. I cannot ssh either. And yes, I am sure I just commented that line.


EDIT: fo rthis to work you have to enable r&d mode and have the reboot disabled.

Last edited by Artemio; 2010-03-29 at 02:05.
 

The Following User Says Thank You to Artemio For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 12:29.