Solved mounting hdd in new freebsd install

Hello
I have moved to freebsd after 12 years with ubuntu and recently 2 years with Arch. I have installed mate desktop. I have samba or network sharing with a NAS WD mycloud. Works perfectly. I have 2 internal hdd 250 gb ssd and a 1tb hdd an an external seagate hdd usb.
I can see the drives in mate my computer. It errors with cant mount. I have checked the fstab file . They are not in there. see lsblk .
1606190531190.png


Help needed
 
1. Which one? FAT32 or NTFS?
2. Can you mount them manually?
3. To mount NTFS you need to:

pkg install sysutils/fusefs-ntfs

/boot/loader.conf
Code:
fuse_load="YES"
4. Please post the error messages.

[EDIT]
5. You can read/write NTFS on FreeBSD but: writing access to NTFS on FreeBSD can be dangerous.
6. After you solved your mounting problem, I suggest to move your data from NTFS to one of the native FreeBSD filesystem, i.e. UFS or ZFS.
 
I have tried to mount them in mate desktop. Error can't mount operation in process ?

I tried adding them to fstab file.
It did not work so I reinstalled. Latest version 12.2.
 
1606216403212.png


This is for the other drive
1606216483343.png


I am really enjoying the freebsd but the fact that samba share or equivalent works so perfectly why when all other distros set up the drives on boot up.
 
Hello
I have moved to freebsd after 12 years with ubuntu and recently 2 years with Arch. I have installed mate desktop. I have samba or network sharing with a NAS WD mycloud. Works perfectly. I have 2 internal hdd 250 gb ssd and a 1tb hdd an an external seagate hdd usb.
I can see the drives in mate my computer. It errors with cant mount. I have checked the fstab file . They are not in there. see lsblk .
To investigate the problem, leave the FreeBSD version or MATE GUI out of that equation.
Try to mount manually from command line. See if it works. Install needed ports.

You can use gpart show to see the partitions and geom disk list to see the devices.

See if you have fuse loaded kldstat|grep fuse
 
To investigate the problem, leave the FreeBSD version or MATE GUI out of that equation.
Try to mount manually from command line. See if it works. Install needed ports.

You can use gpart show to see the partitions and geom disk list to see the devices.
I can see each of the devices.
 
Hello
I have everything working and have installed xorg and mate desktop. The OS is installed on nvd0 and it is a Samsung EVO 500GB. It is working fine

