Linux home folder and ZFS

Adcadet

Storage Freak
Joined
Jan 14, 2002
Messages
1,852
Location
44 degrees, 43 minutes latitude; 91 degrees, 28 mi
So, I managed to move my home folder over to a ZFS pool since my boot disk (SSD) was running low on space. Not too hard, just used the zfs mountpoint command and replaced /home with a zpool. Except it looks like what was in my prior home folder is still using disk space on the SSD. Does anybody know a way to get that space back short of not starting up ZFS at boot?
 

Chewy509

Wotty wot wot.
Joined
Nov 8, 2006
Messages
3,204
Location
Gold Coast Hinterland, Australia
What timwhit asks...

But you should be able to start in single user mode (see you distro's docs on doing this), umount the zfs /home, thus you should be right to access the old /home folder (if it's part of the root filesystem). Since you're logged in as "root" you don't need access to the /home directory... Then simply delete the contents of /home... (Have you enabled TRIM support)?

If /home was it's own partition, then recheck for entries in /etc/fstab that reference the old filesystem, remove the old ones and reformat the old partition and remount as needed. (FYI you can resize ext4 filesystems to take up unused space if needed).
 
Top