LetuxOS Debian Rootfs

Issue 614: makesd: detect if we store on USB or MMC/SD card

Reported by Nikolaus Schaller, Jun 3, 2014

Adressing individual partitions from raw device path needs to check 

/dev/sd* -> ${DEV}1, ${DEV}2 ...
/dev/mmcblk* -> ${DEV}p1, ${DEV}p2 ...

We can't check [ -b "${DEV}p1" ] before creating a 
partition table on a completely erased SD card. So we must match 

And "unmount all" should be done as

for partition in ${DEV}*; do umount $partition; done

before running fdisk.

Comment 1 by Nikolaus Schaller, Jun 4, 2016

makesd is now a separate project
Status: Fixed

Created: 9 years 11 months ago by Nikolaus Schaller

Updated: 7 years 11 months ago

Status: Fixed