EasyManua.ls Logo

Element14 Raspberry Pi - Formatting SD Card via mkcard.txt Script; Formatting SD Card via fdisk Expert Mode

Element14 Raspberry Pi
14 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
3. $ ./mkcard.txt /dev/sdx, where x is the letter of the card. You can find this by inserting
your card and then running dmesg | tail. You should see the messages about the
device being mounted in the log. Mine mounts as sdc.
Once run, your card should be formatted.
Formatting the SD card via fdisk "Expert mode"
First, lets clear the partition table:
===========================================================================
=====
$ sudo fdisk /dev/sdb
Command (m for help): o
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by
w(rite)
===========================================================================
=====
Print card info:
===========================================================================
=====
Command (m for help): p
Disk /dev/sdb: 128 MB, 128450560 bytes
....
===========================================================================
=====
Note card size in bytes. Needed later below.
Then go into "Expert mode":
===========================================================================
=====
Command (m for help): x
===========================================================================
=====