Scanning And Repairing A Microsd Card - ICP DAS USA LinPAC AM335 Series User Manual

Hide thumbs Also See for LinPAC AM335 Series:
Table of Contents

Advertisement

6.1.3. Scanning and repairing a microSD Card

After the LinPAC AM335x PAC is booted, the microSD card will be named '/dev/mmcblk0p1'. It is
recommended that the microSD card is unmounted first before attempting to perform a scan or
repair.
blockdev: this command is used to call block device ioctls from the command line.
Parameter
--report
print a report for device
-v
--getra
get readhead and blocksize
--getbz
fsck.minix: this command is used to perform a consistency check for the Linux MINIX
filesystem.
Parameter
-r
performs interactive repairs
-s
outputs super-block information
fsck.vfat: this command is used to check and repair MS-DOS file systems.
Parameter
-a
automatically repair the file system
-l
list path names of files being processed
mkfs: this command is used to build a Linux file system on a device, usually a hard disk
partition.
Parameter
-t
specifies the type of file system to be built
check the device for bad blocks before
-c
building the file system
AM335X-PAC Series User Manual
Copyright © 2021 ICP DAS Co., Ltd. All Rights Reserved.
Description
Description
Description
Description
blockdev --report /dev/mmcblk0p1
blockdev -v --getra –getbz
/dev/mmcblk0p1
fsck.minix -r /dev/mmcblk0p1
fsck.minix -s /dev/mmcblk0p1
fsck.vfat -a /dev/mmcblk0p1
fsck.vfat -l /dev/mmcblk0p1
mkfs -t vfat /dev/mmcblk0p1
mkfs -c vfat /dev/mmcblk0p1
version 2.0.4
Example
Example
Example
Example
Page: 101
E-mail: service@icpdas.com

Advertisement

Table of Contents
loading

Table of Contents