mmcblk1, mount problems

asked 2015-05-05 13:22:43 +0200

manu007 gravatar image

Too often, the first partition mounted instead of the first partition of the SD card.

Example:

[root@Jolla nemo]# df

Filesystem 1K-blocks Used Available Use% Mounted on

rootfs 14415852 2690912 10790776 20% /

.

.

/dev/mmcblk1 30745904 12191248 18554656 40% /media/sdcard/FAC3-0171

[root@Jolla nemo]# ls -l /dev/disk/by-uuid/

lrwxrwxrwx 1 root root 15 2015-05-05 11:03 B2D1-30BD -> ../../mmcblk1p1

lrwxrwxrwx 1 root root 13 2015-05-05 11:03 FAC3-0171 -> ../../mmcblk1

I have to unmount the partition and remount by hand.

The geometry of the SD card is the following:

Disk /dev/mmcblk1: 31.5 GB, 31499223040 bytes, 61521920 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System

/dev/mmcblk1p1 2048 61521919 30759936 c W95 FAT32 (LBA)

I suppose, when the first partition starts on block 0, the mount can be correct, but if you have more than one partition, you can destroy the contents of the second partition.

edit retag flag offensive close delete