Updates:

Forums updated to SMF version 2.1.1

Installing 2nd hard drive in existing linux computer [SOLVED]

Started by emp1953, January 11, 2022, 06:23:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

emp1953

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

Keith

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: df | grep "/dev/sd"This should list drives sda1 and sdb1

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

Keith


emp1953

It is internal installed on the SATA3 connector on the motherboard.  Seagate New in box.

emp1953

The results of that ls | grep command only show sda1.  nothing else.

emp1953

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?


emp1953

By the way the HD box does not say whether it is formatted.

Keith

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.
QuoteBy 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. 

emp1953

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

Keith

QuoteDisk /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: 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. 


emp1953

[email protected] ~]# df | grep "/dev/sd"
/dev/sda1                               487652    103222    354734  23% /boot


Keith

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.

emp1953


Keith

It does indeed.
First of all, trymount | grep "/dev/sd"to check if it's mounted somewhere unexpected.

SeZo

It looks to me that dev/sdb is not partitioned:
QuoteDisk /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

Keith

The fdisk -l command doesn't list partitions, I think.  It didn't list your sda partitions.
Please executemount | grep "/dev/sd"and report the full result.