Jump to content

How do i add another HDD as my Home dir.

Go to solution Solved by Eigenvektor,
24 minutes ago, Jimkirk363 said:

@Joe Jackman  I dont quite understand what u r trying to do here but im gonna take a guess.  I think what u wanna do is add extra space to your linux drive and if this is the case its not as easy as just doing that.  You need to install the O/S to that drive.

No, you don't. You can add a new drive, move your files over and then mount that as your new "/home/<username>". I've done exactly that on mine. My original installation was Linux on a 75 GB partition. I later added a 1 TB SSD and I am now using that as my home directory.

 

See here, for example: https://www.tecmint.com/move-home-directory-to-new-partition-disk-in-linux/

I have my SSD that is shirked to run linux and windows (dual boot), and a part of a ext HDD as my home dir. Ik i thought i really wouldn't use linux for long but i began to love it and its my daily driver now.
So bought a HDD for it. IF it isnt possible, suggest me a way to best use this hardware.  TIA

Link to comment
Share on other sites

Link to post
Share on other sites

@Joe Jackman  I dont quite understand what u r trying to do here but im gonna take a guess.  I think what u wanna do is add extra space to your linux drive and if this is the case its not as easy as just doing that.  You need to install the O/S to that drive.

MAIN PC (Beast) - Asus ROG Crosshair Hero VII WIFI  with BIOS 4703, AMD Ryzen R9 3900XT + Corsair H115i Pro RGB XT Cooling, 32GB G.Skill 3200Mhz 16,18,18,38 1.35v DDR4, Inno3d HerculeZ Design Nvidia GTX 1080 X2 8GB GDDR5,  1 x Samsung U28E590D & 1 x Samsung U32J59XUQ 3840 x 2160 4K, 1 x Samsung Evo 970 Evo Plus NVME PCI-E 1TB, 1 x Samsung Evo 850 250GB, 1 X Sandisk Ultra II SSD 240GB + 2 X 3TB Seagate Barracuda SATA III, 1 x LG BH16NS40 16x BR\DVDRW, ICYBOX IB3740-C31 & ICYBOX IB3640-03,  MZHOU 7 Ports PCIe USB 3.0 Card, 1 x XIAOLO 2.5G Intel I225V Ethernet Card, 2 x UGREEN Hard Drive Enclosure 3.5 inch External SATA Disk Caddy Reader USB 3.0 2.5 3.5 HDD SSD 16TB UASP Case Dock Station With 12V 2A Power Adapter For Windows with 6TB Seagate Barracuda SATA III, Corsair Obsidian 750D Wind Force Edition Case + 5 Corsair ML140 140mm Case Fans, EVGA 750 g3 750w Gold 80+ PSU, Logitech MX Vertical Mouse, Logitech MX Vertical & MX Ergo Trackball Mouse using same USB unifying device, Microsoft Ergonomic Keyboard, Windows 11 Pro x64 Retail, Synology ds215j NAS + 1x3TB WD Reds connected to a 6TB Seagate USB 3.0 Backup Plus Hub, Blue Yeti Microphone, Logitech C922 Pro HD,  Logitech C920 Pro HD, Bit Defender Total Security 2021.

 

Second PC (Cyclops) - MSI 990FXA Gaming, AMD FX 8370 4Ghz, Corsair 16GB Vengeance Red 9-9-9-24 1600Mhz, Arctic Cooling Freezer 13, Asus Strix 1050TI 4GB, 1 X Acer 27" Full HD Monitor, 1 X Sandisk Ultra II SSD 240GB, 1 x Samsung Evo 850 250GB, 2 X Seagate Barracuda 2TB, 1 X WD Black 2TB, 1 x ASUS 16x DVDRW, X-Case Eagle III Case, 3 X Corsair AF 120 Case Fans, EVGA 850 G2 80+ Gold + PSU, Logitech MX Master Mouse, Corsair K30 Keyboard, Logitech C920 Webcam, R0DE NT1-A Microphone, Scarlet 212 Audio Interface (Revision 2), Windows 10 Pro X64 Retail, Bit Defender Total Security 2021, 2TB Seagate Expansion USB Hard Drive.

 

