Author Topic: Installing 2nd hard drive in existing linux computer [SOLVED]  (Read 382 times)

0 Members and 1 Guest are viewing this topic.

Offline emp1953

  • Jr. Member
  • **
  • Posts: 16
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Installing 2nd hard drive in existing linux computer [SOLVED]
« on: January 11, 2022, 06:23:49 pm »
I have installed a 2nd SATA 500Gb hard drive in my existing Fedora 19 computer.  How do I get the OS of recognize and use this new HD?
Thank You all for any help
« Last Edit: January 14, 2022, 03:03:19 pm by emp1953 »

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1577
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Installing 2nd hard drive in existing linux computer
« Reply #1 on: January 11, 2022, 06:39:18 pm »
Hi Emp53 - and welcome to the Forum.

Once the new HDD is attached, it should appear listed in your file manager. 
I am not familiar with Fedora but if it works anything like Ubuntu, you can also check with the following command:
Code: [Select]
 df | grep "/dev/sd"
This should list drives sda1 and sdb1

By the way; is the new HDD external or internal?

Keith

The Linux Community Forum

Re: Installing 2nd hard drive in existing linux computer
« Reply #1 on: January 11, 2022, 06:39:18 pm »

Offline emp1953

  • Jr. Member
  • **
  • Posts: 16
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Installing 2nd hard drive in existing linux computer
« Reply #2 on: January 11, 2022, 06:41:24 pm »
It is internal installed on the SATA3 connector on the motherboard.  Seagate New in box.

Offline emp1953

  • Jr. Member
  • **
  • Posts: 16
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Installing 2nd hard drive in existing linux computer
« Reply #3 on: January 11, 2022, 06:42:57 pm »
The results of that ls | grep command only show sda1.  nothing else.

Offline emp1953

  • Jr. Member
  • **
  • Posts: 16
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Installing 2nd hard drive in existing linux computer
« Reply #4 on: January 11, 2022, 06:50:19 pm »
Under activities there is a "disks" utility that is a gui representation of whats in the system.  This utility shows two 500Gb seagate hard drives,  the first one listed as the master boot record and is the one that I assume I boot from and contains my Fedora OS.  its device Id is /dev/sda1 and shows a mounting location
The second device Id is /dev/sdb  this does not show a mounting location.   If it is /dev/sdb then do I simply need to mount the device, if so, where should I mount it?

The Linux Community Forum

Re: Installing 2nd hard drive in existing linux computer
« Reply #4 on: January 11, 2022, 06:50:19 pm »

Offline emp1953

  • Jr. Member
  • **
  • Posts: 16
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Installing 2nd hard drive in existing linux computer
« Reply #5 on: January 11, 2022, 06:53:06 pm »
By the way the HD box does not say whether it is formatted.

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1577
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Installing 2nd hard drive in existing linux computer
« Reply #6 on: January 11, 2022, 07:07:05 pm »
1. First of all, please copy and paste the output from the df command that you entered so that we can see what's happening.

2.
Quote
By the way the HD box does not say whether it is formatted
I presume you mean the box it came in.  But it will be formatted. 

Offline emp1953

  • Jr. Member
  • **
  • Posts: 16
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Installing 2nd hard drive in existing linux computer
« Reply #7 on: January 11, 2022, 07:08:49 pm »
output from "fdisk -l"

[email protected] ~]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000510f7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     1026047      512000   83  Linux
/dev/sda2         1026048   976773119   487873536   8e  Linux LVM

Disk /dev/sdb: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/fedora_new--host--7-swap: 4177 MB, 4177526784 bytes,
8159232 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/fedora_new--host--7-root: 53.7 GB, 53687091200 bytes,
104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/fedora_new--host--7-home: 441.7 GB, 441714737152
bytes, 862724096 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1577
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Installing 2nd hard drive in existing linux computer
« Reply #8 on: January 11, 2022, 07:40:08 pm »
Quote
Disk /dev/sdb: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
This looks good.
Now please execute my suggestion:
Code: [Select]
 df | grep "/dev/sd"
and post the output here. It's best to copy the output and paste it here, rather than just typing it. 

The Linux Community Forum

Re: Installing 2nd hard drive in existing linux computer
« Reply #8 on: January 11, 2022, 07:40:08 pm »

Offline emp1953

  • Jr. Member
  • **
  • Posts: 16
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Installing 2nd hard drive in existing linux computer
« Reply #9 on: January 11, 2022, 08:46:52 pm »
[email protected] ~]# df | grep "/dev/sd"
/dev/sda1                               487652    103222    354734  23% /boot


Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1577
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Installing 2nd hard drive in existing linux computer
« Reply #10 on: January 11, 2022, 08:58:25 pm »
That's interesting:  fdisk recognises the new disk but df doesn't. 
I don't have any ideas at present, but will have a think.  Perhaps another Member can help.

Offline emp1953

  • Jr. Member
  • **
  • Posts: 16
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Installing 2nd hard drive in existing linux computer
« Reply #11 on: January 11, 2022, 09:00:26 pm »
Does it need to be mounted?

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1577
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Installing 2nd hard drive in existing linux computer
« Reply #12 on: January 12, 2022, 09:43:31 am »
It does indeed.
First of all, try
Code: [Select]
mount | grep "/dev/sd"
to check if it's mounted somewhere unexpected.

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1869
  • Karma: 146
  • Gender: Male
    • View Profile
    • Awards
Re: Installing 2nd hard drive in existing linux computer
« Reply #13 on: January 12, 2022, 10:31:52 am »
It looks to me that dev/sdb is not partitioned:
Quote
Disk /dev/sdb: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Missing the partition data

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1577
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Installing 2nd hard drive in existing linux computer
« Reply #14 on: January 12, 2022, 11:19:31 am »
The fdisk -l command doesn't list partitions, I think.  It didn't list your sda partitions.
Please execute
Code: [Select]
mount | grep "/dev/sd"
and report the full result.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal