Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ntfs and ext doesn't mount #4

Open
timsofteng opened this issue Dec 15, 2020 · 25 comments
Open

ntfs and ext doesn't mount #4

timsofteng opened this issue Dec 15, 2020 · 25 comments

Comments

@timsofteng
Copy link

Hello. I installed dsbmd according to guide but I can't work with ntfs and ext partitions. I see devices in /media but they sometimes are empty or operation not permitted. Sometimes they mount well sometimes not. I don't understand. Could you help me please?

@mrclksr
Copy link
Owner

mrclksr commented Dec 15, 2020

Hi @timsofteng ,

could you please post the output of tail -100 /var/log/dsbmd.log?

@timsofteng
Copy link
Author

@mrclksr yes, sure.

dsbmd: dsbmd started on Tue Dec 15 15:48:51 2020
dsbmd: stat(ugen0.4): No such file or directory on Tue Dec 15 15:48:51 2020
dsbmd: Client with UID 1001 connected on Tue Dec 15 15:53:28 2020
dsbmd: Client with UID 1001 disconnected on Tue Dec 15 15:53:28 2020
dsbmd: Client with UID 1001 connected on Tue Dec 15 15:57:46 2020
dsbmd: Client with UID 1001 disconnected on Tue Dec 15 15:57:46 2020
dsbmd: Client with UID 1001 connected on Tue Dec 15 15:57:48 2020
dsbmd: Client with UID 1001 disconnected on Tue Dec 15 15:57:48 2020
dsbmd: Client with UID 1001 connected on Tue Dec 15 15:57:51 2020
dsbmd: Device /dev/ada0p1 mounted on /media/System-reserviert by UID 1001 on Tue Dec 15 15:57:52 2020
dsbmd: Device /dev/ada0p2 mounted on /media/ada0p2 by UID 1001 on Tue Dec 15 15:57:53 2020
dsbmd: Device /dev/ada0p3 mounted on /media/ada0p3 by UID 1001 on Tue Dec 15 15:57:53 2020
dsbmd: Device /dev/ada0p4 mounted on /media/ada0p4 by UID 1001 on Tue Dec 15 15:57:54 2020
dsbmd: Device /dev/ada0p5 mounted on /media/fabd1b43-9da0-4a78-b458-28dac6e579f5 by UID 1001 on Tue Dec 15 15:57:55 2020
dsbmd: Device /dev/da0s1 mounted on /media/nixos by UID 1001 on Tue Dec 15 15:57:57 2020
dsbmd: Client with UID 1001 disconnected on Tue Dec 15 15:58:16 2020
dsbmd: Client with UID 1001 connected on Tue Dec 15 15:58:35 2020
dsbmd: Client with UID 1001 disconnected on Tue Dec 15 15:58:35 2020
dsbmd: dsbmd exited on Tue Dec 15 16:03:45 2020
dsbmd: dsbmd started on Tue Dec 15 16:04:59 2020
dsbmd: stat(ugen0.4): No such file or directory on Tue Dec 15 16:04:59 2020
dsbmd: Client with UID 1001 connected on Tue Dec 15 16:08:08 2020
dsbmd: Device /dev/ada0p1 mounted on /media/System-reserviert by UID 1001 on Tue Dec 15 16:08:09 2020
dsbmd: Device /dev/ada0p2 mounted on /media/ada0p2 by UID 1001 on Tue Dec 15 16:08:10 2020
dsbmd: Device /dev/ada0p3 mounted on /media/ada0p3 by UID 1001 on Tue Dec 15 16:08:10 2020
dsbmd: Device /dev/ada0p4 mounted on /media/ada0p4 by UID 1001 on Tue Dec 15 16:08:11 2020
dsbmd: Device /dev/ada0p5 mounted on /media/fabd1b43-9da0-4a78-b458-28dac6e579f5 by UID 1001 on Tue Dec 15 16:08:12 2020
mount_fusefs: failed to exec fuse daemon: No such file or directory
dsbmd: Device /dev/da0s1 mounted on /media/ventoy by UID 1001 on Tue Dec 15 16:08:13 2020
dsbmd: Device /dev/da0s2 mounted on /media/VTOYEFI by UID 1001 on Tue Dec 15 16:08:13 2020
dsbmd: Client with UID 1001 disconnected on Tue Dec 15 16:08:14 2020
dsbmd: Client with UID 1001 connected on Tue Dec 15 16:08:16 2020
dsbmd: Client with UID 1001 disconnected on Tue Dec 15 16:08:16 2020
dsbmd: Client with UID 1001 connected on Tue Dec 15 16:18:18 2020
dsbmd: Device /dev/da0s1 mounted on /media/nixos by UID 1001 on Tue Dec 15 16:18:19 2020
mount_fusefs: failed to exec fuse daemon: No such file or directory
dsbmd: Device /dev/da1s1 mounted on /media/ventoy by UID 1001 on Tue Dec 15 16:18:20 2020
dsbmd: Device /dev/da1s2 mounted on /media/VTOYEFI by UID 1001 on Tue Dec 15 16:18:20 2020
dsbmd: Client with UID 1001 disconnected on Tue Dec 15 16:18:21 2020
dsbmd: Client with UID 1001 connected on Tue Dec 15 16:18:24 2020
dsbmd: Client with UID 1001 disconnected on Tue Dec 15 16:18:28 2020
dsbmd: Client with UID 1001 connected on Tue Dec 15 16:20:41 2020
dsbmd: Device /dev/da0s1 mounted on /media/nixos by UID 1001 on Tue Dec 15 16:20:42 2020
dsbmd: Client with UID 1001 disconnected on Tue Dec 15 16:20:43 2020
dsbmd: dsbmd exited on Tue Dec 15 16:23:09 2020
dsbmd: Lost connection to devd. Reconnecting ... on Tue Dec 15 16:23:09 2020
dsbmd: dsbmd started on Tue Dec 15 18:30:36 2020
dsbmd: stat(ugen0.4): No such file or directory on Tue Dec 15 18:30:36 2020