Third PC (Old Trustie) - Acer Aspire M3400, OEM Mainboard, AMD FX Athlon II X3 425 2.7Ghz, 16GB Corsair Value 1600Mhz Ram, OEM CPU Cooler, AMD R7 260 2GB GPU, 1 X Acer 27" Full HD Monitor, 1 X Sandisk Ultra II SSD 240GB, 2TB Samsung SATA III, 1 X OEM 16X DVDRW, 1 X Acer OEM Case, 1 X Corsair AF120 Case Can, Corsair CX500 Bronze+ CPU, Logitech MX Master Mouse, Corsair K30 Keyboard, Windows 10 Home X64 OEM, Logitech C920 Webcam, Bit Defender Total Security 2021.

 

Printers Include - Canon MG5750, Canon, IP8750,  Canon Pixma Mega tank G5050 & 2 X Samsung Xpress C410W.

 

1 X Zexrow Xbox360 Wired Game Controller.

 

TP Link Archer AX6000 Cable Router Wifi6 with a Virgin Media Hub 4.0 in Modem only mode running 1GB Fibre internet.

 

Samsung Galaxy S21+ 256GB Mobile Phone.

 

Internet Speed.....

https://www.speedtest.net/result/9935039193

Link to comment
Share on other sites

Link to post
Share on other sites

24 minutes ago, Jimkirk363 said:

@Joe Jackman  I dont quite understand what u r trying to do here but im gonna take a guess.  I think what u wanna do is add extra space to your linux drive and if this is the case its not as easy as just doing that.  You need to install the O/S to that drive.

No, you don't. You can add a new drive, move your files over and then mount that as your new "/home/<username>". I've done exactly that on mine. My original installation was Linux on a 75 GB partition. I later added a 1 TB SSD and I am now using that as my home directory.

 

See here, for example: https://www.tecmint.com/move-home-directory-to-new-partition-disk-in-linux/

Remember to either quote or @mention others, so they are notified of your reply

Link to comment
Share on other sites

Link to post
Share on other sites

4 hours ago, Eigenvektor said:

No, you don't. You can add a new drive, move your files over and then mount that as your new "/home/<username>". I've done exactly that on mine. My original installation was Linux on a 75 GB partition. I later added a 1 TB SSD and I am now using that as my home directory.

 

See here, for example: https://www.tecmint.com/move-home-directory-to-new-partition-disk-in-linux/

also another question, can i only have my Boot efi partition on the SSD (i think that is responsible for the fast boot time) and have my root partition be on the HDD there ase well? 

also i meant that i dual boot windows and linux from the same SSD and have root, boot efi, swap and recovery partition on the SSD. A part of a external HDD is my home dir.

Link to comment
Share on other sites

Link to post
Share on other sites

26 minutes ago, Joe Jackman said:

also another question, can i only have my Boot efi partition on the SSD (i think that is responsible for the fast boot time) and have my root partition be on the HDD there ase well?

Sure, but that is probably a bit harder to do with an existing installation. Moving directories that contain your running system isn't as easy as moving your home-directory. You could probably do it when booting e.g. from a live-USB, but I'd definitely create a backup beforehand.

 

I'd try to keep everything on the SSD, except /home and maybe /var. At the very least, I'd keep the kernel and system applications on the SSD.

 

If you wanted to, you could put every directory onto another disk or partition. And if you used LVM you could even have one directory span multiple drives and increase their size on the fly when you add new drives. It's just a bit more hassle to set up initially.

 

26 minutes ago, Joe Jackman said:

also i meant that i dual boot windows and linux from the same SSD and have root, boot efi, swap and recovery partition on the SSD. A part of a external HDD is my home dir.

I also dual-boot Windows and Linux from an SSD (512 GB), from which Linux initially got 75 GB. I later added a 1 TB SSD, which currently houses my /home directory.

Remember to either quote or @mention others, so they are notified of your reply

Link to comment
Share on other sites

Link to post
Share on other sites

