//!
SETUP: PC running Linux console with SD cardreader
------ Make a plain text file "fdisk.cmd" containing:
p
d
1
d
2
p
n
p
1
1
+50M
t
b
n
p
2
+200M
p
w
CHECK: Open Linux console and type:
------
cat /proc/partitions
Insert SD card in reader and type again:
cat /proc/partitions
Check the difference to see the name of the SD card - assumed "sdx"
CARE MUST BE TAKEN TO USE THE RIGHT NAME !!
UNMOUNT: all partitions by typing (substitute "sdx" with the right name):
--------
sudo umount /dev/sdx1
sudo umount /dev/sdx2
PARTITIONING: Type following (substitute "sdx" with the right name):
-------------
sudo fdisk /dev/sdx < fdisk.cmd
FORMATTING: Type (substitute "sdx" with the right name):
-----------
sudo mkfs.msdos -n LMS2012 /dev/sdx1
sudo mkfs.ext3 -L LMS2012_EXT /dev/sdx2
REMOVE: Use the "Safely Remove Drive" and remove SD card
------- or type:
sync
//!