Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: How not to mount Encrypted partition?

  1. #1

    Default How not to mount Encrypted partition?

    I have an encrypted partition I would like to not boot when the machine comes up.

    /etc/fstab already has noauto:
    /dev/mapper/cr_sdb5 /data2 reiserfs acl,user_xattr,noauto 0

    What else do I need to change so "/data2" doesn't get mounted?

  2. #2
    Join Date
    Jun 2008
    Location
    Bandung, Indonesia
    Posts
    64

    Default Re: How not to mount Encrypted partition?

    Just remove the line for sda2 in /etc/fstab, don't forget to backup the file first!
    Linux user: #448598
    openSUSE Indonesia: http://opensuse.or.id/

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,166

    Default Re: How not to mount Encrypted partition?

    Or just put a # in front of the line. Easier to revert when you want it back.
    Henk van Velden

  4. #4
    Menes Narmer NNTP User

    Default Re: How not to mount Encrypted partition?

    francisco1844 wrote:

    > What else do I need to change so "/data2" doesn't get mounted?


    Or, make it user mountable:

    /dev/dm-0 /home/user/Documents/personal ext2 defaults,noauto,user 0 0

    --
    Menes Narmer
    menesofmemphis [at] gmail [dot] com

    "Unity and humility is the lesson all of history teaches."

  5. #5

    Default Re: How not to mount Encrypted partition?

    Thanks for all the replies.
    How about making it not ask for the password at bootup?

    Basically I want an encrypted filesystem, but if the machine looses power and it comes back up I want the system to boot and then when I get home I will boot the encrypted partition manually.

  6. #6

    Default Re: How not to mount Encrypted partition?

    If the /root is encrypted, you cannot bypass password in order to boot the system. But I believe you a talking about an extra hard drive.

    So to not be prompted for password during boot, follow the suggestions given in the previous posts--by removing the device from your fstab--also, check your grub to make sure it is not listed there as well.

    good luck!
    The 10 principles to understanding computer basic rules: :: On :: Off


    openSUSE11.0

  7. #7

    Default Re: How not to mount Encrypted partition?

    It is a second hard drive which I mount as /data2.

    I already removed from fstab, but at bootup it still gets prompted for the password.

    Originally when it was in fstab its entry was:
    /dev/mapper/cr_sdb5 /data2 reiserfs noatime,noacl,noauto 0 0 (see NOTE)

    Perhaps there is an entry related to /dev/mapper that needs to be commented?


    NOTE: I don't have the original entry anymore since I am goin to try EXT3 and the new line in fstab now reads EXT3, but it was pretty much what I have above. I am doing a backup to Amazon S3, but once that finishes later I will try to see if using EXT3 makes a difference. However I think it may be something else outside of fstab.

    Thanks for all the help guys.

  8. #8

    Default Re: How not to mount Encrypted partition?

    Quote Originally Posted by francisco1844 View Post
    It is a second hard drive which I mount as /data2.

    I already removed from fstab, but at bootup it still gets prompted for the password.

    Originally when it was in fstab its entry was:
    /dev/mapper/cr_sdb5 /data2 reiserfs noatime,noacl,noauto 0 0 (see NOTE)

    Perhaps there is an entry related to /dev/mapper that needs to be commented?


    NOTE: I don't have the original entry anymore since I am goin to try EXT3 and the new line in fstab now reads EXT3, but it was pretty much what I have above. I am doing a backup to Amazon S3, but once that finishes later I will try to see if using EXT3 makes a difference. However I think it may be something else outside of fstab.

    Thanks for all the help guys.
    Post your grub.
    The 10 principles to understanding computer basic rules: :: On :: Off


    openSUSE11.0

  9. #9

    Default Re: How not to mount Encrypted partition?

    /boot/grub/menu.lst

    # Modified by YaST2. Last modification on Fri Jun 6 23:17:15 EDT 2008
    default 0
    timeout 8
    gfxmenu (hd0,0)/message
    ##YaST - activate

    ###Don't change this comment - YaST2 identifier: Original name: linux###
    title openSUSE 10.3 - 2.6.22.17-0.1
    root (hd0,0)
    kernel /vmlinuz-2.6.22.17-0.1-default root=/dev/disk/by-id/scsi-SATA_SAMSUNG_HD501LJS0MUJDWPC42491-part6 vga=0x366 resume=/dev/sda5 splash=silent showopts
    initrd /initrd-2.6.22.17-0.1-default

    ###Don't change this comment - YaST2 identifier: Original name: failsafe###
    title Failsafe -- openSUSE 10.3 - 2.6.22.17-0.1
    root (hd0,0)
    kernel /vmlinuz-2.6.22.17-0.1-default root=/dev/disk/by-id/scsi-SATA_SAMSUNG_HD501LJS0MUJDWPC42491-part6 vga=normal showopts ide=nodma apm=off acpi=off noresume edd=off 3
    initrd /initrd-2.6.22.17-0.1-default


    The filesystem in question is /dev/sdb5.
    I don't see it listed there.

    Digging in google I found this directory:
    /dev/mapper

    There I see
    brw------- 1 root 253, 1 2008-06-13 20:11 cr_sda5
    brw------- 1 root 253, 0 2008-06-13 20:11 cr_sda7
    brw------- 1 root 253, 2 2008-06-14 08:43 cr_sdb5

    I wonder if those can be moved. I think if cr_sdb5 is not there, that it will not ask for password. Then at boot time I would move it back and mount it.

  10. #10

    Default Re: How not to mount Encrypted partition?

    I don't see why it would still prompt for password for sdb5.


    did you run mkinitrd after you edited you fstab in order to update it?
    The 10 principles to understanding computer basic rules: :: On :: Off


    openSUSE11.0

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •