maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   urgent -my internal memory corrupted help plz (https://talk.maemo.org/showthread.php?t=83698)

rajanmb2005 2012-04-17 06:35

urgent -my internal memory corrupted help plz
 
i have tried to install by x terminal
http://wiki.maemo.org/Nitdroid_easy_install_on_EMMC by a mistake my parition was corrupted and i was not able to see my internal (32 Gb ) memory says corrupted and when i restart it will display me your internal memory device not supported.

somebody help me to restore a step by step process either x terminal or computer to restore my internal memory

plz help

urgent

anthonie 2012-04-17 06:47

Re: urgent -my internal memory corrupted help plz
 
Direct visits
http://wiki.maemo.org/Updating_the_tablet_firmware

Touristic roundtrips
http://www.google.com

lohiaprateek 2012-04-17 07:42

Re: urgent -my internal memory corrupted help plz
 
If your phone boots up, install backup menu, and download both the images from here, http://robbiethe1st.afraid.org/Backu...omplete_image/

try and restore the images with help of Backupmenu, i had issues with reflashing the emmca backup menu helped me, phone is functioning 100%

rajanmb2005 2012-04-19 10:05

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by lohiaprateek (Post 1193144)
If your phone boots up, install backup menu, and download both the images from here, http://robbiethe1st.afraid.org/Backu...omplete_image/

try and restore the images with help of Backupmenu, i had issues with reflashing the emmca backup menu helped me, phone is functioning 100%

plz explain in detail to follow a step by step procedure friend.
As im not well versed in x-terminal or anything.

plz make me understand so i may not complicate friend

thanks

panjgoori 2012-04-19 10:45

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by rajanmb2005 (Post 1194273)
plz explain in detail to follow a step by step procedure friend.
As im not well versed in x-terminal or anything.

plz make me understand so i may not complicate friend

thanks

download both files connect your phone to pc and put those 2 files in N900/systemBackups folder. if there is no folder in N900 then create one.

After that open xterm and type:

Code:

root
apt-get install backupmenu

when xterm finishes installing backupmenu then restart N900 while keyboard open will boot in backupmenu and keyboard closed will boot into Maemo.

rajanmb2005 2012-04-19 11:31

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by anthonie (Post 1193124)

plz say the password for L1 and L2 of nokia link that u have posted

thanks

rajanmb2005 2012-04-19 11:33

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by panjgoori (Post 1194293)
download both files connect your phone to pc and put those 2 files in N900/systemBackups folder. if there is no folder in N900 then create one.

After that open xterm and type:

Code:

root
apt-get install backupmenu

when xterm finishes installing backupmenu then restart N900 while keyboard open will boot in backupmenu and keyboard closed will boot into Maemo.

im will try thanks

anthonie 2012-04-19 14:26

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by rajanmb2005 (Post 1194302)
plz say the password for L1 and L2 of nokia link that u have posted

thanks

It's pdf file, there is no password.

I did check the link though and found it to be terribly slow, so I also put it in my public dropbox folder, which you can find below.

http://dl.dropbox.com/u/67711453/Nok..._L1L2_v1_0.pdf
http://dl.dropbox.com/u/67711453/N900_RX-51_SM_L3_4.pdf

rajanmb2005 2012-04-19 14:32

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by anthonie (Post 1194376)
It's pdf file, there is no password.

I did check the link though and found it to be terribly slow, so I also put it in my public dropbox folder, which you can find below.

http://dl.dropbox.com/u/67711453/Nok..._L1L2_v1_0.pdf
http://dl.dropbox.com/u/67711453/N900_RX-51_SM_L3_4.pdf

thanks for ur help in need

rajanmb2005 2012-04-19 14:46

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by panjgoori (Post 1194293)
download both files connect your phone to pc and put those 2 files in N900/systemBackups folder. if there is no folder in N900 then create one.

After that open xterm and type:

Code:

root
apt-get install backupmenu

when xterm finishes installing backupmenu then restart N900 while keyboard open will boot in backupmenu and keyboard closed will boot into Maemo.

what should i do with the 2 images downloaded ?

should i place it in my memory card ?

bcoz as it shows my n900, unsupported memory

what should i do with

plz plz

michaaa62 2012-04-19 19:57

Re: urgent -my internal memory corrupted help plz
 
You need rootsh installed for this to work
Code:

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

Please post the full error messages if errors occur.

rajanmb2005 2012-04-20 14:42

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by michaaa62 (Post 1194568)
You need rootsh installed for this to work
Code:

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

Please post the full error messages if errors occur.

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # fsck -af /dev/mmcblk0p1
fsck 1.41.3.maemo0 (12-Oct-2008)
fsck.ext3: Bad magic number in super-block while trying to open /dev/mmcblk0p1
/dev/mmcblk0p1:
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 alternate superblock:
e2fsck -b 8193 <device>

reinob 2012-04-20 14:51

Re: urgent -my internal memory corrupted help plz
 
@rajanmb2005,

Just an (informed) guess. It appears that mmcblk0p1 is a VFAT partition, but is marked as being a Linux (ext3) partition.

As root, type "sfdisk -d" and post here the EXACT results.

rajanmb2005 2012-04-20 15:05

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by reinob (Post 1194895)
@rajanmb2005,

Just an (informed) guess. It appears that mmcblk0p1 is a VFAT partition, but is marked as being a Linux (ext3) partition.

As root, type "sfdisk -d" and post here the EXACT results.

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# sfdisk -d
# partition table of /dev/mmcblk0
unit: sectors

/dev/mmcblk0p1 : start= 64, size= 64, Id=83
/dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
/dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
/dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5
# partition table of /dev/mmcblk1
unit: sectors

/dev/mmcblk1p1 : start= 16, size= 7858160, Id= b
/dev/mmcblk1p2 : start= 0, size= 0, Id= 0
/dev/mmcblk1p3 : start= 0, size= 0, Id= 0
/dev/mmcblk1p4 : start= 0, size= 0, Id= 0
Nokia-N900:~#

J4ZZ 2012-04-20 23:23

Re: urgent -my internal memory corrupted help plz
 
dev/mmcblk0p1 should be something like ID c W95 FAT32 (LBA)

I'm not sure but I guess changing the id back with fdisk would destroy all your data on MyDocs.

Try to boot rescue mode from BackupMenu and connect to a Ubuntu 11.04 Live-CD. Then try to fix it with Gparted. forget that.

Did you installed backupmenu successfully? I mean do you get a small menu when booting your phone with keyboard open?
If so fine, just download this file
http://robbiethe1st.afraid.org/Backu...7-optfs.tar.gz
copy it to your memory card in folder systemBackups.

Then start backupmenu and choose (r) Restore a backup -> eMMC MyDocs (don't know exactly how it's listed there)
Try it and post back...

Greetz,

J4ZZ

michaaa62 2012-04-21 08:02

Re: urgent -my internal memory corrupted help plz
 
Quote:

dev/mmcblk0p1 should be something like ID c W95 FAT32 (LBA)

I'm not sure but I guess changing the id back with fdisk would destroy all your data on MyDocs.
The change of the id via sfdisk is only applied to the partition table. So that might be safe to change, unless you, at some time did not not follow one of the howtos to change the file system for the MyDocs-Partition, but only you know if you did.

Am i right, that you do not want to recover some lost files from any partition, that was deleted, but want to have a usable partition for a fresh new MyDocs? Then proceed
Code:

sudo gainroot
echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size=51199936 , Id=c
> /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5" > table

Note: These are two commands, first to gain root rights, second to create the file table with the right content.

Next dump it to the device
Code:

sfdisk --no-reread /dev/mmcblk0 < table
Now the Phone is ready to reboot, you still have to apply the file system to the MyDocs partition and add the fifth partition inside the extended fourth partition

Please ask if anything is still unclear.

rajanmb2005 2012-04-21 08:38

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by michaaa62 (Post 1195216)
The change of the id via sfdisk is only applied to the partition table. So that might be safe to change, unless you, at some time did not not follow one of the howtos to change the file system for the MyDocs-Partition, but only you know if you did.

Am i right, that you do not want to recover some lost files from any partition, that was deleted, but want to have a usable partition for a fresh new MyDocs? Then proceed
Code:

sudo gainroot
echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size=51199936 , Id=c
> /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5" > table

Note: These are two commands, first to gain root rights, second to create the file table with the right content.

Next dump it to the device
Code:

sfdisk --no-reread /dev/mmcblk0 < table
Now the Phone is ready to reboot, you still have to apply the file system to the MyDocs partition and add the fifth partition inside the extended fourth partition

Please ask if anything is still unclear.



BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size=51199936 , Id=c
> /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5" > table
/home/user # sfdisk --no-reread /dev/mmcblk0 < table

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

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 1 1 1 32 83 Linux
/dev/mmcblk0p2 884865 950400 65536 2097152 83 Linux
/dev/mmcblk0p3 950401 974976 24576 786432 82 Linux swap / Solaris
/dev/mmcblk0p4 800000 884864 84865 2715680 5 Extended

sfdisk: input error: unexpected character after size field
/home/user #

michaaa62 2012-04-21 08:47

Re: urgent -my internal memory corrupted help plz
 
There is a typo in the echo command, sorry for that!
Code:

echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size= 51199936, Id=c
> /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5" > table

This should work now!

rajanmb2005 2012-04-21 10:26

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by michaaa62 (Post 1195235)
There is a typo in the echo command, sorry for that!
Code:

echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size= 51199936, Id=c
> /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5" > table

This should work now!



BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size= 51199936, Id=c
> /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5" > table
/home/user # sfdisk --no-reread /dev/mmcblk0 < table

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

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 1 1 1 32 83 Linux
/dev/mmcblk0p2 884865 950400 65536 2097152 83 Linux
/dev/mmcblk0p3 950401 974976 24576 786432 82 Linux swap / Solaris
/dev/mmcblk0p4 800000 884864 84865 2715680 5 Extended
New situation:
Units = sectors of 512 bytes, counting from 0

Device Boot Start End #sectors Id System
/dev/mmcblk0p1 64 51199999 51199936 c W95 FAT32 (LBA)
/dev/mmcblk0p2 56631360 60825663 4194304 83 Linux
/dev/mmcblk0p3 60825664 62398527 1572864 82 Linux swap / Solaris
/dev/mmcblk0p4 51200000 56631359 5431360 5 Extended
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table

Re-reading the partition table ...
BLKRRPART: Device or resource busy
The command to re-read the partition table failed
Reboot your system now, before using mkfs

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
/home/user #

rajanmb2005 2012-04-21 10:39

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by rajanmb2005 (Post 1195286)
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size= 51199936, Id=c
> /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5" > table
/home/user # sfdisk --no-reread /dev/mmcblk0 < table

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

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 1 1 1 32 83 Linux
/dev/mmcblk0p2 884865 950400 65536 2097152 83 Linux
/dev/mmcblk0p3 950401 974976 24576 786432 82 Linux swap / Solaris
/dev/mmcblk0p4 800000 884864 84865 2715680 5 Extended
New situation:
Units = sectors of 512 bytes, counting from 0

Device Boot Start End #sectors Id System
/dev/mmcblk0p1 64 51199999 51199936 c W95 FAT32 (LBA)
/dev/mmcblk0p2 56631360 60825663 4194304 83 Linux
/dev/mmcblk0p3 60825664 62398527 1572864 82 Linux swap / Solaris
/dev/mmcblk0p4 51200000 56631359 5431360 5 Extended
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table

Re-reading the partition table ...
BLKRRPART: Device or resource busy
The command to re-read the partition table failed
Reboot your system now, before using mkfs

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
/home/user #

i have rebooted

thanks to all

great

everything returned back

thanks

rajanmb2005 2012-04-21 16:28

Re: urgent -my internal memory corrupted help plz
 
restoration process ended

here im in need of another problem

my old datas in the n900 could not be deleted

saying as read only file

"unable to delete" is the prompt message

somebody aware this solve me the problem

thanks

michaaa62 2012-04-21 21:00

Re: urgent -my internal memory corrupted help plz
 
Do you really feel the need for another problem:D??? Thought you had enough of fun with NitDroid...:eek:

Sorry for that cheap joke:o

Read only files and non-removable folders indicate a corrupt file system. If these files are in MyDocs folder try
Code:

sudo gainroot
umount /home/user/MyDocs
fsck -af /dev/mmcblk0p1
mount /dev/mmcblk0p1 /home/user/MyDocs

If the files are in /home/user or /opt things will get more complicated, because you need to install backupmenu and boot from either BackupMenu entry and check the file system from there OR from an external PC.

Please feel free to ask if errors occur or if further questions arise.

sifo 2012-04-21 21:32

Re: urgent -my internal memory corrupted help plz
 
HI michaaa62 i just want to thank you for your efforts over this thread im sure this will still useful for ever ;)

