will be SD card is inserted via card reader Virtual in-Machine , perform the following command detection Hanging on location.
Mount | Grep/media
Uninstalling the SD card
sudo umount/dev/sdxx
Use the "dd" command to clear the MRB and partition information:
sudo dd if=/dev/zero of=/dev/sdx bs=10m count=1
To modify a partitioned table with the "fdisk" command
sudo fdisk/dev/sdx
Press "P" key to display the current partition information:
Command (M for help): P disk/dev/mmcblk0:2002 MB, 2002780160 bytes heads, sectors/track, 35560 cylinders Units = C Ylinders of * = 56320 bytes Sector size (logical/physical): bytes/512 bytes I/o size (minimum/optimal): 512 bytes/512 bytes Disk identifier:0x00000000 Device Boot Start End Blocks Id System
Press "n" key to add a primary partition and determine the partition size
Command (M for help): N Command action E extended P primary partition (1-4) p partition number (1-4): 1 First cylinder (1- 35560, default 1): Using default value 1 last cylinder, +cylinders or +size{k,m,g} (1-35560, default 35560): +64m
Press the "T" key and enter the number 6 to make the new partition the FAT16 file system:
Command (M for help): T Selected partition 1 Hex code (type L to list codes): 6 Changed system type of partition 1 to 6 (F AT16)
Press "n" key to create a second partition:
Command (M for help): N Command action E extended P primary partition (1-4) p partition number (1-4): 2 First Cylinder (11 94-35560, default 1194): Using default value 1194 last cylinder, +cylinders or +size{k,m,g} (1194-35560, default 35560): + 1500M
Press "P" key to display the current partition information:
Command (M for help): P Device Boot Start End Blocks Id system/dev/mmcblk0p1 1 1193 65610 6 FAT16/DEV/MMCBLK0P2 1194 291 1536040 for Linux
Press the "W" key to write the partition information.
Command (M for help): W The partition table has been altered! Calling IOCTL () to re-read partition table.
Format and mount the partition:
sudo mkfs.msdos/dev/mmcblk0p1 # format as FAT32 you need add parameters "-F 32". If using SD card reader need change the device name to "/DEV/SDX1"
sudo mkfs.ext2/dev/mmcblk0p2 # If using SD card reader need change the device name to "/DEV/SDX2"
sudo mount-t vfat/dev/sdx1/mnt/fat
sudo mount-t ext2/dev/sdx2/mnt/ext
LINUX sama5d3 start SD card making steps