Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


adding_a_second_hard_drive

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
adding_a_second_hard_drive [2015/07/04 14:36] juckinsadding_a_second_hard_drive [2023/12/31 16:46] (current) juckins
Line 1: Line 1:
 +==== Adding a Second Hard Drive to Linux Machine ====
 +
 +__31 December 2023 - 4TB SSD Hard Drive on NUC 13 Pro Kit running Rocky Linux 9.3__
 +  * Install gparted RPM
 +  * Start up gparted as root
 +  * Select the /dev/sda disk using the pull-down menu in the upper right corner
 +    * Note that the primary disk is /dev/nvme0n1
 +  * Device > Create Partition Table...
 +    * Choose the default 'gpt'
 +  * Partition > New
 +    * Select defaults except for the following:
 +      * Partition name: disk2
 +      * Label: disk2
 +      * File system: ext4
 +    * Click Add
 +  * Click green check mark to Apply All Operations
 +  * Open an xterm as root
 +  * mkdir /disk2
 +  * You need to modify the /etc/fstab entry to something like the following
 +    * ''UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX /disk2                  ext4     defaults        1 1''
 +  * You find the UUID for the new hard disk by going to ''/dev/disk/by-uuid/'' and doing ''ls -l''
 +  * There you will see the UUID pointing to the drive (ex. ../../sda)
 +  * Use that information to update ''/etc/fstab''
 +  * ''systemctl daemon-reload''
 +  * ''mount -a''
 +  * ''df -hP''
 +    * Ensure you see /disk2 mount and you can cd in and touch/remove a test file
 +  * Reboot to ensure disk mounts correctly
 +
 +
 +__19 April 2016 - 3TB Hard Drive on CentOS 6__
 +
 +See [[http://www.tech-g.com/2012/07/25/installing-my-3tb-hard-drive-on-debian-linux-step-by-step/|Installing 3TB Hard Drive on Debian]]
 +
 +  * Couldn't use default partition scheme (2 TB is largest supported disk)
 +  * Had to make a new partition using the GUI application GParted in format 'gpt'
 +
 +----
 +
 Follow the instructions on this page.  But if you are using SATA drives, replace "hdb" with "sdb" and "hdb1" with "sdb1", etc.  Follow the instructions on this page.  But if you are using SATA drives, replace "hdb" with "sdb" and "hdb1" with "sdb1", etc. 
  
Line 102: Line 141:
 Format the new drive: Format the new drive:
   * Open up Applications > System Tools > Disk Utility    * Open up Applications > System Tools > Disk Utility 
 +    * Note for CENTOS7 you need to install gnome-disk-utility
 +    * Then run: gnome-disks
 +    * Upper right hand corner has the link to view SMART data
   * See Storage Devices on left side of GUI   * See Storage Devices on left side of GUI
   * Click on the new hard drive   * Click on the new hard drive
adding_a_second_hard_drive.txt · Last modified: 2023/12/31 16:46 by juckins