@timsofteng
Copy link
Author

There is log after start system.

By the way device which called "nixos" is usb portable drive which was NOT in port. I plugged it some times before but not under current uptime session. I dunno why dsbmd try to mount it as well.

@mrclksr
Copy link
Owner

mrclksr commented Dec 15, 2020

Do you have fusefs-ext2 and fusefs-ntfs installed?

By the way device which called "nixos" is usb portable drive which was NOT in port. I plugged it some times before but not under current uptime session. I dunno why dsbmd try to mount it as well.

The log isn't deleted after reboot. What you see are older entries.

@timsofteng
Copy link
Author

@mrclksr yep, all two are installed.

@mrclksr
Copy link
Owner

mrclksr commented Dec 15, 2020

Ok. Let's start with NTFS: Try to mount your NTFS device. If it fails, get the last 20 lines from /var/log/dsbmd.log via tail -20 /var/log/dsbmd.log and post them here.

@timsofteng
Copy link
Author

Ok. Let's start with NTFS: Try to mount your NTFS device. If it fails, get the last 20 lines from /var/log/dsbmd.log via tail -20 /var/log/dsbmd.log and post them here.

No errors. It mounts and works with manual mounting.

@mrclksr
Copy link
Owner

mrclksr commented Dec 15, 2020

What about Ext?

@timsofteng
Copy link
Author

What about Ext?

It works as well. Exfat have some issue. It mounts but contents are hidden. Like its empty but it doesn't

@mrclksr
Copy link
Owner

mrclksr commented Dec 15, 2020

What does tail -20 /var/log/dsbmd.log say?

@timsofteng
Copy link
Author

