[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mounting a file as a filesystem



Sebastian Kuzminsky <kuzminsk@taussky.cs.colorado.edu> writes:

>    So my question is this:  how do i fsck the filesystem in a file?

Use losetup(8) to associate the loop device with a file first, then
fsck, and then mount.

losetup /dev/loop0 /the/loopback/file
fsck -t ext2 /dev/loop0
mount -t ext2 /dev/loop0 /mnt


Guy


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: