[SOLVED] Edited crypttab and fstab, now system doesn't start.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Edited crypttab and fstab, now system doesn't start.
I'm using Ubuntu 12.04 AMD64 Precise Pangolin with two encrypted hard drives using LVM. After installing Ubuntu I tried adding the second hard drive to crypttab and fstab so it would be mounted at startup, but apparently I did something wrong, as after rebooting I'm sent to BusyBox.
I burned an Ubuntu live cd (12.04) and was able to mount the second hard drive, but not the system drive where I was hoping to edit crypttab and fstab again so I'd be able to boot normally.
Here's what happens when I try to mount it:
Quote:
ubuntu@ubuntu:~$ sudo mount /dev/ubuntu/root /mnt/ubu
mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu-root,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
lvdisplay
--- Logical volume ---
LV Name /dev/ubuntu/root
VG Name ubuntu
LV UUID l8MCAl-M36n-NcMY-7kzd-3CPD-BrcT-E0xRFg
LV Write Access read/write
LV Status available
# open 0
LV Size 461,48 GiB
Current LE 118140
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
--- Logical volume ---
LV Name /dev/ubuntu/swap_1
VG Name ubuntu
LV UUID qyAaOe-NEza-YD0a-yJEW-IhvH-YXwz-A14F33
LV Write Access read/write
LV Status available
# open 0
LV Size 3,99 GiB
Current LE 1021
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:2
pvdisplay
--- Physical volume ---
PV Name /dev/dm-0
VG Name ubuntu
PV Size 465,52 GiB / not usable 4,00 MiB
Allocatable yes
PE Size 4,00 MiB
Total PE 119172
Free PE 11
Allocated PE 119161
PV UUID fxBHDJ-JpoG-cPlO-d3Ho-JHPm-tHBW-ITepbZ
Quote:
NAME TYPE FSTYPE LABEL SIZE MODEL MOUNTPOINT
loop0 loop 672M /rofs
sr0 rom iso9660 Ubuntu 12.04 LTS i386
701,6M CDDVDW S /cdrom
sda disk 465,8G HDS72505
├─sda1 part 243M
├─sda2 part 1K
└─sda5 part 465,5G
└─udisks-luks-uuid-854d332c-cbcd-4e1b-b545-7169f46afb63-uid999 (dm-0) crypt 465,5G
├─ubuntu-root (dm-1) lvm 461,5G
└─ubuntu-swap_1 (dm-2) lvm 4G
sdb disk 1,8T WDC WD20
└─sdb1 part 1,8T
- What changes did you make exactly?
- Did you make a backup before fscking around?
- Have you tried rebooting w/o the 2nd disk attached?
- Have you looked at this, this or this procedure-wise?
I do have a backup since installing Ubuntu a few days ago (switching from Debian) but I moved some files to the drive I can't access instead of copying.
I looked at your links but I'm not sure they'd help here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.