rajanmb2005 2012-04-22 03:02

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by michaaa62 (Post 1195556)
Do you really feel the need for another problem:D??? Thought you had enough of fun with NitDroid...:eek:

Sorry for that cheap joke:o

Read only files and non-removable folders indicate a corrupt file system. If these files are in MyDocs folder try
Code:

sudo gainroot
umount /home/user/MyDocs
fsck -af /dev/mmcblk0p1
mount /dev/mmcblk0p1 /home/user/MyDocs

If the files are in /home/user or /opt things will get more complicated, because you need to install backupmenu and boot from either BackupMenu entry and check the file system from there OR from an external PC.

Please feel free to ask if errors occur or if further questions arise.


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # umount /home/user/MyDocs
/home/user # fsck -af /dev/mmcblk0p1
fsck 1.41.3.maemo0 (12-Oct-2008)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Seek to 28995223040:Invalid argument
/home/user #

michaaa62 2012-04-22 08:11

Re: urgent -my internal memory corrupted help plz
 
Please show the content of your partition table again
Code:

sudo gainroot
sfdisk -l /dev/mmcblk0

You might try to check the file system with the repair option
Code:

sudo gainroot
umount /home/user/MyDocs
fsck -r /dev/mmcblk0p1
mount /dev/mmcblk0p1 /home/user/MyDocs


