I have two (2) Hitachi, 8Tb drives that I use for everyday backup. I formatted the drives with Debian as ext4 and gave the drives simple volume labels of "backup1" and "backup2". Debian with the LXQT desktop file manager displayed backup1 and backup2, but FreeBSD does not.
$ lsblk
DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
da0 0:125 231G MBR - -
<FREE> -:- 993K - - -
da0s1 0:126 231G ntfs gpt/ntfs /media/da0s1
da0s2 0:127 231G efi gpt/efi /media/da0s2
da1 0:157 7.3T GPT - -
da1p1 0:158 7.3T linux-data gpt/linux-data /media/HGST_HUH_728080ALE600_934960220651_p1
<FREE> -:- 328K - - -
da2 0:167 7.3T GPT - -
da2p1 0:168 7.3T linux-data gpt/linux-data /media/HGST_HUH_728080ALE600_WD-WXE1E14MVJ21_p1
<FREE> -:- 328K -
I purposely use backup1 for all of my daily use. I use a simple, rsync script that will synchronize both drives, but delete files on backup2 that do not exist on backup1.
rsync -ahcrvv --partial --inplace --append --progress --delete-after --stats /media/ed/backup1/ /media/ed/backup2
Since FreeBSD doesn't seem to "see" the volume labels that were created with Debian, I need a way to positively identify each drive. Any ideas on how I can do this? Is there a way to "label" a drive under FreeBSD that the desktop environment will display, and then incorporate that name back into my simple script?
Thank you!
Ed
$ lsblk
DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
da0 0:125 231G MBR - -
<FREE> -:- 993K - - -
da0s1 0:126 231G ntfs gpt/ntfs /media/da0s1
da0s2 0:127 231G efi gpt/efi /media/da0s2
da1 0:157 7.3T GPT - -
da1p1 0:158 7.3T linux-data gpt/linux-data /media/HGST_HUH_728080ALE600_934960220651_p1
<FREE> -:- 328K - - -
da2 0:167 7.3T GPT - -
da2p1 0:168 7.3T linux-data gpt/linux-data /media/HGST_HUH_728080ALE600_WD-WXE1E14MVJ21_p1
<FREE> -:- 328K -
I purposely use backup1 for all of my daily use. I use a simple, rsync script that will synchronize both drives, but delete files on backup2 that do not exist on backup1.
rsync -ahcrvv --partial --inplace --append --progress --delete-after --stats /media/ed/backup1/ /media/ed/backup2
Since FreeBSD doesn't seem to "see" the volume labels that were created with Debian, I need a way to positively identify each drive. Any ideas on how I can do this? Is there a way to "label" a drive under FreeBSD that the desktop environment will display, and then incorporate that name back into my simple script?
Thank you!
Ed