用fdisk命令检查分区和SD/USB设备信息

举报
aiot_bigbear 发表于 2022/09/25 02:19:03 2022/09/25
【摘要】 用fdisk命令检查分区和SD/USB设备信息 [root@M388c etc]# fdisk -l /dev/mmcblk0 Disk /dev/mmcblk0: 31.2 GB, 31289507...
用fdisk命令检查分区和SD/USB设备信息

[root@M388c etc]# fdisk -l /dev/mmcblk0

Disk /dev/mmcblk0: 31.2 GB, 31289507840 bytes
4 heads, 16 sectors/track, 954880 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk0p1               1      954880    30556152   c Win95 FAT32 (LBA)
[root@M388c etc]# fdisk -l /dev/sda
 00 00 00 00 00 00

Disk /dev/sda: 3 00957 MB, 39573258 0024 bytes
61 heads, 60 sectors/t 00rack, 2111 cylin 00ders
Units = cy 00linders of 3660  00* 512 = 1873920 
bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               3        2112     3860480   b Win95 FAT32
[root@M388c etc]# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=29516k,nr_inodes=7379,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
mdev on /dev type tmpfs (rw,relatime,size=64k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
tmpfs on /tmp type tmpfs (rw,relatime,size=16384k)
tmpfs on /dev/shm type tmpfs (rw,relatime,size=1024k)
ubi0:ubi0_0 on /mnt/nand type ubifs (rw,relatime)
/dev/sda1 on /mnt/usb type vfat (rw,sync,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/mmcblk0p1 on /mnt/sd type vfat (rw,sync,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
卸载U盘
[root@M388c etc]# umount /mnt/usb/
 00 00 00 00 00 00
 00 00 00 00 00 00
 00 00 00[root@M388c etc] 00#  00 00

[root@M388c etc]# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=29516k,nr_inodes=7379,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
mdev on /dev type tmpfs (rw,relatime,size=64k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
tmpfs on /tmp type tmpfs (rw,relatime,size=16384k)
tmpfs on /dev/shm type tmpfs (rw,relatime,size=1024k)
ubi0:ubi0_0 on /mnt/nand type ubifs (rw,relatime)
/dev/mmcblk0p1 on /mnt/sd type vfat (rw,sync,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
卸载SD
[root@M388c etc]# umount /mnt/sd
[root@M388c etc]# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=29516k,nr_inodes=7379,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
mdev on /dev type tmpfs (rw,relatime,size=64k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
tmpfs on /tmp type tmpfs (rw,relatime,size=16384k)
tmpfs on /dev/shm type tmpfs (rw,relatime,size=1024k)
ubi0:ubi0_0 on /mnt/nand type ubifs (rw,relatime)


[root@M388c etc]# fdisk -l | grep FAT32
 00 00 00 00 00 00
 28 00 00 00 00 00 00 00 08 00
 00 00 00 00 00 00
 28 00 00 00 00 00 00 00 20 00
 00 00 00 00 00 00
 28 00 00 00 00 00 00 00 08 00
 00 00 00 00 00 00
/dev/sda1               3        2112     3860480   b Win95 FAT32
/dev/mmcblk0p1               1      954880    30556152   c Win95 FAT32 (LBA)
[root@M388c etc]# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=29516k,nr_inodes=7379,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
mdev on /dev type tmpfs (rw,relatime,size=64k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
tmpfs on /tmp type tmpfs (rw,relatime,size=16384k)
tmpfs on /dev/shm type tmpfs (rw,relatime,size=1024k)
ubi0:ubi0_0 on /mnt/nand type ubifs (rw,relatime)

挂载U盘
[root@M388c etc]#  mount -t vfat /dev/sda1 /mnt/usb
 00 00 00 00 00 00
 28 00 00 00 20 00 00 00 01 00
 28 00 00 00 20 01 00 00 01 00
 28 00 00 00 25 36 00 00 01 00
 28 00 00 00 60 00 00 00 01 00
 28 00 00 00 60 01 00 00 01 00
 28 00 00 00 60 02 00 00 06 00
FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[root@M388c etc]# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=29516k,nr_inodes=7379,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
mdev on /dev type tmpfs (rw,relatime,size=64k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
tmpfs on /tmp type tmpfs (rw,relatime,size=16384k)
tmpfs on /dev/shm type tmpfs (rw,relatime,size=1024k)
ubi0:ubi0_0 on /mnt/nand type ubifs (rw,relatime)
/dev/sda1 on /mnt/usb type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)


文章来源: blog.csdn.net,作者:悟空胆好小,版权归原作者所有,如需转载,请联系作者。

原文链接:blog.csdn.net/xushx_bigbear/article/details/123364848

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。