Comments on: How to Add a New Disk to an Existing Linux Server https://www.tecmint.com/add-new-disk-to-an-existing-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 13 Jul 2023 19:19:44 +0000 hourly 1 By: Jordan Merson https://www.tecmint.com/add-new-disk-to-an-existing-linux/comment-page-1/#comment-1427840 Wed, 03 Feb 2021 21:28:16 +0000 http://www.tecmint.com/?p=25235#comment-1427840 In reply to Dima.

It will not merge the old /home folder, instead, it will replace it.

What I would do is:

  1. make a good backup of your server.
  2. sudo su (or login as root).
  3. mount the new drive (with the correct fstab entry: UUID=[drive uuid] /home_new ext4 defaults 0 0) to /home_new.
  4. sync the old home folder to the new home folder: rsync -av /home/ /home_new/.
  5. rename the old home folder: mv /home /home_old.
  6. change the fstab entry to mount the new drive to /home ( UUID=[drive uuid] /home ext4 defaults 0 0).
  7. Reboot your server. Now your new drive is mounted at /home with all of the original home contents, and your old home folder is accessible at /home_old.

Once you are comfortable, delete the old home folder.

If you run into problems, login as root, unmount /home, comment out or remove the fstab entry for the new drive, rename /home_old to /home and reboot.

]]>
By: frank cele https://www.tecmint.com/add-new-disk-to-an-existing-linux/comment-page-1/#comment-1354722 Wed, 19 Aug 2020 18:33:46 +0000 http://www.tecmint.com/?p=25235#comment-1354722 I will suggest using UUID to mount devices. This gives some hardware independence, especially when working on a cloud where you can add and move devices as needed.

lsblk -o name,uuid

Use the uuid corresponding to the device and drive name of your convenience.

edit /etc/fstab
UUID="d52669e4-b4ed-4623-b69c-b27ea80f740e"     /drive3    ext4    rw,user,exec 0 2
]]>
By: Dima https://www.tecmint.com/add-new-disk-to-an-existing-linux/comment-page-1/#comment-1345897 Mon, 20 Jul 2020 15:22:57 +0000 http://www.tecmint.com/?p=25235#comment-1345897 If I create a /home folder on the second drive, will it merge with the /home folder on the first drive? Can not be afraid of data loss of the first disk?

]]>
By: muhammad tayyab https://www.tecmint.com/add-new-disk-to-an-existing-linux/comment-page-1/#comment-1332158 Thu, 07 May 2020 08:08:49 +0000 http://www.tecmint.com/?p=25235#comment-1332158 Hi there,

I have a problem using Ubuntu. I have installed two hard drives one 128GB SSD and the other is 500 HD. On by default, I set 128 as a boot like using window and ubuntu at a time.

I have a problem there is when I open window in dual boot mode all partition work normal and good but when I open ubuntu my 500 Gb disk cannot show on ubuntu platform what I happen.

my all data exist on 500gb hard and I cannot see in ubuntu please guide some tricks

]]>
By: Ravi Saive https://www.tecmint.com/add-new-disk-to-an-existing-linux/comment-page-1/#comment-1097923 Tue, 29 Jan 2019 06:38:37 +0000 http://www.tecmint.com/?p=25235#comment-1097923 In reply to Bhargavi.

@Bhargavi,

I think you can do it by using any graphical disk management utility like Gparted or any other, that you need to find out..

]]>