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

0 Members and 1 Guest are viewing this topic.

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1869
  • Karma: 146
  • Gender: Male
    • View Profile
    • Awards
Re: Installing 2nd hard drive in existing linux computer
« Reply #15 on: January 12, 2022, 12:22:06 pm »
the fdisk -l does list partitions:
Quote
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

but listed none of them for /dev/sdb

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 #16 on: January 12, 2022, 12:25:12 pm »
It does indeed with the "long" option.
Please try
Code: [Select]
mount | grep "/dev/sd"
and post the whole output.

The Linux Community Forum

Re: Installing 2nd hard drive in existing linux computer
« Reply #16 on: January 12, 2022, 12:25:12 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 #17 on: January 12, 2022, 02:38:48 pm »
[[email protected] home]# mount | grep "/dev/sd"
/dev/sda1 on /boot type ext4 (rw,relatime,seclabel,data=ordered)

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 #18 on: January 12, 2022, 02:47:20 pm »
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.

Keith

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 #19 on: January 12, 2022, 03:37:44 pm »
Assuming the new HD came formatted is it also safe to assume that it is NTFS  ?

The Linux Community Forum

Re: Installing 2nd hard drive in existing linux computer
« Reply #19 on: January 12, 2022, 03:37:44 pm »

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 #20 on: January 12, 2022, 05:31:12 pm »
Probably, yes, but Linux will cope with that.  One can use fdisk to specify a range of formats, all of which Linux can use.

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 #21 on: January 12, 2022, 06:08:31 pm »
Are there any BIOS settings that need to be changed so the HD is seen upon boot up?

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 #22 on: January 12, 2022, 06:12:44 pm »
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. 

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 #23 on: January 12, 2022, 06:53:18 pm »
Nothing on any of the listings I've done shows that it has a boot sector?

The Linux Community Forum

Re: Installing 2nd hard drive in existing linux computer
« Reply #23 on: January 12, 2022, 06:53:18 pm »

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1869
  • Karma: 146
  • Gender: Male
    • View Profile
    • Awards
Re: Installing 2nd hard drive in existing linux computer
« Reply #24 on: January 12, 2022, 08:05:32 pm »
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:

Code: [Select]
sudo yum install parted -y

Then list the available
Code: [Select]
sudo fdisk -l

(make sure /dev/sdb is listed)

Then run parted:
Code: [Select]
sudo parted -a optimal /dev/sdb
Note you will stay in parted shell, shown as (parted)
print out the current HDD configuraion
Code: [Select]
(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):

Code: [Select]
(parted) mklabel msdos
(parted) print

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

Code: [Select]
(parted) mkpart primary ext4 0% 95%
(parted) print
A new partition should be listed
then exit
Code: [Select]
(parted) q

Now create the filesystem
Code: [Select]
sudo mkfs.ext4 /dev/sdb1

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

After that it will get automounted (probably)

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 #25 on: January 12, 2022, 08:19:31 pm »
Many thanks, Sezo.

Keith

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 #26 on: January 13, 2022, 01:05:46 am »
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.

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1869
  • Karma: 146
  • Gender: Male
    • View Profile
    • Awards
Re: Installing 2nd hard drive in existing linux computer
« Reply #27 on: January 13, 2022, 10:08:24 am »
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
Quote
By default, the parted package is included when installing Fedora.

Have you got Gparted installed?

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 #28 on: January 13, 2022, 04:49:05 pm »
Gparted was not part of my Fedora 19 installation either it is not in the repo.

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 #29 on: January 13, 2022, 07:03:38 pm »
My system has an app called "gdisk" when when entered at the cmd line returns "GPT fdisk (gdisk) version 0.8.18

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal