LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-11-2015, 03:59 PM   #1
Alfuxx
LQ Newbie
 
Registered: Oct 2015
Posts: 4

Rep: Reputation: Disabled
Sata hdd awol


I recently installed Linux (manjaro)

Unplugged a HDD before installation.

Plugged it back in after installation. It no longer appears.

How could I possibly locate it On the system again.
 
Old 10-12-2015, 12:28 AM   #2
robertdaleweir
Member
 
Registered: Jul 2006
Location: Canada
Distribution: Fedora
Posts: 93

Rep: Reputation: 11
Quote:
Originally Posted by Alfuxx View Post
I recently installed Linux (manjaro)

Unplugged a HDD before installation.

Plugged it back in after installation. It no longer appears.

How could I possibly locate it On the system again.
Hi Alfuxx
You could open a terminal and logon as root.
Code:
su -
and enter 'root' password. You should have a # appear in the terminal which means that you are root user. Run
Code:
fdisk -l
and see if your HDD shows up. I assume that it is connected by USB and it should be seen with this command.
Cheers...
Robert
 
Old 10-12-2015, 01:40 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You can also try the
Code:
lsblk

blkid
cmds
 
Old 10-12-2015, 06:14 AM   #4
Alfuxx
LQ Newbie
 
Registered: Oct 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Internal hard drive

It is an internal hard drive not showing up on terminal...

Code:

fdisk -l
 
Old 10-12-2015, 08:35 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,499

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Re-check the connections on both ends. Does it show in the BIOS?
 
Old 10-12-2015, 08:39 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
probably it has another name (as it was before installation). But first, yes, check if BIOS could see it.
 
Old 10-12-2015, 11:38 AM   #7
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Quote:
Plugged it back in after installation. It no longer appears.
So, where did it appear BEFORE the installation? Was it seen by a different OS before you unplugged it and installed Manjaro?

What is the ID of the drive you disconnected; sata_1, sata_2 or what? (That's the motherboard ID, not what's reported by the OS.)
As above, what is the ID of the drive Manjaro is installed on?

I reckon your Manjaro system, including the boot loader is all on the one drive (The only one you had attached during install) You'd therefore need to mount the drive you had disconnected (which the system doesn't know about) and add it back into fstab.

My

Play Bonny!

 
Old 10-12-2015, 01:01 PM   #8
Alfuxx
LQ Newbie
 
Registered: Oct 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Not Visible

The elusive HDD does not appear in the Bootloader.

Before the installation it was visible alongside C drive, on a windows install.

So mounting this drive that can't be found. How could I do this?
and adding it to fstab?
would this be done through the BIOS, or with the system fully on?

many thanks
 
Old 10-12-2015, 01:35 PM   #9
Alfuxx
LQ Newbie
 
Registered: Oct 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Smile Sata port

So the SATA cable was plugged into a different port than it originally was.

It has now been put back into its old, original position and shows in BIOS, YAY.

All files are still in one piece and accessible. Thanks for The Help,

So the Port made a difference to the HDD existence? strange must be installed there on a deep level.
 
Old 10-12-2015, 01:45 PM   #10
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
It only makes a difference to the BIOS.

Mine wouldn't recognize SAS connections until I directed it to include that as well as the SATA connections it DID recognize.
 
Old 10-12-2015, 05:24 PM   #11
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Quote:
So the Port made a difference to the HDD existence? strange must be installed there on a deep level.
Yup! you can't just plug disks back in any old where after building a system as you'll screw up the path to the disk.

Similarly if you have a multi-disk RAID set, you can't just swap a couple of the disks in the RAID around and expect the RAID to function, you've screwed up the hardware configuration The RAID software knows it's wrong but you can't mount the RAID volume till the disks are in the correct positions.

Play Bonny!

 
Old 10-12-2015, 05:59 PM   #12
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Well, most raid configurations put configuration information on the disks/partitions used.

That information is SUPPOSED to permit any ordering of the physical disks to allow the RAID to be rebuilt.

This is what happens when a connection quits working for some reason - plug the disk into a different port and the controller reassembles the raid.

It is also the advantages of software raid - plug the disk into any controller, and the system should be able to reassemble the raid set.

That is what happens with LVM. First the partitions are identified by the kernel, then the software uses the UUIDs of the various partitions that have LVM raid to assemble the volume.
 
Old 10-12-2015, 07:30 PM   #13
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Quote:
Well, most raid configurations put configuration information on the disks/partitions used.

