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 _____________________________________________
On Wed, Jan 30, 2002 at 08:05:26PM -0500, Adam @ Oak wrote: askec> It seems like modifications to a loopback mounted file are only in memory. askec> How do I flush them to the mounted file? Does sync work? # sync # umount /mnt # sync -- Charles R. Anderson <cra@wpi.edu> / http://angus.ind.wpi.edu/~cra/ PGP Key ID: 49BB5886 Fingerprint: EBA3 A106 7C93 FA07 8E15 3AC2 C367 A0F9 49BB 5886
Does sync work?
heh. First thing I tried actually :) No effect. "lingua machinationis creo, ergo sum" _____________________________________________ Adam Keck The Mathworks 508-647-7298 Natick, Ma www.mathworks.com FreeNIX/Backup/Unix Administrator _____________________________________________
participants (4)
-
Adam @ Oak
-
Adam Keck
-
Charles R. Anderson
-
Josh Huber