It seems like modifications to a loopback mounted file are only in memory. How do I flush them to the mounted file?
# mount -t msdos -o loop pqdiboot.img /mnt
# ls /mnt
aspi8dos.sys aspicd.sys autoexec.bat command.com delscpt.txt io.sys msdos.sys aspi8u2.sys atapicd.sys choice.com config.sys himem.sys mscdex.exe taisatap.sys
# md5sum /mnt/autoexec.bat c5204d8e68d8ad6c714df02584d0b5d3 /mnt/autoexec.bat
# vi /mnt/autoexec.bat (modify, save, exit)
# umount /mnt
# mount -t msdos -o loop pqdiboot.img /mnt
# md5sum /mnt/autoexec.bat ac12a4b88ad43f1023806fb620475edb /mnt/autoexec.bat
inspection of the file reveals that the file hasn't been modified.
I have used this method before; I don't know what's different this time.
Other info:
# mount |grep loop (when image is mounted) /home/akeck/cdimage/MWCD/pqdiboot.img on /mnt type msdos (rw,loop=/dev/loop0)
# uname -a Linux yupa 2.4.17 #6 SMP Sun Jan 20 23:27:42 EST 2002 i686 unknown
Msdos and loopback device support is compiled into the kernel.
floppy image is 1.44mb
Please help: dd'ing to disk, modifying with vi/mtools, then dd'ing back to file is getting really old ;)
-Adam
"lingua machinationis creo, ergo sum" _____________________________________________ Adam Keck The Mathworks Natick, Ma www.mathworks.com FreeNIX/Backup/Unix Administrator _____________________________________________
participants (4)
-
Adam @ Oak
-
Adam Keck
-
Charles R. Anderson
-
Josh Huber