- 論壇徽章:
- 26
|
本帖最后由 cryboy2001 于 2014-07-07 16:55 編輯
我以為后面的會報錯,掛不了,結(jié)果我試了一下:
[root@iscsihost:/mnt]#mount /dev/sda1 ./sdb1 #可以掛上
[root@iscsihost:/mnt/sdb1]#mount
/dev/mapper/vg_iscsihost-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
/dev/mapper/vg_iscsihost-lv_home on /home type ext4 (rw)
/dev/sdb1 on /mnt/sdb1 type ext4 (rw) #出現(xiàn)兩個,這是1
/dev/sdb2 on /mnt/sdb2 type ext4 (rw)
/dev/sdc1 on /mnt/sdh1 type ext4 (rw)
/dev/mapper/vg_iscsihost-lv_public on /home/public type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sda1 on /mnt/sdb1 type ext4 (rw) #這是2
[root@iscsihost:/mnt/sdb1]#ls #內(nèi)容變成了后掛的
config-2.6.32-71.el6.x86_64 lost+found
efi symvers-2.6.32-71.el6.x86_64.gz
grub System.map-2.6.32-71.el6.x86_64
initramfs-2.6.32-71.el6.x86_64.img vmlinuz-2.6.32-71.el6.x86_64
initrd-2.6.32-71.el6.x86_64kdump.img
[root@iscsihost:/mnt/sdb1]#cd ..
[root@iscsihost:/mnt]#ls
sdb1 sdb2 sdh1
[root@iscsihost:/mnt]#umount ./sdb1 #下掉
[root@iscsihost:/mnt]#ls
sdb1 sdb2 sdh1
[root@iscsihost:/mnt]#cd sdb1
[root@iscsihost:/mnt/sdb1]#ls #自動下了第2個,內(nèi)容又成了第一次掛載的,
lost+found shares
[root@iscsihost:/mnt/sdb1]#
沒有對數(shù)據(jù)操作,不知會不會有其它問題。 |
|