Reply
Thread Tools
Posts: 2,023 | Thanked: 1,756 times | Joined on Sep 2008 @ Berlin, Germany
#31
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
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 27 | Thanked: 1 time | Joined on Mar 2011 @ india
#32
Originally Posted by michaaa62 View Post
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
 
Posts: 2,023 | Thanked: 1,756 times | Joined on Sep 2008 @ Berlin, Germany
#33
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
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 27 | Thanked: 1 time | Joined on Mar 2011 @ india
#34
Originally Posted by michaaa62 View Post
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
 
Posts: 2,023 | Thanked: 1,756 times | Joined on Sep 2008 @ Berlin, Germany
#35
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
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 27 | Thanked: 1 time | Joined on Mar 2011 @ india
#36
Originally Posted by michaaa62 View Post
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...
 
Posts: 27 | Thanked: 1 time | Joined on Mar 2011 @ india
#37
can anbody say me how to install android by step by step protocol
 
Posts: 470 | Thanked: 413 times | Joined on May 2010 @ nanaurbusiness
#38
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
 

The Following User Says Thank You to J4ZZ For This Useful Post:
Posts: 27 | Thanked: 1 time | Joined on Mar 2011 @ india
#39
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
 
Posts: 2,023 | Thanked: 1,756 times | Joined on Sep 2008 @ Berlin, Germany
#40
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.
 

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

Thread Tools

 
Forum Jump


All times are GMT. The time now is 21:10.