rajanmb2005 2012-04-22 09:30

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by michaaa62 (Post 1195711)
Please show the content of your partition table again
Code:

sudo gainroot
sfdisk -l /dev/mmcblk0

You might try to check the file system with the repair option
Code:

sudo gainroot
umount /home/user/MyDocs
fsck -r /dev/mmcblk0p1
mount /dev/mmcblk0p1 /home/user/MyDocs




BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # sfdisk -l /dev/mmcblk0

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 799999 799999 25599968 c W95 FAT32 (LBA)
/dev/mmcblk0p2 884865 950400 65536 2097152 83 Linux
/dev/mmcblk0p3 950401 974976 24576 786432 82 Linux swap / Solaris
/dev/mmcblk0p4 800000 884864 84865 2715680 5 Extended
/home/user #

rajanmb2005 2012-04-22 09:59

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by rajanmb2005 (Post 1195736)
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # sfdisk -l /dev/mmcblk0

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 799999 799999 25599968 c W95 FAT32 (LBA)
/dev/mmcblk0p2 884865 950400 65536 2097152 83 Linux
/dev/mmcblk0p3 950401 974976 24576 786432 82 Linux swap / Solaris
/dev/mmcblk0p4 800000 884864 84865 2715680 5 Extended
/home/user #



BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # umount /home/user/MyDocs
/home/user # fsck -r /dev/mmcblk0p1
fsck 1.41.3.maemo0 (12-Oct-2008)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Seek to 28995223040:Invalid argument
/home/user #

