View Single Post
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#161
I would think the error results from no file systems found in /dev/mmcblk1, which should be no partition, but a full card. Linux does neither apply nor expect file systems in full devices.

The irritating fact that sfdisk does not note anything about the external card does not look good at all.
I would suggest to try the command once again after a full shutdown including the removal of the battery for a couple of seconds. After boot try to run the sfdisk command on that device only, again.
Code:
sudo gainroot 
sfdisk -l /dev/mmcblk1
If that still does not give any output, try to create the partition table and after a reboot try to create the file system
Code:
sudo gainroot
echo "unit: sectors
> /dev/mmcblk0p1 : start= 16, size= 7554080, Id=c" > table
This a crude estimate for a 4GB card. That size number might be too low, but will not give you an error. You might fine tune later. This command will give you a file, called 'table'. The name has no meaning, but will give you a clue what it is good for. Apply this file to the card as partition table:
Code:
sfdisk  --no-reread /dev/mmcblk1 < table
Any errors? If not, reboot to create the file system, either in HildonFileManager or in X-Terminal
Code:
sudo gainroot 
mkfs.vfat /dev/mmcblk1p1 -n microSD_4GB
You might skip the naming option, if you do not like a label for your devices.

Please interrupt for any errors in the command output!

Viel Erfolg!

Last edited by michaaa62; 2013-06-07 at 19:44.
 

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