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

Thread: dm-crypt error and problems can not mount sdb

  1. #1
    Join Date
    Jun 2008
    Beans
    70

    dm-crypt error and problems can not mount sdb

    Well I got my self in a situation; I followed the step 1-7 under 'Examples' hear: https://help.ubuntu.com/community/En...ilesystemHowto

    I have preformed this on a second hard drive /dev/sdb1 it generally mounts at /media/sdb now it no longer mounts, at boot, and when I attempt to:
    Code:
     sudo mount -t ext3 /dev/sdb1 /media/sdb
    mount: /dev/sdb1 already mounted or /media/sdb busy
    During the boot process I am prompted for a PASSPHRASE – when Crypt disk starts - and then an error:
    Code:
    File system check failed. Please repair manually. Control-D will exit this shell and continue system start up.
    I am entering the correct passphrase.

    I am not sure what is going on or how to trouble shoot the issue. Or how to simply reverse the process and continue on as normal.

    My orignal concept was to Encrypt the second drive and do back up there.

    Any feedback is much appreciated!

    Q: Does anyone know what command I can enter - at the shell - when prompted
    Code:
    File system check failed. Please repair manually.
    ... or just where to start to fix the issue.


    uname -a
    Code:
    2.6.15-52-server #1 SMP Mon Jun 9 18:30:21 UTC 2008 i686 GNU/Linux

  2. #2
    Join Date
    Jun 2008
    Beans
    70

    Re: dm-crypt error and problems can not mount sdb

    So; I fixed this error:

    Quote Originally Posted by spike_strip View Post
    During the boot process I am prompted for a PASSPHRASE – when Crypt disk starts - and then an error:
    Code:
    File system check failed. Please repair manually. Control-D will exit this shell and continue system start up.
    However, no access to my data on sdb.

    It appears to be mounted do I need to run a command to make the encrypted dated accessible?

    Thanks--

  3. #3
    Join Date
    Jun 2008
    Beans
    70

    Re: dm-crypt error and problems can not mount sdb

    Hear is some aditional information:

    out-put from, ls -l /dev/mapper/
    Code:
    total 0
    crw-rw---- 1 root root  10, 63 2008-06-25 07:11 control
    brw-rw---- 1 root disk 254,  8 2008-06-25 07:13 crypt
    brw-rw---- 1 root disk 254,  3 2008-06-25 07:13 lvm2|Ubuntu|root
    brw-rw---- 1 root disk 254,  4 2008-06-25 07:13 lvm2|Ubuntu|swap_1
    brw-rw---- 1 root disk 254,  5 2008-06-25 07:13 sda5
    brw-rw---- 1 root disk 254,  2 2008-06-25 07:13 sda6
    brw-rw---- 1 root disk 254,  6 2008-06-25 07:13 sdb1
    brw-rw---- 1 root disk 254,  7 2008-06-25 07:13 sdb5
    brw------- 1 root root 254,  0 2008-06-25 07:11 Ubuntu-root
    brw------- 1 root root 254,  1 2008-06-25 07:11 Ubuntu-swap_1
    out-put from, cat /etc/crypttab
    Code:
    # <target name> <source device>         <key file>      <options>
    crypt /dev/sdb1
    and from, dmesg | tail
    Code:
    [42949460.110000] 
    Bluetooth: HCI device and connection manager initialized
    [42949460.110000] Bluetooth: HCI socket layer initialized
    [42949460.130000] Bluetooth: L2CAP ver 2.8
    [42949460.130000] Bluetooth: L2CAP socket layer initialized
    [42949460.130000] Bluetooth: RFCOMM socket layer initialized
    [42949460.130000] Bluetooth: RFCOMM TTY layer initialized
    [42949460.130000] Bluetooth: RFCOMM ver 1.7
    [42949763.440000] device eth0 left promiscuous mode
    [42949763.500000] device eth0 entered promiscuous mode
    [42950040.390000] ufs was compiled with read-only support, can't be mounted as read-write
    The last line regarding 'ufs' is refering to sdb1.

    I am not able to unlock sdb1 do not know how to repair—any feedback is much appreciated!

  4. #4
    Join Date
    Jun 2008
    Beans
    70

    Re: dm-crypt error and problems can not mount sdb

    Could someone give me the steps to revers the process? In other words un-do what I have done.

    As it is now I have no access to this drive with complete loss of data! I know there is a Ubuntu genius from Switzerland, that post hear from time to time--no ideas.

    To make it worse the hard drive is completely useless, at his stage, and I have used all my available resources to fix the problem ... no luck so far!

  5. #5
    Join Date
    Jun 2006
    Location
    Switzerland
    Beans
    Hidden!
    Distro
    Kubuntu Jaunty Jackalope (testing)

    Re: dm-crypt error and problems can not mount sdb

    ok, once booted, run

    Code:
    ls -al /dev/mapper
    and

    Code:
    sudo fdisk -l
    and

    Code:
    df -l
    and

    Code:
    cat /etc/crypttab
    and

    Code:
    cat /etc/fstab

  6. #6
    Join Date
    Jun 2008
    Beans
    70

    Re: dm-crypt error and problems can not mount sdb

    ls -al /dev/mapper:
    Code:
    total 0
    drwxr-xr-x  2 root root     240 2008-06-26 06:55 .
    drwxr-xr-x 15 root root   15000 2008-06-26 06:59 ..
    crw-rw----  1 root root  10, 63 2008-06-26 06:47 control
    brw-rw----  1 root disk 254,  8 2008-06-26 06:55 crypt
    brw-rw----  1 root disk 254,  3 2008-06-26 06:50 lvm2|Ubuntu|root
    brw-rw----  1 root disk 254,  4 2008-06-26 06:50 lvm2|Ubuntu|swap_1
    brw-rw----  1 root disk 254,  5 2008-06-26 06:50 sda5
    brw-rw----  1 root disk 254,  2 2008-06-26 06:50 sda6
    brw-rw----  1 root disk 254,  6 2008-06-26 06:50 sdb1
    brw-rw----  1 root disk 254,  7 2008-06-26 06:50 sdb5
    brw-------  1 root root 254,  0 2008-06-26 06:47 Ubuntu-root
    brw-------  1 root root 254,  1 2008-06-26 06:47 Ubuntu-swap_1

    sudo fdsck -l
    Code:
    Disk /dev/sda: 73.4 GB, 73407868928 bytes
    255 heads, 63 sectors/track, 8924 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        8924    71681998+   5  Extended
    /dev/sda5   *           1          31      248944+  83  Linux
    /dev/sda6              32        8924    71432991   8e  Linux LVM
    
    Disk /dev/sdb: 73.4 GB, 73407868928 bytes
    255 heads, 63 sectors/track, 8924 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *           1        8559    68750136   83  Linux
    /dev/sdb2            8560        8924     2931862+   5  Extended
    /dev/sdb5            8560        8924     2931831   82  Linux swap / Solaris
    df -l:
    Code:
    Filesystem           1K-blocks      Used Available Use% Mounted on
    /dev/mapper/Ubuntu-root
                          67430000   3723028  60281692   6% /
    varrun                  517292        84    517208   1% /var/run
    varlock                 517292         4    517288   1% /var/lock
    udev                    517292       116    517176   1% /dev
    devshm                  517292         0    517292   0% /dev/shm
    /dev/sda5               233303     32671    188185  15% /boot
    cat /etc/crypttab:
    Code:
    crypt /dev/sdb1
    cat /etc/fstab:
    Code:
    proc            /proc           proc    defaults        0       0
    /dev/mapper/Ubuntu-root /               ext3    defaults,errors=remount-ro 0       1
    /dev/sda5       /boot           ext3    defaults        0       2
    /dev/mapper/Ubuntu-swap_1 none            swap    sw              0       0
    /dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
    /dev/scd0       /media/cdrom1   udf,iso9660 user,noauto     0       0
    /dev/scd0       /media/cdrom2   udf,iso9660 user,noauto     0       0
    /dev/scd0       /media/cdrom3   udf,iso9660 user,noauto     0       0
    /dev/scd0       /media/cdrom4   udf,iso9660 user,noauto     0       0
    /dev/scd0       /media/cdrom5   udf,iso9660 user,noauto     0       0
    /dev/scd0       /media/cdrom6   udf,iso9660 user,noauto     0       0
    /dev/scd0       /media/cdrom7   udf,iso9660 user,noauto     0       0
    /dev/scd0       /media/cdrom8   udf,iso9660 user,noauto     0       0
    /dev/scd0       /media/cdrom9   udf,iso9660 user,noauto     0       0
    /dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
    /dev/sdb1       /media/sdb      ufs     defaults 0      2
    /dev/mapper/crypt /crypt reiserfs defaults 0 1
    Any information is much appreciated—as I am not sure how to proceed!

    ~Corbin

  7. #7
    Join Date
    Jun 2006
    Location
    Switzerland
    Beans
    Hidden!
    Distro
    Kubuntu Jaunty Jackalope (testing)

    Re: dm-crypt error and problems can not mount sdb

    is there a reason why you use ufs and reiserfs?

  8. #8
    Join Date
    Jun 2008
    Beans
    70

    Re: dm-crypt error and problems can not mount sdb

    Yes; this is how I was able to get around the original error. I changed fstab; it previously read
    Code:
    dev/sdb1       /media/sdb      ext3     defaults 0      2
    And mounted on boot with no issues—prior to this mistake! When I receive the above error message. I then change, fstab, to what it currently reads
    Code:
    dev/sdb1       /media/sdb      ufs     defaults 0      2
    I was then able to enter my PASSPHRASE with no errors and boot normal!

  9. #9
    Join Date
    Jun 2006
    Location
    Switzerland
    Beans
    Hidden!
    Distro
    Kubuntu Jaunty Jackalope (testing)

    Re: dm-crypt error and problems can not mount sdb

    strange... well, if it works again it's good.

  10. #10
    Join Date
    Jun 2008
    Beans
    70

    Re: dm-crypt error and problems can not mount sdb

    However, I am able to enter my PASSPHRASE and the system boots. I thought I would--A. Beable to maualy mount sdb or; B. sdb would mount on boot as desinged. None of this has worked I am not sure I am using the correct syntax to mount sdb—however it fails with error such as:
    Code:
    mount: /dev/sdb1 already mounted or /media/sdb busy
    mount: wrong fs type, bad option, bad superblock on /dev/mapper/crypt,
           missing codepage or other error
           In some cases useful info is found in syslog - try
           dmesg | tail  or so

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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