michaaa62 2012-04-22 10:03

Re: urgent -my internal memory corrupted help plz
 
The partition table looks fine.

Did you apply the file system to the partition via command line, a remote PC or the maemo HildonFileManager?

Edit: A quick search did not reveal any solution, but to apply a fresh new file system to the partition :eek:
Is that a viable solution for you?

rajanmb2005 2012-04-22 10:24

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by michaaa62 (Post 1195755)
The partition table looks fine.

Did you apply the file system to the partition via command line, a remote PC or the maemo HildonFileManager?

Edit: A quick search did not reveal any solution, but to apply a fresh new file system to the partition :eek:
Is that a viable solution for you?

Quote:

Originally Posted by rajanmb2005 (Post 1195286)
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size= 51199936, Id=c
> /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5" > table
/home/user # sfdisk --no-reread /dev/mmcblk0 < table

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

Device Boot Start End #cyls #blocks Id System
/dev/mmcblk0p1 1 1 1 32 83 Linux
/dev/mmcblk0p2 884865 950400 65536 2097152 83 Linux
/dev/mmcblk0p3 950401 974976 24576 786432 82 Linux swap / Solaris
/dev/mmcblk0p4 800000 884864 84865 2715680 5 Extended
New situation:
Units = sectors of 512 bytes, counting from 0

