LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   unable to find LVM volume vg0/cryptedroot on startup (https://www.linuxquestions.org/questions/debian-26/unable-to-find-lvm-volume-vg0-cryptedroot-on-startup-764167/)

compul 10-24-2009 10:06 AM

unable to find LVM volume vg0/cryptedroot on startup
 
hey,
on my laptop, i am running debian testing / squeeze.
my laptops batterie lately died. when i wanted to reboot, it told me something about fsck failed and maintainance mode, and since i had to run fsck in maintainance mode the last time i bootet (other reason - doesnt matter right now), i just entered the root pw and started fsck. cuz it was pretty late i didnt really think and just answered every question with default (return). so it 'fixed' lots of stuff. then, when i tried to reboot, it hangs and shouts the following:

Code:

EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write acces will be enabled during recovery.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
mount: mounting /dev on /root/dev failed: No such file or directory
/init: line 253: can't open /root/dev/console: no such file
Kernel panic - not syncing: Attempted to kill init!
Pid: 1, comm: init Not tainted 2.6.30-2-686 #1
Call Trace:
[<c031ccaa>] ? panic+0x38/0xdd
[<...>] ? do_exit+.../...
[<...>] ? redirected_tty_write+.../...
[<...>] ? vfs_write+.../...
[<...>] ? do_group_exit+.../...
[<...>] ? sys_exit_group+.../...
[<...>] ? syscall_call+.../...

my setup is a encrypted LUKS partition, with /, /home and swap encrypted on /dev/sda3 and /boot unencrypted on /dev/sda2.

mounting /home, / and /boot under ubuntu 9.04 liveCD with cryptsetup works fine.

any ideas how i can get my system bootable again?

thanks in advance :)
compul

########UPDATE###########

hey,
on boot-up, before i have to enter my password, he shouts:
Code:

[...]
      Volume group "vg0" not found
      Skipping volume group vg0
Unable to find LVM volume vg0/cryptedroot
Unlocking the disk /dev/disk/by-uuid/48530bc2-3c27-4da1-8735-865c3b7f6319 (sda3_crypt)
Enter Passphrase: _

after entering password, everything i can still read is:

Code:

File descriptor 3 (/conf/conf.d/cryptroot) leaked on lvm invocation. Parent PID 683 /bin/sh
  3 logical volume(s) in volime group "vg0" now active
cryptsetup: sda3_crypt setup successfully
kinit: name_to_dev_t(/dev/disk/by-uuid/d3b68c59-c294-441c-afee-e04954a170c8) = dev(254,1)
kinit: trying to resume from /dev/disk/by-uuid/d3b68c59-c294-441c-afee-e04954a170c8

then it follows the output i wrote at the top. so it seems that something is wrong with my root partition...
any suggestions?

i think im gonna experiment with testdisk if it can do something for it. since i am able to mount it using livedisk, it should be possible to repair it somehow, shouldn't it?

compul 10-24-2009 04:47 PM

ok,
got that solved using the debian rescue cd. choosing the cryptedroot partition as /, i noticed there was no /dev directory. so i simply copied /dev from the liveCD filesystem (mounted cryptedroot as /target) to /target/dev.

but now he says on startup (still most of the above and then):
Code:

INIT: no inittab file found

Enter runlevel:

regardless what i enter, he tells me

Code:

INIT: no more processes left in this runlevel
then nothing happens...

i took a look, there is no /etc/inittab file. copying the disk's one does not solve the problem (some weird stuff appeiring). it seems not just a few things got lost or broke... is there a way to... like 'auto-repair' this kind of thing? or should i just reinstall base-debian and then copy my home, and maybe my root-directory back? or maybe i can just install the system around my existing stuff...

im not sure what i should do. any suggestions? please ...

lg,
compul

compul 10-25-2009 10:51 AM

ok. since i was able to acces my data, i just backed it up and then reinstalled debian. it was too much gone.. :\

lg


All times are GMT -5. The time now is 09:18 PM.