【Fedora手记】[2014年12月26日]

本文提供了一套详细的操作步骤,教你如何在Linux环境下挂载U盘和硬盘,并指导如何在Windows系统中挂载磁盘。包括使用脚本自动挂载和卸载磁盘的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

【For.马金宝的Lenovo】【Fedora13?】

U盘、硬盘挂载

mountAllDisk.sh

#Here are commands for mount disk

#mount U disk
fdisk -l
#to show the U disk
#e.g. your UDisk named "sdb1"
#Then mkdir a directory in /mnt/
#Here I had made a dir named "usb"(/mnt/usb)
#So you just need to mount the Udisk on the directory
mount -t vfat -o iocharset=utf8 /dev/sdb1 /mnt/usb


#mount the NTFS disk for windows7
#Also use
fdisk -l
#to see what's your Disk are named
#e.g. sda5 (Maybe for C: in the windows system)
mkdir /mnt/CDisk
#Then mount it
mount -t ntfs /dev/sda5 /mnt/CDisk

#Once if you mount the disk(weather your UDisk or the HardDisk), you can go to /mnt/somename/ to manage it^_^



mountUDisk.sh

umount /mnt/usb
mount -t vfat -o iocharset=utf8 /dev/sdb1 /mnt/usb

mountWin7.sh

#umount them to avoid remount
umount /mnt/C
umount /mnt/D
umount /mnt/E
umount /mnt/F
umount /mnt/G
#mount C-G disk
mount -t ntfs /dev/sda2 /mnt/C
mount -t ntfs /dev/sda3 /mnt/D
mount -t ntfs /dev/sda5 /mnt/E
mount -t ntfs /dev/sda6 /mnt/F
mount -t ntfs /dev/sda7 /mnt/G

其它相关文件已经备份至:

链接: http://pan.baidu.com/s/1bnCkAVt 密码: zwru

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值