Many new features now available including 2-Factor authentication

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.


the fdisk -l does list partitions:
QuoteDisk /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

but listed none of them for /dev/sdb


It does indeed with the "long" option.
Please trymount | grep "/dev/sd"and post the whole output.


[[email protected] home]# mount | grep "/dev/sd"
/dev/sda1 on /boot type ext4 (rw,relatime,seclabel,data=ordered)


Sezo - Sorry, I missed your name on your posts. 

Neither fdisk -l nor df list sdb on Emp's computer so I can't see how to create partitions unless the drive can be seen.  If you can advise him, please jump in and take over.



Assuming the new HD came formatted is it also safe to assume that it is NTFS  ?


Probably, yes, but Linux will cope with that.  One can use fdisk to specify a range of formats, all of which Linux can use.


Are there any BIOS settings that need to be changed so the HD is seen upon boot up?


No, I think not.  One can select the boot order, and it might be interesting to boot into the BIOS to see if your new disk is listed as an optional HDD to boot from. 


Nothing on any of the listings I've done shows that it has a boot sector?


Not familiar with fedora so please forgive my ignorance if this does not work as intended.

The problem appears to be that the HDD (/dev/sdb) appears to be un-partitioned.
Therefore there are no mountable partitions.

You could install parted:

sudo yum install parted -y

Then list the available
sudo fdisk -l

(make sure /dev/sdb is listed)

Then run parted:
sudo parted -a optimal /dev/sdb
Note you will stay in parted shell, shown as (parted)
print out the current HDD configuraion
(parted) print

This should give you the list of partitions (I assume will be none)

To create a standard dos partition table (use gpt if you prefer GPT):

(parted) mklabel msdos
(parted) print

Create one primary partition as ext4
(you still need to create the filesystem, see later)

(parted) mkpart primary ext4 0% 95%
(parted) print

A new partition should be listed
then exit
(parted) q

Now create the filesystem
sudo mkfs.ext4 /dev/sdb1

Note, you can create ntfs instead of ext4 if you like.

After that it will get automounted (probably)



Apparently "parted" is not in my repository. googled how to get it and install it, suggestions using dnf and git.  Also not in my distro.  I feel like a rat in a maze, with no cheese.


Surprised that parted is not in the repo for your distro, it is Fedora you are using?
According to this : https://docs.fedoraproject.org/en-US/Fedora/14/html/Storage_Administration_Guide/s1-disk-storage-parted.html
QuoteBy default, the parted package is included when installing Fedora.

Have you got Gparted installed?


Gparted was not part of my Fedora 19 installation either it is not in the repo.


My system has an app called "gdisk" when when entered at the cmd line returns "GPT fdisk (gdisk) version 0.8.18