LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-21-2022, 11:33 PM   #1
j.young
LQ Newbie
 
Registered: Aug 2020
Posts: 15

Rep: Reputation: Disabled
mounting an old centos drive?


I have a hard drive from an old centos computer, and I'm trying to mount it as an external hard drive to get the data, but it's not showing up as a normal device. I have it hooked up to a usb/sata interface that has worked with other drives.

On my debian machine, one partition shows up on the desktop, and when I click on it I'm prompted to mount /dev/loop3 as an administrator. However, once inside this drive I can't find the home folder, and the file system looks only vaguely like a linux system.

On my gentoo machine, no new device appears in /dev when this drive is plugged in. I believe that this drive has a gpt partition.

Any ideas?
 
Old 11-22-2022, 08:12 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,637

Rep: Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279
What version of CentOS? Is it using LVM?

With the drive connected to the debian machine post the output of the lsblk command.
 
Old 11-22-2022, 02:52 PM   #3
j.young
LQ Newbie
 
Registered: Aug 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
It's centos 7. Not sure about LVM. Here's the output of lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 114.9M 1 loop /snap/core/14056
loop1 7:1 0 115M 0 loop /snap/core/13886
loop2 7:2 0 373.8M 1 loop /snap/anbox/186
loop3 7:3 0 310.8M 1 loop
nvme0n1 259:0 0 119.2G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
├─nvme0n1p2 259:2 0 114.8G 0 part /
└─nvme0n1p3 259:3 0 4G 0 part [SWAP]
 
Old 11-22-2022, 03:01 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,637

Rep: Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279
If the drive is connected then it isn't being recognized. I would expect it to be assigned /dev/sda device ID. A desktop SATA drive would require external power separate from the USB adapter. I am not sure what loop3 is all about. Check the output of the dmesg command to look for the drive and loop3 messages

CentOS 7 would use LVM by default unless you selected another partitioning scheme.
 
Old 11-22-2022, 09:51 PM   #5
j.young
LQ Newbie
 
Registered: Aug 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
Hmm, there's nothing in dmesg that seems linked to this drive.

Indeed, I have it in an enclosure that provides extra power. I've been able to mount other 3.5" drives using this method, although I guess it's not impossible that this drive needs even more power that it's not getting.
 
Old 11-22-2022, 10:04 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,637

Rep: Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279
Does the output of the lsusb command show the usb adapter.
Do you see anything in the output of dmesg pertaining to the adapter?
 
Old 11-23-2022, 01:14 PM   #7
j.young
LQ Newbie
 
Registered: Aug 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
Okay, it looks like the debian system wasn't actually detecting the drive after all. The first sign was when lsusb returned exactly the same output with/without the drive plugged in. When I unplugged the drive and clicked on the icon to open it, it still opened. I am actually not sure what I'm opening. It's reporting as a 318MB drive, with a file system that looks kind of like a root file system. This particular debian machine is a surface pro 4, which I had to monkey with quite a lot to get debian installed properly, so it's possible that this is some relic of a failed install.

Anyway, the short story is that nether computer seems to detect this drive. That really seems to imply that it's a hardware problem, like not getting enough power or the like. That is kind of weird since other drives have worked with this enclosure. Any other thoughts?

Last edited by j.young; 11-23-2022 at 01:15 PM.
 
Old 11-23-2022, 01:51 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,637

Rep: Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279Reputation: 6279
Usually the bridge i.e the actual USB to SATA adapter is powered via USB and the external power is for the drive itself. If lsusb shows nothing then it probably is an enclosure problem.
 
Old 11-23-2022, 06:44 PM   #9
j.young
LQ Newbie
 
Registered: Aug 2020
Posts: 15

Original Poster
Rep: Reputation: Disabled
Yup, I just tried a different enclosure, and it works fine. Thanks for helping me figure that out!
 
  


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
partitioning drive and mounting old home on new drive Peter Shepard Ubuntu 3 10-22-2007 04:10 PM
Old, old, old laptop just wondering.... Butler615 Linux - General 2 09-02-2007 03:01 PM
New install on new hard drive messed up old install of old hard drive. AbsoluteMonkey Linux - General 26 01-10-2007 12:21 PM
want linux for an old old old pc angryfirelord Linux - Distributions 5 05-20-2006 12:22 PM
big plans for old old old laptop vdogvictor Linux - Laptop and Netbook 0 05-26-2004 07:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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