Device Boot Start End #sectors Id System
/dev/mmcblk0p1 64 51199999 51199936 c W95 FAT32 (LBA)
/dev/mmcblk0p2 56631360 60825663 4194304 83 Linux
/dev/mmcblk0p3 60825664 62398527 1572864 82 Linux swap / Solaris
/dev/mmcblk0p4 51200000 56631359 5431360 5 Extended
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table

Re-reading the partition table ...
BLKRRPART: Device or resource busy
The command to re-read the partition table failed
Reboot your system now, before using mkfs

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
/home/user #

sorry i cant understand

The above was the one i ve done last when i follow the echo test

what should i should next waiting for the solution friend

rajanmb2005 2012-04-22 11:09

Re: urgent -my internal memory corrupted help plz
 
echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size= 51199936, Id=c
> /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5" > table

sfdisk --no-reread /dev/mmcblk0 < table

plz expain the steps

after the above said

how should i apply to the file system to the MyDocs partition and add the fifth partition inside the extended fourth partition

michaaa62 2012-04-22 12:17

Re: urgent -my internal memory corrupted help plz
 
Before the explanation, i would still ask you to clarify, what you want to achieve:
1.Do you want to recover files on the former large MyDocs-partition
or
2.Do you do not care about any data on that partition and just want to move on?

Explanation:
The sfdisk utility does not actually change anything on the internal card itself. It just creates or reads the partition table and offers the information to the kernel and the other utilities. You will have to create a fresh new file system every time you change the size of any partition or create new partitions. You do that with the mkfs.-$FILESYSTEM utilities, like mkfs.vfat.

Basic steps:
1.Create the table, like the echo command to create the file
- echo is a simple command to create text inside the "-characters, here, to a file, therefore >$FILENAME

2.Write the information from the file to the first sector of the internal card via the sfdisk command
- sfdisk is the low level utility to access the first sectors of a sd-card like /dev/mmcblk0, --no-reread option tells sfdisk to do just that, do not try to read the partition table, because it would be useless right now, and table is the name of the file, which holds the information from which sfdisk reads

3.Reboot to have the changed geometry be known to the kernel

4.Now actually apply the file system, also named: format the partition

rajanmb2005 2012-04-22 12:53

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by michaaa62 (Post 1195815)
Before the explanation, i would still ask you to clarify, what you want to achieve:
1.Do you want to recover files on the former large MyDocs-partition
or
2.Do you do not care about any data on that partition and just want to move on?

Explanation:
The sfdisk utility does not actually change anything on the internal card itself. It just creates or reads the partition table and offers the information to the kernel and the other utilities. You will have to create a fresh new file system every time you change the size of any partition or create new partitions. You do that with the mkfs.-$FILESYSTEM utilities, like mkfs.vfat.

Basic steps:
1.Create the table, like the echo command to create the file
- echo is a simple command to create text inside the "-characters, here, to a file, therefore >$FILENAME

2.Write the information from the file to the first sector of the internal card via the sfdisk command
- sfdisk is the low level utility to access the first sectors of a sd-card like /dev/mmcblk0, --no-reread option tells sfdisk to do just that, do not try to read the partition table, because it would be useless right now, and table is the name of the file, which holds the information from which sfdisk reads

3.Reboot to have the changed geometry be known to the kernel

4.Now actually apply the file system, also named: format the partition

your explanation are good

but i need the steps to follow

i don't care about any data on that partition and i just want to move on?

steps plz

michaaa62 2012-04-22 13:39

Re: urgent -my internal memory corrupted help plz
 
Steps 1 and 4 assume, that you are still trying to install Nitdroid at some time on a separate partition. If you have some other plan please demand new directions ;)

All steps should be done as root

Step 1
Code:

echo "unit: sectors
 > /dev/mmcblk0p1 : start= 64, size= 51199936, Id=c
 > /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
 > /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
 > /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5
> /dev/mmcblk0p5 : start= 51200016, size= 5431344, Id=83" > table

Step 2
Code:

