Operating System - Linux
1826440 Members
3938 Online
109692 Solutions
New Discussion

Re: Can't mount lvols. Device files missing.

 
Runar Jørgensen
Frequent Advisor

Can't mount lvols. Device files missing.

Greetings

After a mishap, I cannot mount any logical
volumes. The only thing left in /dev is
/dev/vg00 and /dev/vg00/group. Filesystems with lvols are intact, vg00 is active. vgdisplay
reports 5 lvols ok. pvscan reports are similar.
I tried to figure out major and minor numbers for a mknod command. Doing
# mknod /dev/vg00/lvol5 b 58 0x000000
didn't help much. Device file was created, but I couldn't mount.

How can I recreate the device files for my lvols?

Btw: The system is running of a Gentoo LiveCD. System doesn't boot. I don't need system to boot. Just need to rescue files from lvols.

Regards,
Runar Jørgensen
4 REPLIES 4
Alpha977
Valued Contributor

Re: Can't mount lvols. Device files missing.

Hello!

In the past, i have recovered more files on a Linux hard-drive corrupt, with Slax.
The mount was automatical.
Slax is a Linux-Live distribution, it have Samba too, for copy the files recovered on a Windows pc.

Try it, it is so small, like 150mb.
Heironimus
Honored Contributor

Re: Can't mount lvols. Device files missing.

Have you tried vgscan?
Runar Jørgensen
Frequent Advisor

Re: Can't mount lvols. Device files missing.

Greetings

The Ubuntu LiveCD seems to do the same trick as Slax. Had one at hand. :-)

Yes, I've tried vgscan. However I did learn to use the following with success:

# vgscan
# vgimport
# vgchange -a y

Now I can mount.
Thanks for the pointers.
Runar Jørgensen
Frequent Advisor

Re: Can't mount lvols. Device files missing.

Ref. comments above.