Active Topics

 


Reply
Thread Tools
Posts: 95 | Thanked: 27 times | Joined on Oct 2007 @ Miami & London
#11
Originally Posted by ydant View Post
1) open terminal window
2) become root (there's a FAQ on this, but I don't think it adequately describes the n810 process)
3) turn off swap on the internal MMC (swapoff /media/mmc2/.swap)
4) unmount internal MMC (umount /media/mmc2)
5) run file system check/repair (fsck.vfat -a /dev/mmcblkp01)
I used sudo gainroot, but this doesn't seem to be sufficient because in step (3)

# swapoff /media/mmc2/.swap

returns: Read-only file system

ls -l .swap shows these permissions: -rw-r--r-- 1 user root
 
Posts: 53 | Thanked: 10 times | Joined on Nov 2007
#12
I messed up my internal flash on my N810 too. What I did was grab e2fsprogs and used sfdisk to fix it.

apt-get install e2fsprogs

Edit: Oh ya, this will erase all files you have on the 2 gig internal memory. So if your looking to restore corrupted data on it or trying to do this w/o loosing data on the internal 2 gig memory then please DONT do the following , as it will erase all data on your 2 gig internal memory.

Use all the following commands as root of course.

umount /media/mmc2
then
sfdisk /dev/mmcblk0

Now it's going to ask you for cylinder sizes for each partition (4 partitions). So for the first one,
type in 0,,b all on the same line (ex. /dev/mmcblk0p1:0,,b )
then for the next 3 just hit enter and put nothing in.

This should repartition "mmc2" to use all the cylinders. The missing number in between the commas means use the programs default, which is to make use of the remaining cylinders. You could do 0,61440,b to be precise, either way it works the same. b is the code for FAT32, if you wish to use FAT16 the code is 6

now you can do
mkdosfs /dev/mmcblk0p1
and then reboot the device. Now it should give you back your internal memory.

If that doesn't work, check that you are actualy root with whoami. Other then that I dunno what else to do, I'm not very Linux edjumakated

Alternativly, you can reboot w/o using the mkdosfs command. Once you reboot you can goto file manager and click and hold on the "Internal Memory" which should be there now and click format. OR plug it in to windows via USB and it'll ask you to format then too.

Just a general note to all, if you ever bork up or change your internal memory on the N810 (MMC2) , a re-flash will not default this memory. Reflash only reflashes the ROM; which is 256 megs or so the the OS is installed on.

The actual size of the internal flash memory is ~1.85 GB.
61440(the number of cylinders) * 31768(the ammount of bytes per cylinder) = 2013265920 B = 1.875 GB

This is how I fixed mine , results may varry.

Last edited by Karwee; 2007-12-02 at 23:16.
 

The Following 3 Users Say Thank You to Karwee For This Useful Post:
ydant's Avatar
Posts: 32 | Thanked: 7 times | Joined on Oct 2007
#13
Originally Posted by sparkling View Post
I used sudo gainroot, but this doesn't seem to be sufficient because in step (3)

# swapoff /media/mmc2/.swap

returns: Read-only file system

ls -l .swap shows these permissions: -rw-r--r-- 1 user root
You might be able to run fsck with it mounted. I'd only be worried about the swap file being active confusing the OS and causing problems.

Is it actually using that swap file?

Nokia-N810-42-19:/# cat /proc/swaps
Filename Type Size Used Priority
/media/mmc2/.swap file 131064 22492 -1
Nokia-N810-42-19:/#
If no, you'll just see the header line. Go ahead and run the umount and fsck.vfat lines.

Just curious, what shows up when you type mount?

Originally Posted by mount
[...]
/dev/mmcblk0p1 on /media/mmc2 type vfat (rw,nosuid,nodev,noexec,uid=29999,fmask=0133,dmask =0000,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8)
My assumption here is you want to save the files on the internal mmc device. If not, it might be easier to start from clean. The only thing installed on there by default is the map set.

I'm a little concerned that multiple people are corrupting their internal drive.
 

The Following User Says Thank You to ydant For This Useful Post:
Posts: 550 | Thanked: 110 times | Joined on Aug 2006
#14
All this skirts around the fundamental issue that it was damn stupid of Nokia to create a fixed flash card in the first place. Flash really doesn't exactly have a very good reputation for long term reliability, particularly if you are writing data to it frequently (ie a swap file). With a removeable card if something goes bad and all the Linux-foo in the world can't fix it, I can throw it out and slap another one in for $30. If the internal, soldered flash really goes bad, you are going to have to send it back to Nokia for repairs (assuming it is still under warranty). Just do a quick search of this message board to reveal how excruciating an experience that has been for most people.
 
technut's Avatar
Posts: 574 | Thanked: 166 times | Joined on Oct 2007 @ BC, Canada
#15
Rocketman, I agree that a removable card would be better, but the N810 isn't the first relatively expensive device to include non-removable storage. Think of iPod and many other products with internal drives or flash.

So it's not an ideal situation, but hardly unique to the N810. And the N810 does still support one removable card, so you wouldn't be completely out of luck if you decided not to get it repaired.
__________________
Please follow these simple posting guidelines.
There are no stupid questions, just people who didn't search itT (with Google) first.
 
Posts: 1 | Thanked: 0 times | Joined on Dec 2007
#16
First become the root:
http://maemo.org/community/wiki/howdoibecomeroot/

After logging in as root (in X Terminal), 'lsof /media/mmc2' should show the process having the file open on the card. Use the 'PID' number given by lsof to kill the process(es) with 'kill -9 <PID>'. After this lsof should not show any open files on the card. Make sure swapping is not on by running 'swapoff /media/mmc2/.swap' as root. Now you should be able to reformat the card in File Manager.
 
Posts: 47 | Thanked: 11 times | Joined on Oct 2006
#17
Can anyone confirm that the information on the Maemo wiki for Mac OSX appies to the N810? Or where else should I look for information about udating the N810 OS using Mac OSX?

Thanks
 
Posts: 95 | Thanked: 27 times | Joined on Oct 2007 @ Miami & London
#18
Originally Posted by kihamala View Post
...'lsof /media/mmc2' should show the process having the file open on the card. ...Make sure swapping is not on by running 'swapoff /media/mmc2/.swap' as root.
Sorry I did not adequately explain earlier that this approach fails.

lsof /media/mmc2 shows no processes running
swapoff /media/mmc2/.swap reports "Read-only file system"

Last edited by sparkling; 2007-12-03 at 19:54.
 
Posts: 95 | Thanked: 27 times | Joined on Oct 2007 @ Miami & London
#19
Originally Posted by ydant View Post
Is it actually using that swap file?

My assumption here is you want to save the files on the internal mmc device...The only thing installed on there by default is the map set.
cat /proc/swaps reports Used "0" which I take to mean the swapfile is not in use.

I discovered this problem after updating the operating system, but I suspect it may have occurred when I downloaded an additional GPS map, because the filename of the additional map is corrupted while the original maps look fine. In principle I wouldn't mind downloading all the maps again, but the process is slow and if it is flawed I might have no usable maps.

I can still read and copy files from the internal disk, which means I could backup the maps before reformatting. However, I would need to obtain a 2GB Mini SSD because I cannot access the Internal card via USB.
 
Posts: 95 | Thanked: 27 times | Joined on Oct 2007 @ Miami & London
#20
Originally Posted by Karwee View Post
Use all the following commands as root ...
umount /media/mmc2
then
sfdisk /dev/mmcblk0
umount /media/mmc2 fails "Cannot umount /media/mmc2: Device or resource busy"
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:45.