LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-14-2009, 08:47 PM   #1
redcell03
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
Unhappy URGENT Need access to hard drive


Well i keep digging myself deeper in the hole.

I made a mistake using chown and set everything(and i mean everything) to root ownership, that created problems with my samba share(which was working fine before this), so i tried to change the ownerships to 777 to just gain access and transfer my files back to the original system. That did not work due to the ownership problem.
I was pretty much screwed at that point because i knew that i would have to reinstall to set ownership and permissions back to the defaults.
So now i tried to install the hard drive on my windows machine and use some software that lets you read files from linux partitions, problem is when i installed linux on the hard drive(s) their were two.

One 160gb and a 1TB, so apparently the filesystem was spread across the two(not really sure how this works) So there is no root on the 1TB HD and i thought that i could reinstall linux on the 160gb HD and still be able to mount the second hard drive to gain access to the files. That doesn't work either because it says that i have no filesystem on the hard drive.

I have over 500gb of very important data that was supposed to be my backup. Now i don't even know what i could possibly do to gain access to the files to put them back on my windows machine so i can do a fresh install without losing the data.
Please someone tell me there is a solution to this, i am completely screwed if i cannot get this data back.

-redcell03
 
Old 02-14-2009, 09:26 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Which distro did you use? If you used Fedora or CentOS, they often partition the drives with logical volume management for some reason. You probably need to boot off of a live CD (preferably the rescue disk for your distribution). Before doing so, put both drives back into the Linux system installed the same way (i.e. plugged into the same ATA or SATA channels, with the correct master/slave setting if using regular ATA). If you do have things partitioned with LVM, hopefully they will be mounted automatically so you can copy your data off. If your partitions aren't mounted automatically, I suggest doing fdisk -l to see what partitions are available on your disk. Please post the results here if you do not know how to try and manually mount the partitions.

Whatever you do don't do something unless you fully understand the consequences. That is the surest way to run int otrouble. If possible, I'd suggest dd'ing both hard drives onto back-up media before proceeding further, in case you really do manage to mess something up.
 
Old 02-15-2009, 01:51 AM   #3
redcell03
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Original Poster
Rep: Reputation: 0
I used the latest centos and because of a problem with the video driver(no support) i had to use text based to do the original install and as i'm sure you are aware i could not even break it into partitions which is what i wanted to do originally, and my stuff would have been fine. But since it was with the lvm(i could only do one volgroup) everything was split between the two drives.

I have already reinstalled on the first hard drive, and cannot mount the second one it keeps telling me that there is not a valid partition i've tried ext2 ext3, and i know for a fact that when i did the first install it said ext3 filesystem.

i fdisked and both hard drives show up as sda1 and sdb1, and i used pvs and it says that there is no volgroup attached to sdb1(1tb HD), also i'm a little worried in the fact that it says psize = 931.51g Pfree = 931.51g does that mean that my data is already lost? The wierd thing to me is the fact that after this second installation(on which i only used sda1 for) nothing should have been formatted or changed to the data.

I don't know how to mount lvm partitions(especially without volgroup)
could you please walk me through (only if there is a possibility of getting my data back)
 
  


Reply


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
*urgent* hard drive going bad davidstvz Linux - Newbie 18 11-12-2008 01:41 PM
URGENT: Hard drive is dying, need migration AngryLlama Linux - General 12 11-27-2004 11:31 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 01:01 PM
Hard Drive Help - Urgent quarryman Linux - General 21 10-18-2003 08:24 PM
urgent .. is my hard drive corrupted? doublefailure Linux - Hardware 4 09-15-2002 09:37 PM


All times are GMT -5. The time now is 06:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration