Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Hi Everybody,
I really need help right now. I've read lots of online-manual but I couldn't figure-out because my English is not very good and I'm really pissed off right now
I have CentOS server and I've changed partitions and everything is f...cked up now.
I have reallyyyyy important files on this machine so I have to recovery them.
First things first, can you boot to a live CD and try to mount the partitions containing the data, and copy them off to a USB drive, or network share..
Booting to a live cd, will at least get you to a command line so we can see what happened.
What did you do to the partition tables that caused the problem?
I can't use those commands on rescue mode.
Live CD's mean: the CD which is works without installation on Harddisk right?
I wanted to download it from http://projects.centos.org/trac/livecd/ but I can't open-up this page. Wierd
I would recommend you download TRK, burn it to a CD, and reboot using it.. There will be an option to drop to a shell, and from there, you can run the commands above.
Ok..
Would still be really handy to know what you did?
What do you mean by
Quote:
I have CentOS server and I've changed partitions
What exactly did you do?
It would appear to me you have corrupted the partition table. That is why lvdisplay is giving you the "cant find device with uuid" error..
http://www.gnu.org/software/parted/m...toc.html#TOC24
have a read through that, and the man page for "parted", which should be on the TRK CD. parted has a recovery option. Which I believe scans the drive looking for the start/finish of filesystems, and tries to recreate the partition table based on that.
I am not certain how this works with LVM though..
fukavi1, thanks for everything.
Well I used to have couple of OS on my disk and also different partitions for them and I just delete one of them.
After that I added this partition as a sda3 on my server. It's worked very well and I've never had any problem at all.
After that I deleted different os again and I extended sda3 and after that, everything is f..cked up.
sda1 for boot I guess
sda2 is supposed to be my data partition I meant my all files in there and I have to get them back
sda3 is my extra space that I just tried to added.
I also tried to add some volumegroup as well and I don't remember what exactly I did.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.