View Single Post
Posts: 48 | Thanked: 5 times | Joined on Dec 2009
#483
Originally Posted by moepda View Post
update...

fixed problem, formatted 16gb sandisk card (14.8gb capacity) on win xp whilst in n900 using mass storage mode. rebooted n900 and opened xterm. opened new window and typed root. entered 13300 without < > in step 2 of guide and this was successful output. hope it helps contro ...

Code:
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:~# umount /dev/mmcblk1p1 
Nokia-N900:~# sfdisk -uM /dev/mmcblk1 << EOF 
> ,13300,C 
> ,,L 
> ,, 
> ,, 
> EOF 
Checking that no-one is using this disk right now ... 
OK 

Disk /dev/mmcblk1: 486192 cylinders, 4 heads, 16 sectors/track 
Old situation: 
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0 

Device Boot Start End MiB #blocks Id System 
/dev/mmcblk1p1 0+ 13099 13100- 13414399+ c W95 FAT32 (LBA) 
/dev/mmcblk1p2 13100 15193- 2094- 2143744 83 Linux 
/dev/mmcblk1p3 0 - 0 0 0 Empty 
/dev/mmcblk1p4 0 - 0 0 0 Empty 
New situation: 
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0 

Device Boot Start End MiB #blocks Id System 
/dev/mmcblk1p1 0+ 13299 13300- 13619199+ c W95 FAT32 (LBA) 
/dev/mmcblk1p2 13300 15193- 1894- 1938944 83 Linux 
/dev/mmcblk1p3 0 - 0 0 0 Empty 
/dev/mmcblk1p4 0 - 0 0 0 Empty 
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 ... 

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).) 
Nokia-N900:~# umount /dev/mmcblk1p1 
Nokia-N900:~# mkdosfs /dev/mmcblk1p1 
mkdosfs 3.0.1 (23 Nov 2008) 
37 
#####################################Nokia-N900:~# mke2fs -j -m0 /dev/mmcblk1p2 
mke2fs 1.41.3.maemo0 (12-Oct-2008) 
Filesystem label= 
OS type: Linux 
Block size=4096 (log=2) 
Fragment size=4096 (log=2) 
121200 inodes, 484736 blocks 
0 blocks (0.00%) reserved for the super user 
First data block=0 
Maximum filesystem blocks=499122176 
15 block groups 
32768 blocks per group, 32768 fragments per group 
8080 inodes per group 
Superblock backups stored on blocks: 
32768, 98304, 163840, 229376, 294912 

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

This filesystem will be automatically checked every 27 mounts or 
180 days, whichever comes first. Use tune2fs -c or -i to override. 
Nokia-N900:~#
Thank you will try it later out with friends!
 

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