LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how can I get data off HD from a different linux box (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-get-data-off-hd-from-a-different-linux-box-752440/)

jjoiner31 09-03-2009 11:56 AM

how can I get data off HD from a different linux box
 
Hello all I am a nube to linux not that I wanted to use it but the person who was using it at my small company decided that he would start his own business and leave me with no support for my linux boxes.

they ran fine for months then last week I tried to get onto one of them and it just has a black screen and the cursor flashes in the upper left window and never runs through the boot kernel. (like the other box does)

the boxes are almost identical in hardware the only difference is the HDD.

I have already tried pulling the hd from one and swapping with the other with the result being now the same good hd boots the other does not.

I can place them in the same box the good hd boots and I can get in and see that the other hd is there but how can I access the data on it?


:newbie:

j_jerry 09-03-2009 12:20 PM

Seems like your os in bad hdd is corrupted.

How do you know that it is there(the bad hdd)? can you see it in your linux?
Just open up partition editor or something if its connected properly you can see it there

jjoiner31 09-03-2009 12:28 PM

jjerry,

I can open the hardware browser and see them in it.

centosboy 09-03-2009 12:36 PM

Quote:

Originally Posted by jjoiner31 (Post 3668505)
Hello all I am a nube to linux not that I wanted to use it but the person who was using it at my small company decided that he would start his own business and leave me with no support for my linux boxes.

they ran fine for months then last week I tried to get onto one of them and it just has a black screen and the cursor flashes in the upper left window and never runs through the boot kernel. (like the other box does)

the boxes are almost identical in hardware the only difference is the HDD.

I have already tried pulling the hd from one and swapping with the other with the result being now the same good hd boots the other does not.

I can place them in the same box the good hd boots and I can get in and see that the other hd is there but how can I access the data on it?


:newbie:

you will need to create a new folder on the good hd and mount the corrupt hd to this new folder.


on good hard disk

Code:

mkdir dirname
then

Code:


mount -t ext3 /bad/hd dirname

then

Code:

cd dirname

you can find out the device name for the bad tailing dmesg


Code:

dmesg

Wim Sturkenboom 09-03-2009 12:37 PM

With both HDs in one machine that boots, can you post the outputs of fdisk -l (lowercase L). With two disks you will get something like
Code:

wim@desktop1:~$ sudo fdisk -l
[sudo] password for wim:

Disk /dev/sda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2e192e18

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        3264    26218048+  7  HPFS/NTFS
/dev/sda2            3265      26892  189791910    f  W95 Ext'd (LBA)
/dev/sda5            3265        7180    31455238+  7  HPFS/NTFS
/dev/sda6            7181      10444    26218048+  b  W95 FAT32
/dev/sda7          10445      13708    26218048+  83  Linux
/dev/sda8          13709      13838    1044193+  82  Linux swap / Solaris
/dev/sda9          13839      26892  104856223+  83  Linux

Disk /dev/sdb: 4127 MB, 4127195136 bytes
16 heads, 32 sectors/track, 15744 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Disk identifier: 0xbf164fee

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1              1      15744    4030448    c  W95 FAT32 (LBA)
wim@desktop1:~$

You might need root permissions to run the command (e.g. in Ubuntu you need to use sudo as shown), in other distros it either works or you need to login as root.

chrism01 09-03-2009 06:27 PM

Also, if you can tell us what the Linux distribution is, that'd be handy.
Basically the name and version.

Try

uname -a

at the cmd line to start with. Also, most systems have a file with the word 'release' in the name under the /etc dir eg on a RedHat system it'd be

/etc/redhat-release

If you can find it, please post the content. Try looking with

ls /etc/*release*

and show us what you get from that. Note that you'll need to be logged in as root (the admin user aka superuser).

You might find these links informative
http://linux.oneandoneis2.org/LNW.htm
http://rute.2038bug.com/index.html.gz

jjoiner31 09-04-2009 09:24 AM

it says " Linux localhost.localdomain 2.6.22.14-72 #1 SMP wed Nov 21 15:12:59 EST 2007 i686 athalon i386 GNU/Linux

Wim Sturkenboom 09-05-2009 02:41 AM

That last info unfortunately does not reveal your distro. Can you answer all 'questions' that we've asked so we can help you further?

Unless you've already solved it in which case it's appreciated by people that will run into the same issue if you post the solution.


All times are GMT -5. The time now is 12:27 AM.