13 hours ago, Eigenvektor said:

Sure, but that is probably a bit harder to do with an existing installation. Moving directories that contain your running system isn't as easy as moving your home-directory. You could probably do it when booting e.g. from a live-USB, but I'd definitely create a backup beforehand.

 

I'd try to keep everything on the SSD, except /home and maybe /var. At the very least, I'd keep the kernel and system applications on the SSD.

 

If you wanted to, you could put every directory onto another disk or partition. And if you used LVM you could even have one directory span multiple drives and increase their size on the fly when you add new drives. It's just a bit more hassle to set up initially.

 

I also dual-boot Windows and Linux from an SSD (512 GB), from which Linux initially got 75 GB. I later added a 1 TB SSD, which currently houses my /home directory.

(i am very sorry for the late replies but i live on a different continent, so timezones- you know)
i nvr heard of LVM so ig i dont have it Xd.
OKay so ig in the future i can buy another SSD for linux- so let me not worry about future proofing just yet.
Could i install Games (ig lutris is the only one for now) on /home ? like i think i can caz it prompts me to select a disk but i haven't tried.
And also could you suggest me what to use for my backup? i am literally 4-5 months into the linux world and i am loving how it works and home much focused and streamlined things are.

 

Link to comment
Share on other sites

Link to post
Share on other sites

2 hours ago, Joe Jackman said:

i nvr heard of LVM so ig i dont have it Xd.

Every modern Linux supports LVM, but you need to set it up during installation. So if you don't know, you probably did not ;) An easy test to do would be "df -h", which shows your file systems. If you see entries similar to

/dev/mapper/pihole--vg-root   28G  4.2G   22G  17% /
/dev/mapper/pihole--vg-home  198G  219M  188G   1% /home

then you have set up LVM. Obviously the names of the volume groups can be different, but you should see entries that start with /dev/mapper.

 

2 hours ago, Joe Jackman said:

Could i install Games (ig lutris is the only one for now) on /home ? like i think i can caz it prompts me to select a disk but i haven't tried.

Most software will be installed in /bin, /sbin or /usr/bin, you can't really change that. However Steam games for example will be installed in

/home/<user>/.steam/steam/steamapps/common

So if your home directory is on the HDD, the game is on the HDD as well. I haven't used Lutris myself, but from what I can see it lets you choose an installation directory, so if you choose your home directory it should be fine.

 

2 hours ago, Joe Jackman said:

And also could you suggest me what to use for my backup? i am literally 4-5 months into the linux world and i am loving how it works and home much focused and streamlined things are.

There are a few possibilities. I've used rsnapshot in the past and it has worked quite well. I've been meaning to try borg, but haven't really gotten around to it yet. There's also restic and Bareos. Here's a simple tutorial for rsnapshot: https://workaround.org/rsnapshot-and-usb-drives/

 

If you want something with a UI, Ubuntu has a list of backup tools that includes some with a graphical interface: https://help.ubuntu.com/community/BackupYourSystem

Remember to either quote or @mention others, so they are notified of your reply

Link to comment
Share on other sites

Link to post
Share on other sites

9 hours ago, Eigenvektor said:

Every modern Linux supports LVM, but you need to set it up during installation. So if you don't know, you probably did not ;) An easy test to do would be "df -h", which shows your file systems. If you see entries similar to

image.thumb.png.5eb938367e4f67e95759471c1f9b7165.pngThis is what i get but ig i do have LVM as u mentioned.

 

9 hours ago, Eigenvektor said:

Most software will be installed in /bin, /sbin or /usr/bin, you can't really change that.

that is my root ig. and i dont think i be using much of it.
so i made my mind-

i'll jus add the HDD as my extended home/dir (can i shift it however?, its on ext HDD so i cant really remove it as a ext) and then back it up.

Link to comment
Share on other sites

Link to post
Share on other sites

On 10/24/2020 at 2:54 PM, Eigenvektor said:

You can add a new drive, move your files over and then mount that as your new "/home/<username>".

IT worked, thank you so much.
one final question, can i rsync to back up stuff? what about root?

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×