将盘mount到已存在路径,路径下文件显示不了
2016-01-23 10:48
447 查看
添加盘: Disk /dev/sdb: 1073 MB, 1073741824 bytes 255 heads, 63 sectors/track, 130 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 [root@single1 test]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 38G 14G 22G 40% / tmpfs 495M 202M 293M 41% /dev/shm /dev/sda1 388M 384M 0 100% /boot [root@single1 test]# pwd /test [root@single1 test]# ls video.avi 挂载: [root@single1 ~]# mount /dev/sdb /test [root@single1 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 38G 14G 22G 40% / tmpfs 495M 202M 293M 41% /dev/shm /dev/sda1 388M 384M 0 100% /boot /dev/sdb 1008M 34M 924M 4% /test [root@single1 ~]# cd /test [root@single1 test]# ll total 16 drwx------ 2 root root 16384 Jan 18 18:23 lost+found 我的video.avi 不见了!! [root@single1 ~]# umount /test [root@single1 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 38G 14G 22G 40% / tmpfs 495M 202M 293M 41% /dev/shm /dev/sda1 388M 384M 0 100% /boot [root@single1 ~]# cd /test [root@single1 test]# ll total 4 -rw-r--r-- 1 root root 16 Jan 18 18:20 video.avi OK,它又回来了! 所以,mount磁盘之前,最好检查下路径下的文件。有用的mv,没用的rm。
相关文章推荐
- c++ 11 sleep()
- Fckeditor使用方法
- DataGridView为表头增加批量选择框
- x265-1.7版本-common/threadpool.cpp注释
- 文本框设置100%宽度,内容过多时所在td的宽度失效
- HDU 1071
- iOS页面间跳转动画效果
- CodeForce 614B Gena's Code 巧用字符串
- Python 实现的下载op海贼王网的图片(网络爬虫)
- 微信企业号开发(2)--建立连接(主动)
- 并查集详解
- 问题汇总
- ASP.NET 自定义服务器控件的使用
- linux中内存泄漏的检测(五)记录内存泄漏的代码
- 3.6 Templates -- Binding Element Class Names(绑定元素类名)
- Triangle 递归解法
- Ubuntu 14.04数据库服务器--mysql的安装和配置
- iis + tomcat 共用80端口
- PHP图像处理类库及演示分享
- 系统管理 virtual box iostat ssh