Centos7常用命令[挂载文件系统]
生活随笔
收集整理的這篇文章主要介紹了
Centos7常用命令[挂载文件系统]
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Centos7常用命令[掛載文件系統(tǒng)]
------------------------------------------------------------------------------
# 掛載一個(gè)叫做hda2的盤(pán)-確定目錄/mnt/hda2已經(jīng)存在 [root@localhost ~]# mount /dev/hda2 /mnt/hda2
# 卸載一個(gè)叫做hda2的盤(pán)-先從掛載點(diǎn)/mnt/hda2退出 [root@localhost ~]# umount /dev/hda2
# 當(dāng)設(shè)備繁忙時(shí)強(qiáng)制卸載 [root@localhost ~]# fuser -km /mnt/hda2
# 運(yùn)行卸載操作而不寫(xiě)入/etc/mtab文件-當(dāng)文件為只讀或當(dāng)磁盤(pán)寫(xiě)滿時(shí)非常有用 [root@localhost ~]# umount -n /mnt/hda2
# 掛載一個(gè)軟盤(pán) [root@localhost ~]# mount /dev/fd0 /mnt/floppy
# 掛載一個(gè)cdrom或dvdrom [root@localhost ~]# mount /dev/cdrom /mnt/cdrom
# 掛載一個(gè)cdrw或dvdrom [root@localhost ~]# mount /dev/hdc /mnt/cdrecorder
# 掛載一個(gè)cdrw或dvdrom [root@localhost ~]# mount /dev/hdb /mnt/cdrecorder
# 掛載一個(gè)文件或ISO鏡像文件 [root@localhost ~]# mount -o loop file.iso /mnt/cdrom
# 掛載一個(gè)Windows FAT32文件系統(tǒng) [root@localhost ~]# mount -t vfat /dev/hda5 /mnt/hda5
# 掛載一個(gè)usb捷盤(pán)或閃存設(shè)備 [root@localhost ~]# mount /dev/sda1 /mnt/usbdisk
# 掛載一個(gè)windows網(wǎng)絡(luò)共享 [root@localhost ~]# mount -t smbfs -o username=user,password=pass //WinClient/share /mnt/share
------------------------------------------------------------------------------
# 掛載一個(gè)叫做hda2的盤(pán)-確定目錄/mnt/hda2已經(jīng)存在 [root@localhost ~]# mount /dev/hda2 /mnt/hda2
# 卸載一個(gè)叫做hda2的盤(pán)-先從掛載點(diǎn)/mnt/hda2退出 [root@localhost ~]# umount /dev/hda2
# 當(dāng)設(shè)備繁忙時(shí)強(qiáng)制卸載 [root@localhost ~]# fuser -km /mnt/hda2
# 運(yùn)行卸載操作而不寫(xiě)入/etc/mtab文件-當(dāng)文件為只讀或當(dāng)磁盤(pán)寫(xiě)滿時(shí)非常有用 [root@localhost ~]# umount -n /mnt/hda2
# 掛載一個(gè)軟盤(pán) [root@localhost ~]# mount /dev/fd0 /mnt/floppy
# 掛載一個(gè)cdrom或dvdrom [root@localhost ~]# mount /dev/cdrom /mnt/cdrom
# 掛載一個(gè)cdrw或dvdrom [root@localhost ~]# mount /dev/hdc /mnt/cdrecorder
# 掛載一個(gè)cdrw或dvdrom [root@localhost ~]# mount /dev/hdb /mnt/cdrecorder
# 掛載一個(gè)文件或ISO鏡像文件 [root@localhost ~]# mount -o loop file.iso /mnt/cdrom
# 掛載一個(gè)Windows FAT32文件系統(tǒng) [root@localhost ~]# mount -t vfat /dev/hda5 /mnt/hda5
# 掛載一個(gè)usb捷盤(pán)或閃存設(shè)備 [root@localhost ~]# mount /dev/sda1 /mnt/usbdisk
# 掛載一個(gè)windows網(wǎng)絡(luò)共享 [root@localhost ~]# mount -t smbfs -o username=user,password=pass //WinClient/share /mnt/share
總結(jié)
以上是生活随笔為你收集整理的Centos7常用命令[挂载文件系统]的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Spring Cloud Zuul网关
- 下一篇: 300GB*6 SCSI RAID5 L