Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
using parted, I accidentally deleted /dev/sda2. Once I realized this (before even exiting parted), I rescued the partition with the rescue command. All seemed good until I rebooted, now I get:
Volume Group "VolGRoup00" not found
... and the machine won't boot.
Is there a way I can get this working again?
edit: If I boot up in knoppix, I can see (using qtparted) that there is a /dev/sda1, /dev/sda-1, /dev/sda2, /dev/sda-2. I can't mount any of them by hand, i.e. "mount /dev/sda1 some_dir" does not work, however, knoppix has somehow mapped the drives to some very long unique id & from those, I can get to all my data.
So my question is this - is there a way to recover this stuff in such a way that this will all work again? I suppose I could copy all of it to another device, make new partitions (non-lvm), copy the data back, then update my grub. That seems a bit convloluted - is there a better way? I'd be happy to just rebuild the lvm, I'm just not sure how.
Which mount points have the data, and what device do they correspond to? It should be able to recover easily.
the mount points that knoppix uses is something like /dev/mapped/dd-1dsjklnfskjnfsdksdui98weu98u - not at all useful. I can't see what the mapped device actually maps to. The file /dev/mapped/dd-1foijosfdijsdfoifsd is no a symbolic link or anything, and is, in fact, empty. I can not mount through the normal mount points i.e. /dev/sda1 or /dev/sda2. I don't know how knoppix has managed to mount it.
I'm really in a bind here - if anyone has a suggestion, please chime in.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.