How to FSCK GEOM GELI image

Ivan Voras ivoras at freebsd.org
Wed Sep 10 13:23:21 UTC 2008


Michael Jung wrote:
> FreeBSD 6.3-RELEASE-p2 #15
> 
> I've been using the image for some time and was well until a UPS
> failure.
> 
> Here is the script I use to mount the encrypted file image
> 
> ++++++++++++
> 
> mdconfig -a -t vnode -f /home/staff/mikej/image md0
> geli attach -k /etc/gli/image.key /dev/md0c

Try fsck after this step, before you mount it:

fsck /dev/md0c.eli

> mount /dev/md0c.eli /private
> 
> ++++++++++++
> 
> It fails to mount and I see this is dmesg
> 
> GEOM_ELI: Device md0c.eli created.
> GEOM_ELI: Encryption: AES-CBC 128
> GEOM_ELI:     Crypto: software
> WARNING: R/W mount of /private denied.  Filesystem is not clean - run
> fsck


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20080910/b3087227/signature.pgp


More information about the freebsd-geom mailing list