dsbmd: Client with UID 1001 disconnected on Tue Dec 15 21:21:28 2020
dsbmd: Client with UID 1001 connected on Tue Dec 15 21:21:36 2020
mount_fusefs: failed to exec fuse daemon: No such file or directory
dsbmd: Device /dev/da0s1 mounted on /media/ventoy by UID 1001 on Tue Dec 15 21:21:37 2020
dsbmd: Client with UID 1001 disconnected on Tue Dec 15 21:21:37 2020
dsbmd: Client with UID 1001 connected on Tue Dec 15 21:21:42 2020
dsbmd: Device /dev/da0s2 mounted on /media/VTOYEFI by UID 1001 on Tue Dec 15 21:21:42 2020
dsbmd: Client with UID 1001 disconnected on Tue Dec 15 21:21:42 2020
dsbmd: Client with UID 1001 connected on Tue Dec 15 21:23:29 2020
dsbmd: Client with UID 1001 disconnected on Tue Dec 15 21:23:29 2020
dsbmd: Client with UID 1001 connected on Tue Dec 15 21:23:35 2020
dsbmd: Client with UID 1001 disconnected on Tue Dec 15 21:23:35 2020
dsbmd: Client with UID 1001 connected on Tue Dec 15 21:23:46 2020
mount_fusefs: failed to exec fuse daemon: No such file or directory
dsbmd: Device /dev/da0s1 mounted on /media/ventoy by UID 1001 on Tue Dec 15 21:23:47 2020
dsbmd: Client with UID 1001 disconnected on Tue Dec 15 21:23:47 2020
dsbmd: Client with UID 1001 connected on Tue Dec 15 21:23:57 2020
dsbmd: Client with UID 1001 disconnected on Tue Dec 15 21:23:57 2020
dsbmd: Client with UID 1001 connected on Tue Dec 15 21:24:00 2020
dsbmd: Client with UID 1001 disconnected on Tue Dec 15 21:24:00 2020

@mrclksr
Copy link
Owner

mrclksr commented Dec 15, 2020

This is interesting: mount_fusefs: failed to exec fuse daemon: No such file or directory

Does /usr/local/bin/fuse-ext2 exist?

@timsofteng
Copy link
Author

Yes
image

@mrclksr
Copy link
Owner

mrclksr commented Dec 15, 2020

What does grep ^ext /usr/local/etc/dsbmd.conf say?

@timsofteng
Copy link
Author

ext_opts = "rw,noatime"
ext4_mount_cmd_usr = "/sbin/mount_fusefs auto "${DSBMD_MNTPT}" fuse-ext2 -o 'rw+' ${DSBMD_DEVICE} "${DSBMD_MNTPT}""

@mrclksr
Copy link
Owner

mrclksr commented Dec 15, 2020

What happens when you execute the command manually as root?:

/sbin/mount_fusefs auto /mnt fuse-ext2 -o 'rw+' /dev/da0s1

@timsofteng
Copy link
Author

looks like something wrong with this command
image

@mrclksr
Copy link
Owner

mrclksr commented Dec 15, 2020

Sorry, I forgot the second mount point:

/sbin/mount_fusefs auto /mnt fuse-ext2 -o 'rw+' /dev/da0s1 /mnt

@timsofteng
Copy link
Author

I've tried but nothing happens.

@mrclksr
Copy link
Owner

mrclksr commented Dec 17, 2020

I've tried but nothing happens.

If the command succeeds, there is no message printed on the screen. Have you checked if the device is mounted on /mnt after executing the command?

@timsofteng
Copy link
Author

I've tried but nothing happens.

If the command succeeds, there is no message printed on the screen. Have you checked if the device is mounted on /mnt after executing the command?

no, it doesn't.

@mrclksr
Copy link
Owner

mrclksr commented Dec 17, 2020

What if you mount it read-only?

/sbin/mount_fusefs auto /mnt fuse-ext2 -o 'ro' /dev/da0s1 /mnt

@timsofteng
Copy link
Author

What if you mount it read-only?

/sbin/mount_fusefs auto /mnt fuse-ext2 -o 'ro' /dev/da0s1 /mnt

sorry for delay. nothing happens

@timsofteng
Copy link
Author

should i enable it manually?

usermount = true

@mrclksr
Copy link
Owner

mrclksr commented Dec 28, 2020

should i enable it manually?

This is enabled by default. Make sure vfs.usermount is set to 1.

In order to make sure, there is no problem with your storage device, create Ext4 formatted memory disk, and see if dsbmd is
able to mount it:

# touch ext4.img
# mdconfig -s 1G -f ext4.img
# mkfs.ext4 /dev/md0
# mdconfig -d -u 0
# mdconfig -f ext4.img

Then try to mount md0 via DSBMC, or dsbmc-cli -m /dev/md0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants