> On Mon, Jul 30, 2012 at 10:55 PM, Todd And Margo Chester > <[log in to unmask] <mailto:[log in to unmask]>> wrote: > > On 07/30/2012 06:26 PM, Tam Nguyen wrote: > > Todd, > let's keep it simple, get it right and work, then you can > take off from > there. So do this: > vi /etc/fstab: > /dev/mapper/lin-bak /mnt ext4 defaults 0 0 > > > Hi Tam, > > I have tried this. With and without the first > parameter set to allow dump, which I do need. > > > vi /etc/crypttab: > lin-bak /dev/sdb1 > > > I have tried this. At boot I get "mount: special device > /dev/mapper/lin-bak does not exist" > > > mount -a > > > without /dev/mapper/lin-bak, it won't mount. > > reboot > > > /dev/mapper/lin-bak disappears > > > Then we'll go from there. > -Tam > > > You know what I have not tried, removing the > dash from lin-bak in crypttab > > > Makes no difference. > > > -T > > > I am mounting now by using rc.local: > > # if I can not get /etc/crypttab to work, this will populate > # /dev/mapper with lin-bak and mount /lin-bak > if [ ! -L /dev/mapper/lin-bak ]; then > > cryptsetup luksOpen /dev/sdb1 lin-bak < /etc/crypttab.lin-bak.key > if [ -L /dev/mapper/lin-bak ] && [ -n $(mount -l | grep -i > lin-bak) ]; then > mount /lin-bak > fi > fi > > > I suppose I don't need the > [ -n $(mount -l | grep -i lin-bak) ] > But, I was pleased with my coding, so I left it in. > > -T > > On 07/30/2012 08:04 PM, Tam Nguyen wrote:> Todd, > I am glad it works for you. I get my working on the VM without touching > the rc.local file. You should research on it. > > Good luck Hi Tam, Thank you for the copious amounts of time and your knowledge you shared with me helping me! Red Hat is going to get a few bug reports out of this in the next few days! -T