Solved mounting hdd in new freebsd install

First get it working manually by mounting the partition and then later worry about mounting via /etc/fstab
 
Last edited:
Hello
Well I have run a test by installing arco linux on the same PC. Arch linux finds all 3 HDD and mounts them. I re installed ghost bsd, it installed correctly. In the install process the 3 disks were shown when you choose the disk for install. BSD is installed on my Samsung SSD 970 EVO 500GB. It installs perfectly. However no HDD are seen as new hardware on the install.
Both hard drives have UFS. I used gpart to destroy -F on both drives. Used gpart as per install hdd guide in manual.yheEverything works updates as well as mounting wd mycloud through the network manager. I am committed to Freebsd but no being able to mount ada0 and ada1 is making it very hard. I can use all files off my cloud drive. But I would like to import them to ada1 M4-CT128M4SSD2 which is a SSD.

I would like to be able to mount these drives.' mount /dev/ada1p1 /mnt' did not work. the files are in /dev

file -s /dev/ada1p1
/dev/ada1p1: Unix Fast File system [v2] (little-endian) last mounted on /mnt, last written at Sun Mar 28 19:22:31 2021, clean flag 1, readonly flag 0, number of blocks 31258368, number of data blocks 30272071, number of cylinder groups 196, block size 32768, fragment size 4096, average file size 16384, average number of files in dir 64, pending blocks to free 0, pending inodes to free 0, system-wide uuid 0, minimum percentage of free blocks 8, TIME optimization
I did this ghostbsd-pc:/home/leigh # mount /dev/ada1p1 /mnt
as there were no faults or errors you would assume it was done.
ghostbsd-pc:/home/leigh #
Nowhere to be found.
Keen to hear your advice.
Leigh Horton
 
file -s /dev/ada1p1
/dev/ada1p1: Unix Fast File system [v2] (little-endian) last mounted on /mnt, last written at Mon Mar 29 15:06:12 2021, clean flag 0, readonly flag 0, number of blocks 31258368, number of data blocks 30272071, number of cylinder groups 196, block size 32768, fragment size 4096, average file size 16384, average number of files in dir 64, pending blocks to free 0, pending inodes to free 0, system-wide uuid 0, minimum percentage of free blocks 8, TIME optimization
 
I did this ghostbsd-pc:/home/leigh # mount /dev/ada1p1 /mnt
as there were no faults or errors you would assume it was done.
ghostbsd-pc:/home/leigh #
Nowhere to be found.
Maybe look in /mnt where you mounted it?
 
Post the output from mount.

Post the output from mount.
not sure what you mean


/dev/ada1p1: Unix Fast File system [v2] (little-endian) last mounted on /mnt, last written at Mon Mar 29 15:06:12 2021, clean flag 0, readonly flag 0, number of blocks 31258368, number of data blocks 30272071, number of cylinder groups 196, block size 32768, fragment size 4096, average file size 16384, average number of files in dir 64, pending blocks to free 0, pending inodes to free 0, system-wide uuid 0, minimum percentage of free blocks 8, TIME optimization
This is what is confusing
 
Code:
tank/ROOT/initial on / (zfs, local, nfsv4acls)
devfs on /dev (devfs, local, multilabel)
tmpfs on /libexec/rc/init.d (tmpfs, local, noexec, nosuid)
procfs on /proc (procfs, local)
linprocfs on /compat/linux/proc (linprocfs, local)
tmpfs on /compat/linux/dev/shm (tmpfs, local)
linsysfs on /compat/linux/sys (linsysfs, local)
fdescfs on /dev/fd (fdescfs)
tank/tmp on /tmp (zfs, local, nosuid, nfsv4acls)
tank/var/crash on /var/crash (zfs, local, noexec, nosuid, nfsv4acls)
tank/usr/home on /usr/home (zfs, local, nfsv4acls)
tank/var/audit on /var/audit (zfs, local, noexec, nosuid, nfsv4acls)
tank/var/tmp on /var/tmp (zfs, local, nosuid, nfsv4acls)
tank/var/mail on /var/mail (zfs, local, nfsv4acls)
tank/usr/src on /usr/src (zfs, local, nfsv4acls)
tank/usr/ports on /usr/ports (zfs, local, nosuid, nfsv4acls)
/dev/ada1p1 on /mnt (ufs, local, soft-updates)
 
As you can see it's mounted:
Code:
/dev/ada1p1 on /mnt (ufs, local, soft-updates)
If ls -al /mnt doesn't show anything it means the filesystem is empty.
 
So, now you've tested that it actually works, unmount it, then see if your /etc/fstab works. Don't use /mnt for anything permanent, it's for temporary mounts only.
 
Use only one "part" when unmounting, either umount /dev/ada1p1 or umount /mnt.
 
Maybe mkdir /test and change /etc/fstab to include
Code:
/dev/ada1p1 /test ufs rw 2 2

Having said that I'm not sure what rw 2 2 signify, never used that - must look it up....
 
Good, now enter mount -a and it should get mounted on /newdisk.
 
Then it's either already mounted or mounted somewhere else.
 
do I restart
I ran mount and it is mounted. So where will i see the mounted drive?

tank/ROOT/initial on / (zfs, local, nfsv4acls)
devfs on /dev (devfs, local, multilabel)
tmpfs on /libexec/rc/init.d (tmpfs, local, noexec, nosuid)
procfs on /proc (procfs, local)
linprocfs on /compat/linux/proc (linprocfs, local)
tmpfs on /compat/linux/dev/shm (tmpfs, local)
linsysfs on /compat/linux/sys (linsysfs, local)
fdescfs on /dev/fd (fdescfs)
/dev/ada1p1 on /newdisk (ufs, local, soft-updates)
tank/tmp on /tmp (zfs, local, nosuid, nfsv4acls)
tank/usr/home on /usr/home (zfs, local, nfsv4acls)
tank/var/tmp on /var/tmp (zfs, local, nosuid, nfsv4acls)
tank/var/audit on /var/audit (zfs, local, noexec, nosuid, nfsv4acls)
tank/usr/src on /usr/src (zfs, local, nfsv4acls)
tank/usr/ports on /usr/ports (zfs, local, nosuid, nfsv4acls)
tank/var/crash on /var/crash (zfs, local, noexec, nosuid, nfsv4acls)
tank/var/mail on /var/mail (zfs, local, nfsv4acls)

Do i put this in my fstab file
/dev/ada1p1 /newdisk ufs rw 0 0
 
Back
Top