Skip to content

Adding a new HDD to my system.

I'm going to add my new HDD to my system when it gets delivered, so I was gonna ask these questions:

  1. Since my current /home partition is on my current 1 TB HDD, how do I move that partition to my new 2 TB HDD?
  2. What do I need to reconfigure? What do I need to add to /etc/fstab and what else do I need to change?
  3. Is it possible to have user's home directory to be on one HDD while all the other user's home directories are on another HDD? (for example - user Alex on the 1 TB HDD, user Brian and Clare on the 2 TB HDD)
  4. How do I resize my / (root) partition to be bigger? (a lot of programs are going to be installed so I will need to resize it from 16 GB to something like 64 GB)

All help is appreciated :)

0 points9 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Text
ID
b7ns41

Author

12
posts
32
comments
0
media
View profile

9 comments

  1. You can just cp -a or rsync the home dir to the new HDD, just do it while the user isn't logged in.
  2. Just switching the home partition's UUID to the new drive in fstab should be enough, provided they are the same filesystem.
  3. You can control where the home dirs of each user's are with usermod -d /path/to/home, or during the user creation with useradd -d /path/to/home
  4. Get SysResCD, Gparted live or or anything else that has GNU parted/gparted, and you can easily resize most Linux partitions with that. Bear in mind that XFS can only be extended, not shrunk.
4 points

With the current ssd prices I'd sell the old hdd add some money and buy any decent ssd at least ~250 GB big (I like the samsung evo 860 but it's not your only option and while it's about as fast as a sata ssd can be (bigger = faster and more durable) it might be out of your price range) and use it for everything except large media files which aren't going to see any mayor improvements in speed from the lower latency and higher read/write speeds on ssds. Does it really matter if a movie starts playing a little later? And decoding is cpu/gpu (if your gpu can do it and you are using drivers that support it and have it enabled) bound anyway.

Unless you're very rich, then you can use nvme drives for them if you want.

If you have enough ram use tmpfs for anything that doesn't need to stay after a reboot tmp is a good candidate (although I stopped using tmpfs for it because some makepkg compiles just didn't work (stuck during disk access despite more than enough free space being available), ~/.cache, ...

2 points
  1. Create a new filesystem, mount it wherever, copy your files over (preferably on a live USB).
  2. Edit /etc/fstab to have the right UUID for your new partition for /home, done.
  3. Yes, just mount the 2TB drive to /home and the 1TB drive to /home/alex. If you want something more complicated, mount them to something like /mnt/home1 and /mnt/home2 and then symlink the home directories.
  4. gparted is your friend.
2 points
  1. dd, partclone, clonezilla to name a few, the wiki has more on what and how
  2. update your fstab to point to the partition on the new disk
  3. yes, for that you'd need to djust fstab accordingly
  4. gparted live usb (obligatory disclaimer to have a backup just in case when fiddling with partitions)
2 points

Thanks for your help guys! What you said will really help :)

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.