Re: How do you fsck a loop-aes filesystem?

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

 



# /bin/sync --help
Usage: sync [OPTION]
Force changed blocks to disk, update the super block.

  --help      display this help and exit
  --version   output version information and exit

Report bugs to <bug-fileutils@gnu.org>.

JLC

On Thu, Jul 04, 2002 at 06:07:43PM +0300, Jari Ruusu wrote:
> dave-mlist@bfnet.com wrote:
> > I created a filesystem following Example 3 of the loop-aes README.  My
> > /etc/fstab file has a line that looks something like this:
> > 
> > /dev/sda1 /mnt/crypt ext3 defaults,noauto,loop=/dev/loop0,encryption=AES128,pseed=<someseed> 0 0
> > 
> > So, if I wanted to run fsck on this or just bring the filesystem
> > up to date with the journal, how would I do it?
> 
> To run fsck manually, do this when /mnt/crypt is _not_ mounted:
> 
>     losetup -e AES128 -S <someseed> /dev/loop0 /dev/sda1
>     fsck -t ext3 -f -y /dev/loop0
>     losetup -d /dev/loop0
> 
> > Also, is there any guarantee that the ext3 journal on this filesystem
> > is being written to the physical disk?  Or is the loop device
> > totally asynchronous?
> 
> Device backed loops signal writes as 'done' _after_ lower level driver has
> signaled said writes as 'done', so device backed loops are journaling fs
> safe.
> 
> Regards,
> Jari Ruusu <jari.ruusu@pp.inet.fi>
> 
> -
> Linux-crypto:  cryptography in and on the Linux system
> Archive:       http://mail.nl.linux.org/linux-crypto/

-- 
http://www.certainkey.com
Suite 4560 CTTC
1125 Colonel By Dr.
Ottawa ON, K1S 5B6
C: 613.263.2983
-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux