What version of util-linux-2.11 are you using?bryon wrote:I dont know what I am doing wrong but once i get to the
It just sits there and does nothingCode: Select all
patch -p1 <../util-linux-2.11y.diff
What version of util-linux-2.11 are you using?bryon wrote:I dont know what I am doing wrong but once i get to the
It just sits there and does nothingCode: Select all
patch -p1 <../util-linux-2.11y.diff
Code: Select all
./util-linux-2.11z/getopt/getopt-test.tcsh
./util-linux-2.11z/getopt/getopt-parse.bash
./util-linux-2.11z/getopt/getopt-parse.tcsh
root@lappy loop-AES-v1.7c # patch -p1 util-linux-2.11z.diff

You need to typebryon wrote: root@lappy loop-AES-v1.7c # patch -p1 util-linux-2.11z.diff
Code: Select all
patch -p1 < util-linux-2.11z.diffCode: Select all
cat util-linux-2.11z.diff | patch -p1Code: Select all
lappy mount # ls
loumount.c loumount.c.rej rmd160.c rmd160.h sha512.c sha512.h
lappy mount # pwd
/usr/src/loop-AES-v1.7c/mount
lappy mount # install -m 4755 -o root mount umount /bin
install: cannot stat `mount': No such file or directory
install: cannot stat `umount': No such file or directory
lappy mount # install -m 755 losetup swapon /sbin
install: cannot stat `losetup': No such file or directory
install: cannot stat `swapon': No such file or directory
lappy mount #

That's strange....I don't have a mount directory in my loop-AES-v1.7c directory...bryon wrote: lappy mount # pwd
/usr/src/loop-AES-v1.7c/mount
[/code]
Code: Select all
depend() {
before checkfs
}
Code: Select all
# We do not want to break compadibility, so we do not fully integrate
# these into /sbin/rc, but rather start them by hand ...
for x in checkroot hostname modules loop-AES checkfs localmount
do
if ! start_critical_service "${x}"
then
echo
eerror "One of more critical startup scripts failed to
eerror "Please correct this, and reboot ..."
echo; echo
/sbin/sulogin ${CONSOLE}
einfo "Unmounting filesystems"
/bin/mount -a -o remount,ro & >/dev/null
einfo "Rebooting"
/sbin/reboot -f
fi
done
Code: Select all
depend() {
# this function is useless due to /sbin/rc
need checkroot modules
before localmount
after checkroot
}
start() {
ebegin "Setting up encryped loop devices"
echo blahhhhhhh | losetup -p 0 -e AES256 /dev/loop4 /dev/hdb1 -C -S lalalallalala
echo blahhhhh | losetup -p 0 -e AES256 /dev/loop5 /dev/hdb2 -C 100 -S lalalalalal
eend $? "Failed to start encrypted loop devices!"
}
# vim:ts=4
Code: Select all
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.10 2002/11/18 19:39:22 azarah Exp $
#
# noatime turns of atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /boot ext3 noauto,noatime 1 2
/dev/hda3 / reiserfs noatime 0 1
# Encrypted swap
/dev/hda2 none swap sw,loop=/dev/loop6,encryption=AES256 0 0
# Encrypted drives
/dev/loop4 /home reiserfs defaults,noatime 0 1
/dev/loop5 /home/common reiserfs defaults,noatime 0 1
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
/dev/fd0 /mnt/floppy minix noauto 0 0
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink). Adding the following
# line to /etc/fstab should take care of this:
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will use almost no
# memory if not populated with files)
tmpfs /dev/shm tmpfs defaults 0 0

I have been working with the kerneli cryptoloop patches with 2.5.73, and they work fine. I thought that loop-AES also works, but I have not tested this so I don' t know what might be going wrong.togge wrote:I ran into some trubbles trying to compile the loop.o driver for 2.5.73-mm2
[snip...errors...]
Any idea why this happens ?
Maybe the kernel issnt supported ?
watersb wrote:I'm getting ready to reinstall everything. Watersb, do you like the kerneli cryptoloop patches better than loop-AES now? I don't want to rebuild again for awhile and I will try the 2.5 kernels and kerneli cryptoloop if everything works good for you.togge wrote: I have been working with the kerneli cryptoloop patches with 2.5.73, and they work fine. I thought that loop-AES also works, but I have not tested this so I don' t know what might be going wrong.
Chad
Code: Select all
VFS: Mounted root (minix filesystem) readonly
mounted devfs on /dev
Freeing unused kernel memory: 144k freed
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Command "/lib/insmod -o loop /lib/loop-2.4.20.o " returned error
flushing ide devices: hda hdb hdc hdd
System Halted.
Code: Select all
root@tty1[/]# mount /dev/hda3 /mnt/gentoo -t xfs
XFS: bad magic number
XFS: SB validate failed
mount: wrong fs type, bad option, bad superblock on /dev/hda3
or too many mounted file systems
I'm having a similar problem with my encrypted root partition.viperlin wrote:after completing this first time i decided to do it on my main system.|
well when booting after with everything set up fine as far as i can see i get this at boot:
/lib/insmod does NOT existCode: Select all
VFS: Mounted root (minix filesystem) readonly mounted devfs on /dev Freeing unused kernel memory: 144k freed kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. Command "/lib/insmod -o loop /lib/loop-2.4.20.o " returned error flushing ide devices: hda hdb hdc hdd System Halted.
/lib/loop-2.4.20.o does not exist
(i tryed symlinks but that didn't change a thing.)
any ideas, i'm stumped at where to begin.