Solved Mounting /dev/nvd0

unfathomable_black_belt

New Member


Messages: 3

I have a separate Windows Hard Drive that i am trying to access.

Code:
gpart show
=>        34  2000409197  nvd0  GPT  (954G)
          34        2014        - free -  (1.0M)
        2048     1085440     1  ms-recovery  (530M)
     1087488      204800     2  efi  (100M)
     1292288       32768     3  ms-reserved  (16M)
     1325056  1999081472     4  ms-basic-data  (953G)
  2000406528        2703        - free -  (1.3M)

=>        34  2000409197  diskid/DISK-2K1720078441  GPT  (954G)
          34        2014                            - free -  (1.0M)
        2048     1085440                         1  ms-recovery  (530M)
     1087488      204800                         2  efi  (100M)
     1292288       32768                         3  ms-reserved  (16M)
     1325056  1999081472                         4  ms-basic-data  (953G)
  2000406528        2703                            - free -  (1.3M)

=>       40  976773088  ada0  GPT  (466G)
         40       1024     1  freebsd-boot  (512K)
       1064  968883192     2  freebsd-ufs  (462G)
  968884256    7888872     3  freebsd-swap  (3.8G)

it shows up in gpart and dmesg as nvd0, but every combination of mount and ntfs-3g i have tried fails for different reasons. Heres a few:

Code:
# mount /dev/nvd0 /mnt/windows/
mount: /dev/nvd0: No such file or directory

# ntfs-3g /dev/nvd0 /mnt/windows/
NTFS signature is missing.
Failed to mount '/dev/nvd0': Invalid argument
The device '/dev/nvd0' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

i have added nvme_load="YES" and nvd_load="YES" to /boot/loader.conf as well


any help would be appreciated!
 

ralphbsz

Son of Beastie

Reaction score: 2,301
Messages: 3,211

nvd0 is the whole disk. The NTFS file system is in a partition. Judging by the gpart output, it's /dev/nvd0p4. You need to read the section in the handbook that talks about disks and partitions.
 
OP
U

unfathomable_black_belt

New Member


Messages: 3

Thanks for the reply, i tried my best to read the handbook before submitting the question. Maybe you can provide a specific link. The ones that I have read over and over are these three:
Disk Organization
Mounting and Unmounting
Adding Disks

Is there somewhere in the handbook that I have missed that discusses nvd and nvme? I was only able to find the fact that i need to add configurations to /boot/loader.conf through other forum posts, and i still dont fully grasp what that is doing and i still dont know if those are necessary.

Regardless, when trying to mount /dev/nvd0p4 i see the following:
Code:
# ntfs-3g /dev/nvd0p4 /mnt/windows/
Windows is hibernated, refused to mount.
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Falling back to read-only mount because the NTFS partition is in an
unsafe state. Please resume and shutdown Windows fully (no hibernation
or fast restarting.)
fuse: failed to open fuse device: No such file or directory

So it seems like this is an issue with windows failing to fully shutdown
 
OP
U

unfathomable_black_belt

New Member


Messages: 3

There are a couple of things I had to do to get this working, thank you for your help ralphbsz you beautiful son of a beastie.

In order to properly shutdown Windows, there is a configuration option in the Power Settings to shutdown without a fast startup.

The next thing I had to do was run

Code:
kldload fuse.ko

Now i am able to run

Code:
ntfs-3g /dev/nvd0p4 /mnt/windows

I can mark this as solved, but if you know of any reference material for me to better understand nvme/nvd concepts, kldload, and the difference between /dev/nvd* and /dev/disk* please pass them my way
 
Top