LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-05-2011, 02:34 AM   #1
cann
LQ Newbie
 
Registered: May 2011
Posts: 17
Blog Entries: 1

Rep: Reputation: Disabled
Exclamation Linux Disk Partitions Problem


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.

When I try to boot up my machine, I get kernel panic error and it looks like this:
http://img856.imageshack.us/img856/690/unledwdb.jpg

Could you guys please help me about that?
How can I use this machine again?


Thank you.
 
Old 11-05-2011, 02:41 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
... Well you speak french pretty well ;-)

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?
 
1 members found this post helpful.
Old 11-05-2011, 03:52 AM   #3
cann
LQ Newbie
 
Registered: May 2011
Posts: 17

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Thank you fukawi1!
I think you wanted to write English instead of French :P but I just started to learn French anyways )

When I access rescue mode, it says: http://i.imgur.com/bVPqn.jpg
fdisk -l: http://i.imgur.com/UwTUP.jpg
 
Old 11-05-2011, 04:03 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Try "parted -l"
 
1 members found this post helpful.
Old 11-05-2011, 04:11 AM   #5
cann
LQ Newbie
 
Registered: May 2011
Posts: 17

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
I did, but just give me error
check that out: http://i.imgur.com/ZqHYn.jpg
 
Old 11-05-2011, 04:17 AM   #6
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
What did you do to "change partitions"?

I am making a wild guess here, that you may have changed the partitions without re configuring the LVM first?

I am not sure if the recovery console will give you access to LVM tools. If it doesn't boot into a live cd, and run:
Code:
# pvdisplay
# lvdisplay

Last edited by fukawi1; 11-05-2011 at 04:19 AM.
 
1 members found this post helpful.
Old 11-05-2011, 05:00 AM   #7
cann
LQ Newbie
 
Registered: May 2011
Posts: 17

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
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
 
Old 11-05-2011, 05:10 AM   #8
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
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.
 
1 members found this post helpful.
Old 11-05-2011, 05:20 AM   #9
cann
LQ Newbie
 
Registered: May 2011
Posts: 17

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
All right, I'm downloading TRK now. I think I have changed the partitions without configring the LVM first.
I'm not sure what I did actually. :S
 
Old 11-05-2011, 05:29 AM   #10
rohmdk
LQ Newbie
 
Registered: Nov 2011
Distribution: CentOS
Posts: 6

Rep: Reputation: Disabled
Smile

Please visit this side you will got your answer
linuxdocs.org
 
1 members found this post helpful.
Old 11-05-2011, 05:30 AM   #11
cann
LQ Newbie
 
Registered: May 2011
Posts: 17

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
I use pvdisplay and lvdisplay now.

Please check that out:
http://i.imgur.com/S0MaQ.jpg

and this one:
http://i.imgur.com/OyKtS.jpg
 
Old 11-05-2011, 05:59 AM   #12
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
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..
 
1 members found this post helpful.
Old 11-05-2011, 06:30 AM   #13
cann
LQ Newbie
 
Registered: May 2011
Posts: 17

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
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.

So Can I just access sda2?

Last edited by cann; 11-05-2011 at 06:32 AM.
 
Old 11-05-2011, 06:41 AM   #14
cann
LQ Newbie
 
Registered: May 2011
Posts: 17

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
I've just tried to mount sda2 but I got error massage

mount /dev/sda2 /test
mount: unknown filesystem type 'LVM2_member'
 
Old 11-05-2011, 07:03 AM   #15
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
you wont be able to mount the sda2 partition as it is only a container for the lvm...

but you CAN try mounting /dev/VolGroup00/*, as these devices are what will actually contain the filesystem...
 
1 members found this post helpful.
  


Reply



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
LXer: Guide to disks and disk partitions in Linux LXer Syndicated Linux News 0 09-18-2011 06:41 AM
[SOLVED] Problem with two SATA disks:counldn't find partitions in the second disk bingmou Linux - Hardware 10 09-01-2010 10:01 PM
Init Scripts are broken problem while mounting the hard disk partitions using ntfsmou nikunjchaudhary Linux - Desktop 1 07-26-2010 05:29 AM
BIOS settings and Linux Disk Partitions solletica Linux - Newbie 2 11-22-2005 01:55 AM
How to erase your hard disk with Linux partitions on it 357mag Mandriva 10 03-16-2005 08:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:02 AM.

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
Open Source Consulting | Domain Registration