Geom name: ada0
Providers:
1. Name: ada0
Mediasize: 1000204886016 (932G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
descr: WDC WD10EZEX-60WN4A1
lunid: 50014ee211a25f71
ident: WD-WCC6Y4RUCAJK
rotationrate: 7200
fwsectors: 63
fwheads: 16

Geom name: ada1
Providers:
1. Name: ada1
Mediasize: 128035676160 (119G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
descr: M4-CT128M4SSD2
lunid: 500a07510311455b
ident: 0000000011220311455B
rotationrate: 0
fwsectors: 63
fwheads: 16

This what I now have on my new build PC. How do I mount these 2 drives. ada1 has files on it it is an SSD MBR filesystem. ada0 is WD and can be reformatted as I have copied all files from it.
It has been a while but work took a priority. Also getting everything working firefox libreoffice vlc chromium.
I want to understand how to do this?
Leigh Horton
 
Well mounted ada1 manually critical error. Can get to root@
But can't edit any files.
It is is now late here so I will wait to hear from you.
Perhaps you do not have partitions?

Show us your gpart show output. Read the manual gpart(8).

You should decide how you partition your disks and how do you want to use them. Assume you want ZFS. Then you can start reading the manual from zpool(8) and zfs(8).

I think you do not have partitions yet. My advice, when partitioning, is to leave some free space. At least create backup EFI partiotion on each disk and leave some extra free space for future use.
 
hi
the ada0 WD disk can be formatted
the ada1 has files I wish to access gpart show as of now
Code:
=>       40  976773088  nvd0  GPT  (466G)
         40        512     1  freebsd-boot  (256K)
        552  971528192     2  freebsd-zfs  (463G)
  971528744    5234688     3  freebsd-swap  (2.5G)
  976763432       9696        - free -  (4.7M)

=>        40  1953525095  ada0  GPT  (932G)
          40      409600        - free -  (200M)
      409640  1945747448     2  ms-basic-data  (928G)
  1946157088     7368040     3  ms-basic-data  (3.5G)
  1953525128           7        - free -  (3.5K)

=>        40  1953525095  diskid/DISK-WD-WCC6Y4RUCAJK  GPT  (932G)
          40      409600                               - free -  (200M)
      409640  1945747448                            2  ms-basic-data  (928G)
  1946157088     7368040                            3  ms-basic-data  (3.5G)
  1953525128           7                               - free -  (3.5K)

=>        1  250069679  ada1  MBR  (119G)
          1       1600     1  efi  (800K)
       1601    1904464     2  linux-data  [active]  (930M)
    1906065  248163615        - free -  (118G)

=>        1  250069679  diskid/DISK-0000000011220311455B  MBR  (119G)
          1       1600                                 1  efi  (800K)
       1601    1904464                                 2  linux-data  [active]  (930M)
    1906065  248163615                                    - free -  (118G)
 
=> 40 976773088 nvd0 GPT (466G)
40 512 1 freebsd-boot (256K)
552 971528192 2 freebsd-zfs (463G)
971528744 5234688 3 freebsd-swap (2.5G)
976763432 9696 - free - (4.7M)

=> 40 1953525095 ada0 GPT (932G)
40 409600 - free - (200M)
409640 1945747448 2 ms-basic-data (928G)
1946157088 7368040 3 ms-basic-data (3.5G)
1953525128 7 - free - (3.5K)

=> 1 250069679 ada1 MBR (119G)
1 1600 1 efi (800K)
1601 1904464 2 linux-data [active] (930M)
1906065 248163615 - free - (118G)
Cool! Now, if there is no data, remove all partitions from ada0 and ada1, using gpart and create new efi and freebsd-zfs partitions and create your zfs pool on these partitions. EFI is not required, but can be good for future boot compatibility. Remember that 800K EFI is not enough for 13.0 loader. Should be bigger.
 
Thanks I understand that but I have files on ada1 mbr. My only choice I guess is to swap the drive out to a windows pc and copy the files to a USB. reinstall ssd and format both drives freebsd-zfs. copy files to the reformatted ZFS drives.
Any other suggestions
 
balanga
I created the directory used the mount code you suggested. The files on ada1 SSD is MBR file system no files copied. The save directory is empty.
 
If you run df -h does it tell you how much free space you have on /dev/ada1s2?

Are you sure you have something?
As an alternative boot with a Linux installation pen drive and mount the partition to see what Linux thinks you have.
 
I have copied all the files on ada1s2 to my NAS wdmycloud. I can access this drive. I would now like to format both ada0 and ada1 HDD. These will only be used for freebsd. Can you show me how to do this.
 
You need to partition the disks first using gpart() and then format the partitions using newfs()if the partition if it is a type freebsd-ufs. With zfs it's s little more complicates. You can find a good guide here.
 
This what I have. I have followed the freebsd page and have the /newdisk in my fstab file. It still does not mount.

/dev/ada1p1 /newdisk ufs rw 2 2

Geom name: nvd0
Providers:
1. Name: nvd0
Mediasize: 500107862016 (466G)
Sectorsize: 512
Mode: r2w2e4
descr: Samsung SSD 970 EVO 500GB
lunid: 0025385a01403832
ident: S5H7NS0NA13742M
rotationrate: 0
fwsectors: 0
fwheads: 0

Geom name: ada0
Providers:
1. Name: ada0
Mediasize: 1000204886016 (932G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
descr: WDC WD10EZEX-60WN4A1
lunid: 50014ee211a25f71
ident: WD-WCC6Y4RUCAJK
rotationrate: 7200
fwsectors: 63
fwheads: 16

Geom name: ada1
Providers:
1. Name: ada1
Mediasize: 128035676160 (119G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r1w1e2
descr: M4-CT128M4SSD2
lunid: 500a07510311455b
ident: 0000000011220311455B
rotationrate: 0
fwsectors: 63
fwheads: 16

How do I mount ada1 for example

=> 40 250069600 ada1 GPT (119G)
40 2008 - free - (1.0M)
2048 250066944 1 freebsd-ufs (119G)
250068992 648 - free - (324K)

lsblk

DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
ada0 0:142 932G ufs diskid/DISK-WD-WCC6Y4RUCAJK -
ada1 0:145 119G GPT diskid/DISK-WD-WCC6Y4RUCAJK -
<FREE> -:- 1.0M - - -
ada1p1 0:146 119G freebsd-ufs - /newdisk
<FREE> -:- 324K - - -
 
/dev/ada1p1: Unix Fast File system [v2] (little-endian) last mounted on /newdisk, last written at Sun Mar 28 16:42:35 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

=> 40 250069600 ada1 GPT (119G)
40 2008 - free - (1.0M)
2048 250066944 ada1p1 freebsd-ufs (119G)
250068992 648 - free - (324K)
 
Back
Top