一个操作系统的实现sudo mount -o loop pm.img /mnt/floppy mount point /mnt/floppy does not exist
作者:互联网
部分参考:https://blog.csdn.net/u012323667/article/details/79266623
sudo mount -o loop pm.img /mnt/floppy
会出现了错误
mount point /mnt/floppy does not exist
先创建文件夹
然后
sudo losetup /dev/loop0 pm.img 创建loop设备,然后操作loop设备,就是对pm.img数据的操作了
sudo mount /dev/loop0/ /mnt/floppy loop设备挂载到/mnt/floppy上
然后
sudo cp pmtest2.com /mnt/floppy/ 赋值
然后卸载
sudo umount /mnt/floppy/
标签:img,floppy,mount,sudo,mnt,loop 来源: https://www.cnblogs.com/lqerio/p/11700357.html