Good afternoon.
I want to mount zroot/usr/home to the second 500 GB HHD disk of the same laptop where FBSD 12.1 is installed on a 30 GB SSD:
First I looked for defective parts of the disc (ada0) with dd:
I then proceeded to delete everything:
And so it is now:
What I'm trying to do is have zroot/usr/home (now 2% occupied), take care of my data like photos, videos, etc. as any /home partition on the HDD and thus free up the SSD for the root and its sub-directories. since the SSD where the system is installed has very little storage.
I have honestly never done this and if you help me, I would like to make it happen. Then I'd have FBSD running totally, like a single disk, and it's already running at peak performance!
Thanks as always.
I want to mount zroot/usr/home to the second 500 GB HHD disk of the same laptop where FBSD 12.1 is installed on a 30 GB SSD:
Code:
# lsblk
DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
ada0 0:97 466G GPT - -
<FREE> -:- 1.0M - - -
ada0p1 0:99 466G linux-data - -
<FREE> -:- 7.5K - - -
ada1 0:98 30G GPT - -
ada1p1 0:100 200M efi gpt/efiboot0 -
ada1p2 0:101 512K freebsd-boot gpt/gptboot0 -
<FREE> -:- 492K - - -
ada1p3 0:102 8.0G freebsd-swap gpt/swap0 SWAP
ada1p4 0:103 22G freebsd-zfs gpt/zfs0 <ZFS>
ada1p4.eli 0:109 22G zfs - -
<FREE> -:- 836K - - -
First I looked for defective parts of the disc (ada0) with dd:
Code:
# dd if=/dev/ada0 of=/dev/null bs=1M
476940+1 records in
476940+1 records out
500107862016 bytes transferred in 5517.928814 secs (90633257 bytes/sec)
I then proceeded to delete everything:
# gpart destroy -F ada0
ada0 destroyed
And so it is now:
# lsblk ada0
DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
ada0 0:97 466G GPT - -
<FREE> -:- 466G - - -
What I'm trying to do is have zroot/usr/home (now 2% occupied), take care of my data like photos, videos, etc. as any /home partition on the HDD and thus free up the SSD for the root and its sub-directories. since the SSD where the system is installed has very little storage.
Code:
# df -hT
Filesystem Type Size Used Avail Capacity Mounted on
zroot/ROOT/default zfs 21G 7,4G 13G 36% /
devfs devfs 1,0K 1,0K 0B 100% /dev
zroot/var/log zfs 13G 436K 13G 0% /var/log
zroot/usr/home zfs 13G 249M 13G 2% /usr/home
zroot zfs 13G 88K 13G 0% /zroot
zroot/var/crash zfs 13G 88K 13G 0% /var/crash
zroot/usr/ports zfs 13G 88K 13G 0% /usr/ports
zroot/var/mail zfs 13G 112K 13G 0% /var/mail
zroot/var/audit zfs 13G 88K 13G 0% /var/audit
zroot/tmp zfs 13G 6,9M 13G 0% /tmp
zroot/var/tmp zfs 13G 88K 13G 0% /var/tmp
zroot/usr/src zfs 13G 88K 13G 0% /usr/src
# cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/ada1p3 none swap sw 0 0
I have honestly never done this and if you help me, I would like to make it happen. Then I'd have FBSD running totally, like a single disk, and it's already running at peak performance!
Thanks as always.