fat32u盘linux系统,Linux系統掛載FAT32的U盤

1:將U盤插入USB接口,檢查是否插好

2:用fdisk命令檢查分區和USB設備信息

[root@yhwang ~]# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes

255 heads, 63 sectors/track, 121601 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/sda1 * 1 13 104391 83 Linux

/dev/sda2 14 121601 976655610 8e Linux LVM

Disk /dev/sdb: 4012 MB, 4012900352 bytes

223 heads, 55 sectors/track, 639 cylinders

Units = cylinders of 12265 * 512 = 6279680 bytes

Device Boot Start End Blocks Id System

/dev/sdb1 * 56 640 3580928 c W95 FAT32 (LBA)

Partition 1 has different physical/logical beginnings (non-Linux?):

phys=(42, 17, 40) logical=(55, 23, 1)

Partition 1 has different physical/logical endings:

phys=(487, 222, 55) logical=(639, 6, 31)

通過上面信息我們可以看出USB設備是FAT32格式的,標識為/dev/sdb1

[root@yhwang ~]# fdisk -l | grep FAT32

/dev/sdb1 * 56 640 3580928 c W95 FAT32 (LBA)

3:在mnt目錄下先建立一個usb的目錄

[root@yhwang ~]# cd /mnt/

[root@yhwang ~]# mkdir usb

4:掛載U盤

[root@yhwang mnt]# mount -t vfat /dev/sdb1 /mnt/usb

掛載成功后,我們可以在/mount/usb下看到相關的內容。

注意:有時候掛載時,中文的文件名和目錄名會出現亂碼,為了避免這種情況可以指定字符集,命令如下

[root@yhwang ~]# mount -t vfat -o iocharset=utf8,codepage=uft8 /dev/sdb1 /mnt/usb

[root@yhwang ~]# mount -t vfat -o iocharset=cp936,codepage=936 /dev/sdb1 /mnt/usb

注意:cp936是指簡體中文,cp950是指繁體中文。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值