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 /dev/mmcblk1p1 umount: cannot umount /dev/mmcblk1p1: Invalid argument /home/user # sfdisk -uM /dev/mmcblk1 << EOF > ,1,C > ,,L > ,, > ,, > EOF Checking that no-one is using this disk right now ... OK Disk /dev/mmcblk1: 60352 cylinders, 4 heads, 16 sectors/track Old situation: Warning: The partition table looks like it was made for C/H/S=*/64/63 (instead of 60352/4/16). For this listing I'll assume that geometry. Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End MiB #blocks Id System /dev/mmcblk1p1 0+ 1884- 1885- 1929244+ 6 FAT16 /dev/mmcblk1p2 0 - 0 0 0 Empty /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+ 0 1- 1023+ c W95 FAT32 (LBA) /dev/mmcblk1p2 1 1885 1885 1930240 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 ... 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 # umount /dev/mmcblk1p1 /home/user # mkdosfs /dev/mmcblk1p1 mkdosfs 3.0.1 (23 Nov 2008) 37 #####################################/home/user # mke2fs -j -m0 /dev/mmcblk1p2 mke2fs 1.41.3.maemo0 (12-Oct-2008) Could not stat /dev/mmcblk1p2 --- No such file or directory The device apparently does not exist; did you specify it correctly? /home/user # mke2fs -j -m0 /dev/mmcblk1p2 mke2fs 1.41.3.maemo0 (12-Oct-2008) Could not stat /dev/mmcblk1p2 --- No such file or directory The device apparently does not exist; did you specify it correctly? /home/user #