LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 10-24-2009, 11:06 AM   #1
compul
Member
 
Registered: Aug 2009
Distribution: debian testing / slackware 13.0
Posts: 30

Rep: Reputation: 15
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?

Last edited by compul; 10-24-2009 at 03:41 PM.
 
Old 10-24-2009, 05:47 PM   #2
compul
Member
 
Registered: Aug 2009
Distribution: debian testing / slackware 13.0
Posts: 30

Original Poster
Rep: Reputation: 15
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
 
Old 10-25-2009, 11:51 AM   #3
compul
Member
 
Registered: Aug 2009
Distribution: debian testing / slackware 13.0
Posts: 30

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

lg
 
  


Reply

Tags
panic


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need clarification on `fsck` under single-user mode taiwf Solaris / OpenSolaris 6 09-15-2009 03:16 AM
Sarge corrupted raid 1, forced fsck stops checking rguyler Debian 1 02-12-2009 10:41 PM
Need help using Rescue Mode - How to fsck(power outage caused kernal panic on bootup) Arodef Red Hat 3 04-16-2006 12:44 PM
Need help using Rescue Mode - How to fsck(power outage caused kernal panic on bootup Arodef Linux - Software 1 04-08-2006 02:54 AM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 08:51 AM


All times are GMT -5. The time now is 08:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration