08-07-2015, 10:28 AM
Hello,
I cannot correctly mount an SD card on my current PPMAC. It the first time it is happening, i start a PPMAC every months...
From my understanding, a FAT32 SD card, with no USB stick connected on the PPMAC, should be found at "/dev/sdb#" (the b of sdb# is important) and mounted automatically to "/media/disk-0" at start up thanks to the "/.readonly/etc/usbmount/usbmount.conf" file.
On this specific PPMAC, the SD card seems to change of block name after or during the mounting: on the example screen shot, it is changing from "/dev/sdb5" to "/dev/sdc5" to "/dev/sdd5" and so on..
Does someone see a potential reason/origin for/to this behaviour?
Thank you!!
The explication below is how i placed the finger on the issue... on our standard application we use an ext3 SD card.
-------
To mount an ext3 SD card on the PPMAC, i modify the "fstab" file (with "mount -o remount,rw /" cmd before and "mount -o remount,ro /" after).
The line i added is "/dev/sdb1 /media/disk-0 auto defaults 0 0".
On this specific PPMAC, the device block seems to change during the boot (changing from "/dev/sdb1" to "/dev/sdc1"). When i look in "mtab" ("cat /etc/mtab") i see that "/dev/sdb1" was mounted. When i send "blkid" is see that the device is now "/dev/sdc1".
I did few other tests:
-changed the "fstab" line to "LABEL=SD /media/disk-0 auto defaults 0 0" : i still see the "sdb1" in "cat /etc/mtab" and the "sdc1" using "blkid".
-removed the line in "fstab" and modify "/.readonly/etc/usbmount/usbmount.conf" file. I added the ext3 to the line: "FILESYSTEMS="ext3 vfat"". After doing this i observed a multi-mount of the same device... it mount it, the device change (sdb1 to sdc1), it try to mount the new one and so on..
I cannot correctly mount an SD card on my current PPMAC. It the first time it is happening, i start a PPMAC every months...
From my understanding, a FAT32 SD card, with no USB stick connected on the PPMAC, should be found at "/dev/sdb#" (the b of sdb# is important) and mounted automatically to "/media/disk-0" at start up thanks to the "/.readonly/etc/usbmount/usbmount.conf" file.
On this specific PPMAC, the SD card seems to change of block name after or during the mounting: on the example screen shot, it is changing from "/dev/sdb5" to "/dev/sdc5" to "/dev/sdd5" and so on..
Does someone see a potential reason/origin for/to this behaviour?
Thank you!!
The explication below is how i placed the finger on the issue... on our standard application we use an ext3 SD card.
-------
To mount an ext3 SD card on the PPMAC, i modify the "fstab" file (with "mount -o remount,rw /" cmd before and "mount -o remount,ro /" after).
The line i added is "/dev/sdb1 /media/disk-0 auto defaults 0 0".
On this specific PPMAC, the device block seems to change during the boot (changing from "/dev/sdb1" to "/dev/sdc1"). When i look in "mtab" ("cat /etc/mtab") i see that "/dev/sdb1" was mounted. When i send "blkid" is see that the device is now "/dev/sdc1".
I did few other tests:
-changed the "fstab" line to "LABEL=SD /media/disk-0 auto defaults 0 0" : i still see the "sdb1" in "cat /etc/mtab" and the "sdc1" using "blkid".
-removed the line in "fstab" and modify "/.readonly/etc/usbmount/usbmount.conf" file. I added the ext3 to the line: "FILESYSTEMS="ext3 vfat"". After doing this i observed a multi-mount of the same device... it mount it, the device change (sdb1 to sdc1), it try to mount the new one and so on..