sfdisk --no-reread /dev/mmcblk0 < table
Step 3
Code:

reboot
Wait for the device to reboot, then
Step 4
Code:

mkfs.vfat -n MyDocs /dev/mmcblk0p1
mke2fs -L NITDroid -j -m0 /dev/mmcblk0p5


rajanmb2005 2012-04-22 16:09

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by michaaa62 (Post 1195850)
Steps 1 and 4 assume, that you are still trying to install Nitdroid at some time on a separate partition. If you have some other plan please demand new directions ;)

All steps should be done as root

Step 1
Code:

echo "unit: sectors
 > /dev/mmcblk0p1 : start= 64, size= 51199936, Id=c
 > /dev/mmcblk0p2 : start= 56631360, size= 4194304, Id=83
 > /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
 > /dev/mmcblk0p4 : start= 51200000, size= 5431360, Id= 5
> /dev/mmcblk0p5 : start= 51200016, size= 5431344, Id=83" > table

Step 2
Code:

sfdisk --no-reread /dev/mmcblk0 < table
Step 3
Code:

reboot
Wait for the device to reboot, then
Step 4
Code:

mkfs.vfat -n MyDocs /dev/mmcblk0p1
mke2fs -L NITDroid -j -m0 /dev/mmcblk0p5


check me the following



BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ sudo gainroot
Root shell enabled


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # mkfs.vfat -n MyDocs /dev/mmcblk0p1
mkfs.vfat 2.11 (12 Mar 2005)
mkfs.vfat: /dev/mmcblk0p1 contains a mounted file system.
/home/user # mke2fs -L NITDroid -j -m0 /dev/mmcblk0p5
mke2fs 1.41.3.maemo0 (12-Oct-2008)
Filesystem label=NITDroid
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
170016 inodes, 678918 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=696254464
21 block groups
32768 blocks per group, 32768 fragments per group
8096 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912

Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: ^done

This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
/home/user #

was this correct what will be the output

what should i do next ?

thanks

michaaa62 2012-04-22 17:06

Re: urgent -my internal memory corrupted help plz
 
Half a success :(
The MyDocs partition is not formatted. Please try again
Code:

sudo gainroot
umount /dev/mmcblk0p1
mkfs.vfat -n MyDocs /dev/mmcblk0p1
mount /dev/mmcblk0p1 /home/user/MyDocs


rajanmb2005 2012-04-22 18:58

Re: urgent -my internal memory corrupted help plz
 
Quote:

Originally Posted by michaaa62 (Post 1195944)
Half a success :(
The MyDocs partition is not formatted. Please try again
Code:

sudo gainroot
umount /dev/mmcblk0p1
mkfs.vfat -n MyDocs /dev/mmcblk0p1
mount /dev/mmcblk0p1 /home/user/MyDocs


everything fine now it is working properly

thanks

now everything i can do

thanks a lot for ur replies...

rajanmb2005 2012-04-23 13:49

Re: urgent -my internal memory corrupted help plz
 
can anbody say me how to install android by step by step protocol

J4ZZ 2012-04-24 00:45

Re: urgent -my internal memory corrupted help plz
 
1st I'd like to say I really like your attitude ;)

So, your thread should be this one and you should be fine using NITDroid-Installer_0.2.8-8.deb

Simply download the file to your phone and click on it... That's all.

Greetz,

J4ZZ

rajanmb2005 2012-05-05 05:46

Re: urgent -my internal memory corrupted help plz
 
Hello everbody

here im with the problem not save or delete

this was the problem found in my device while n900 corrupted

i solved the problem before u guys helped me

thanks to all once again

now the problem happened while im copying files from memory card to internal memory during copying my baterry drained off and my device shuts down..

After i couldn't able to delete or copy any to my internal memory

plz acess my problem

and provide steps to clear it

in-need

steps

thanks

michaaa62 2012-05-05 06:13

Re: urgent -my internal memory corrupted help plz
 
Time for a file system check!
Code:

sudo gainroot
umount /home/user/MyDocs
fsck -af /dev/mmcblk0p1
mount /dev/mmcblk0p1 /home/user/MyDocs

Please post the complete errors here, if there are any.


All times are GMT. The time now is 02:55.

vBulletin® Version 3.8.8