That information is SUPPOSED to permit any ordering of the physical disks to allow the RAID to be rebuilt.
I've only ever dealt with hardware RAIDS; HP SmartArrays, Sun T3s, StorEdge 3000s etc, Yup, old stuff. It never worked for me at 03:00 in the morning when I got called out and managed to mix up a couple of disks.
I agree, each disk has information written to it on a small system partition which defines where the disk exists in the RAID. Software RAIDS? I have no real experience so I'll take your word for it.

Play Bonny!

 
Old 10-12-2015, 08:51 PM   #14
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by Soadyheid View Post
I've only ever dealt with hardware RAIDS; HP SmartArrays, Sun T3s, StorEdge 3000s etc, Yup, old stuff. It never worked for me at 03:00 in the morning when I got called out and managed to mix up a couple of disks.
I agree, each disk has information written to it on a small system partition which defines where the disk exists in the RAID. Software RAIDS? I have no real experience so I'll take your word for it.

Play Bonny!

Most of my hardware raid was with NetApp and some old Sun products. In those, it didn't matter where you put the disks in the rack. The raid systems used up to about 10MB of each disk to hold the information - up to 10 was because the NetApp devices also booted from them. The Sun raid stored data in NVRAM and on disk. That way it could rebuild using hot spares quickly.

At one level or another, all raids are software driven - the software runs in the raid controller, and then presents an image of a disk/partition rather than a POD.

The problem I've had with hardware raids is that the recovery is a bit out-of-control. In the simple raid controllers, SOMETHING has to direct the controller - and the software that does that has not been portable, nor available for all systems that may be connected to the controller. And that makes it hard to recover from failures. The one I have (disabled) is a MegaRaid driver. The first disks I put in (for testing) got marked - and would not work at all when connected to a non-MegaRaid controller (something about the identification caused problems) until AFTER I overwrote the first 5 MB of the disks - worked fine then).

The NetApp systems I used (some of their smallest) were all based on BSD... and they presented a network connection rather than a hard disk connection. So they counted (at least by me) as a software raid.

My current disk support uses btrfs for raid support (raid 1 right now), but the system has to look for the UUIDs of the disks to identify what partitions to use and how to use them - Linux can't guarantee the device identification - as it does scans in parallel, and it depends on what disk spins up first as to the identification given. Yes, rules for udev can be used to make things the same - but you are still depending on data on the disk - like the disk serial number. Then give it a name - which will not identify how the device is plugged in...

I used to like the old Solaris naming: /dev/dsk/c<x>t<y>d<z>s<n> Where c stood for controller, t for target, d for disk, s for slice (a SCSI target could have up to 16 disks attached, though usually only one was). You could always know which physical disk had what function that way. Oh well, I've accepted that the Linux way is more flexible...
 
Old 10-13-2015, 06:20 AM   #15
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Quote:
used to like the old Solaris naming: /dev/dsk/c<x>t<y>d<z>s<n> Where c stood for controller, t for target, d for disk, s for slice (a SCSI target could have up to 16 disks attached, though usually only one was). You could always know which physical disk had what function that way.
Ah, Yes... Happy days.

The CnTnDn identification was always good for identifying which disk had failed, especially in the 16 disk rack in the front of an Enterprise 450.
Invariably when the system had been built the SCSI cards hadn't been set up properly to allow the disk-associated-led to show the duff disk The disks therefore weren't always where you thought but were still in groups of four. We always used to get a read/analyse run on one of the disks either side of the faulty one (ready light dims/flickers, good disks led solid) to identify the culprit.

Play Bonny!

 
  


Reply



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
Connect 3.5" SATA HDD to Laptop directly over SATA into bay (not Firewire and USB) browny_amiga Linux - Hardware 15 12-07-2012 04:33 PM
adding SATA ext3 HDD into new Suse11.4 box with ext4 system HDD Mail2me Linux - Hardware 4 10-26-2011 07:47 PM
Install Debian Dist on sata hdd with sata dvdrw ? helixis Linux - Hardware 1 09-20-2008 11:50 AM
Installing ATA/IDE HDD on SATA HDD System Drahcir Linux - Hardware 10 05-31-2006 02:32 AM
Dual HDD Interface Problem, Linux on SATA, NTFS Part on IDE HDD LILO Not Loading Blade44 Linux - Hardware 2 02-01-2005 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:47 AM.

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