From: Hans-Ulrich J. <han...@t-...> - 2009-03-16 21:29:15
|
Hi Martin, Martinveg wrote: > Hi, Hans-Ulrich, > > This is a follow-up to my previous message of yesterday: > > Today I tried again to mount the container, and when it wouldn't > mount, I followed your instructions again, doing the fsck -t vfat > /dev/scramdisk/vol01 command. And the result appeared to be exactly > the same as yesterday. This suggests to me that the command did not > change my container file at all -- indeed, the notation: "Leaving file > system unchanged" suggests this. I commanded it to correct the > problems and delete the bad files, but it seems that it didn't do it. > > How do I get it to actually make the required changes? > > Thanks again, > > Martin > Yes that means, that the changes haven't been written. There are a number of further options you may try. By the command man fsck.msdos a manual page of the msdos/vfat file system checker, which fsck calls with the option -t vfat, is displayed. You can always find such man pages in the internet if they are not installed on your computer or you like a more friendly presentation in the browser. Especially the options (copied from the man page) -w for "Write changes to disk immediately." -t for "Mark unreadable clusters as bad." and perhaps -a for "Automatically repair the file system. No user intervention is necessary. Whenever there is more than one method to solve a problem, the least destructive approach is used." of fsck.msdos might be worth trying. You may also call fsck.msdos directly without instructing fsck by the option -t vfat to call it. So a possible approach would be fsck.msdos -w -t /dev/scramdisk/vol01 or fsck.msdos -w -t -a /dev/scramdisk/vol01. I hope this helps, but there is no guaranty that the file system will be repaired successfully. > Unfortunately, after doing this in Terminal, I still can't mount the > container. when I click on the Volume 01 (none (don't mount)) > container and click Mount, I get the error: "Container file already > mounted." And it gives the file system location of my container file. > But of course it is NOT mounted there. And it is not mounted in the > folder I selected as the Mount Point either. You first have to unmount the container which was mounted with the special option "none (don't mount)". Perhaps you are confused by the two meanings of the phrase "mount" in the context of SD4L. The first meaning is to read the header of the container and decrypt it with the passphrase. The second meaning is to mount the file system within the container to make it accessible by your Linux machine. The option "none (don't mount)" results in only doing a "mount" in the first meaning. If this option isn't chosen, both meanings of "mount" are performed. So either you unmount the container before doing the normal mount or you may perform the second meaning of "mount" in your root terminal by the command mount -t vfat /dev/scramdisk/vol01 /mnt where /mnt may also be any other directory where you like to have your container mounted. Another possibility of mounting is to replace vfat with msdos. The difference is that with the option -t msdos of the mount command no long file names are available but only 8.3 dos file names. SD4L has this option msdos also as a separate mount option. If mounting with -t vfat fails after all fsck runs this option -t msdos may be a last trial. Best regards, Ulrich |