LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-03-2009, 12:56 PM   #1
jjoiner31
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Rep: Reputation: 0
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?


 
Old 09-03-2009, 01:20 PM   #2
j_jerry
Member
 
Registered: Sep 2009
Distribution: fedora 11
Posts: 318

Rep: Reputation: 46
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
 
Old 09-03-2009, 01:28 PM   #3
jjoiner31
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 0
jjerry,

I can open the hardware browser and see them in it.
 
Old 09-03-2009, 01:36 PM   #4
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by jjoiner31 View Post
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?


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

Last edited by centosboy; 09-03-2009 at 01:37 PM.
 
Old 09-03-2009, 01:37 PM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
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.
 
Old 09-03-2009, 07:27 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
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
 
Old 09-04-2009, 10:24 AM   #7
jjoiner31
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 09-05-2009, 03:41 AM   #8
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

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


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
Use Linux Box as Storage for Widows Data Recovery TuxLives Linux - Networking 1 05-28-2009 11:40 AM
backing up data made in a virtual box newbiesforever Linux - Software 3 10-29-2008 12:58 AM
Want to poll data from Windows server to Linux Box for MRTG Graph manoj_sin Linux - Networking 1 04-29-2008 06:46 AM
BSM Data on Linux box..Suggestions? mp3spy Linux - Security 1 07-21-2007 06:59 AM
trouble with data switch box to computers mnm_mc Linux - Hardware 0 09-28-2004 03:05 PM


All times are GMT -5. The time now is 02:37 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