LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 04-16-2010, 12:12 PM   #1
seabro
LQ Newbie
 
Registered: Jan 2010
Posts: 20

Rep: Reputation: 0
Mounting a second HDD to recover data.


Hi,

I wanted to get some data off a second disk, let me tell you what I did. (that didn't work).

The data I am looking for is under /etc/ on the second disk.

I looked in /dev for /dev/hda or hdb but there was nothing.

I found:
/dev/sda
/dev/sda1
/dev/sda2
/dev/sdb
/dev/sdb1
/dev/sdb2

So I guessed /dev/sdb /dev/sdb1 /dev/sdb2 was the second disk.

So I did:
mkdir /tmp/olddisksdb
mkdir /tmp/olddisksdb1
mkdir /tmp/olddisksdb2

Then I did
mount /dev/sdb /tmp/olddisksdb and got mount: you must specify the filesystem type
mount /dev/sdb1 /tmp/olddisksdb1 and got no feedback (good?)
mount /dev/sdb2 /tmp/olddisksdb2 and got mount: you must specify the filesystem type

If I do:
ls /tmp/olddisksdb - I get nothing.
ls /tmp/olddisksdb2 - I get nothing
ls /tmp/olddisksdb1 - I get:

config-2.6.18-128.el5 symvers-2.6.18-128.el5.gz
config-2.6.18-164.9.1.el5 symvers-2.6.18-164.9.1.el5.gz
grub System.map-2.6.18-128.el5
initrd-2.6.18-128.el5.img System.map-2.6.18-164.9.1.el5
initrd-2.6.18-164.9.1.el5.img vmlinuz-2.6.18-128.el5
lost+found vmlinuz-2.6.18-164.9.1.el5
message

This is a CentOS box, any help greatly appreciated.


Seabro
 
Old 04-16-2010, 12:15 PM   #2
brucehinrichs
Member
 
Registered: Mar 2008
Location: US
Distribution: Debian Sid; Sabayon, UbuntuStudio, Slackware-multilib 13.1, Peppermint Ice, CentOS
Posts: 575

Rep: Reputation: 67
What is the output of fdisk -la?

Last edited by brucehinrichs; 04-16-2010 at 12:15 PM. Reason: changed -l to -la
 
Old 04-16-2010, 12:45 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,984
Blog Entries: 54

Rep: Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742
Quote:
Originally Posted by seabro View Post
mount /dev/sdb /tmp/olddisksdb and got mount: you must specify the filesystem type
mount /dev/sdb1 /tmp/olddisksdb1 and got no feedback (good?)
mount /dev/sdb2 /tmp/olddisksdb2 and got mount: you must specify the filesystem type

If I do:
ls /tmp/olddisksdb - I get nothing.
ls /tmp/olddisksdb2 - I get nothing
ls /tmp/olddisksdb1 - I get:

config-2.6.18-128.el5 symvers-2.6.18-128.el5.gz
/dev/sdb is the WHOLE disk: that gets you nothing because it shouldn't be mounted that way and that's OK. Note if 'fdisk -la' does not work just use 'fdisk -l /dev/sdb' or 'partx -l /dev/sdb'. What's interesting is the partition type of primary /dev/sdb2. Is it LVM by any chance?
 
Old 04-16-2010, 03:43 PM   #4
seabro
LQ Newbie
 
Registered: Jan 2010
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by brucehinrichs View Post
What is the output of fdisk -la?
Thanks for your help guys.

[root@Asterix ~]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 60801 488279610 8e Linux LVM

Disk /dev/sdb: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 83 Linux
/dev/sdb2 14 9726 78019672+ 8e Linux LVM
[root@Asterix ~]#
 
Old 04-16-2010, 04:03 PM   #5
brucehinrichs
Member
 
Registered: Mar 2008
Location: US
Distribution: Debian Sid; Sabayon, UbuntuStudio, Slackware-multilib 13.1, Peppermint Ice, CentOS
Posts: 575

Rep: Reputation: 67
Quote:
/dev/sdb2 14 9726 78019672+ 8e Linux LVM
Points for unSpawn for the correct answer!

@seabro: Check out this link, I think it will explain it for you. Post back with any further questions.
 
1 members found this post helpful.
Old 04-17-2010, 03:06 AM   #6
seabro
LQ Newbie
 
Registered: Jan 2010
Posts: 20

Original Poster
Rep: Reputation: 0
Thank you very much fellas, all sorted now. :-)
 
Old 04-17-2010, 02:30 PM   #7
brucehinrichs
Member
 
Registered: Mar 2008
Location: US
Distribution: Debian Sid; Sabayon, UbuntuStudio, Slackware-multilib 13.1, Peppermint Ice, CentOS
Posts: 575

Rep: Reputation: 67
Glad to hear it! Now please mark the thread as [SOLVED].
 
  


Reply

Tags
mount


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
Laptop HDD messed up - can i recover the files somehow? brinstar Linux - Hardware 8 08-21-2007 01:02 AM
recover data from formatted hdd sebastiano Linux - General 5 03-27-2006 08:40 AM
Advice needed on transferring data from HDD to HDD denimglen Linux - Newbie 3 03-04-2006 07:33 PM
Trying to recover HDD space after new kernel compilation adriaanbw Linux - Software 7 10-11-2005 07:06 PM
Software to acess and recover data on Fat32 data NeoSpawn Linux - Software 2 09-04-2005 11:37 AM


All times are GMT -5. The time now is 06:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration