There is a bug somewhere (I'm not sure where).

ziomario

Aspiring Daemon

Reaction score: 44
Messages: 616

Hello to everyone. I think that I've found a bug. Judje by yourself.

Code:
root@marietto:~/Desktop # lklfuse -o type=ext4 /dev/da2s1 /mnt/da2s1

root@marietto:~/Desktop # cd /mnt/da2s1

root@marietto:/mnt/da2s1 # ls

.Trash-0        lost+found        ubuntu-budgie-gpu.img    vms
.Trash-1000        OS            Virt

root@marietto:/mnt/da2s1 # thunar


Istantanea_2021-08-07_18-31-17.png
 

Alain De Vos

Son of Beastie

Reaction score: 778
Messages: 2,545

Caja,nemo,pcmanfm are alternative filemanagers to thunar. These could direct to where the problem is located.
 
OP
ziomario

ziomario

Aspiring Daemon

Reaction score: 44
Messages: 616

I don't like caja and nemo because I can't write manually the path of the file and folder I want to reach. pcmanfm is the file manager I want. its similar to thunar and....it works great. It allows to me to see the content of the mounted file systems. So,now we are sure that thunar is bugged.
 

Tieks

Well-Known Member

Reaction score: 127
Messages: 307

If the problem is that you don't see the files beginning with a dot, these files are considered hidden files. That is why Thunar doesn't show these files in default mode. You can choose to see the files, there's an option 'Show hidden files' under menu item View (it's Visualimacaroni in your case, I think).
 
OP
ziomario

ziomario

Aspiring Daemon

Reaction score: 44
Messages: 616

no,I don't see any files. And even pcmanfm is not working like thunar. Check the image below :


Istantanea_2021-08-07_23-09-26.png
 

DanDare

Member

Reaction score: 32
Messages: 61

After you mount the folder

What's output of command:
ls -la / | grep mnt

And what's output of command:
ls -la /mnt/da2s1
 
OP
ziomario

ziomario

Aspiring Daemon

Reaction score: 44
Messages: 616

Code:
ls -la / | grep mnt
drwxr-xr-x  11 root  wheel          512 28 lug 18:17 mnt
Code:
ls -la /mnt/da2s1

total 44
drwxrwxrwx   8 1000  1000    4096  1 gen  1970 .
drwxr-xr-x  11 root  wheel    512 28 lug 18:17 ..
drwxrwxrwx   5 1000  1000    4096 30 mag 18:17 .Trash-0
drwx------   5 1000  1000    4096 11 apr 20:20 .Trash-1000
drwxrwxrwx   2 1000  1000   16384  1 apr 02:13 lost+found
drwxrwxrwx   9 1000  1000    4096 18 lug 16:36 OS
drwxrwxr-x  11 1000  1000    4096 11 lug 18:47 Virt
drwxr-xr-x   4 root  wheel   4096  1 gen  1970 vms
 

DanDare

Member

Reaction score: 32
Messages: 61

Sorry. For the second command I wanted to say:
ls -la /mnt | grep da2s1

:)
 

Vull

Aspiring Daemon

Reaction score: 517
Messages: 822

Code:
ls -la / | grep mnt
drwxr-xr-x  11 root  wheel          512 28 lug 18:17 mnt
Code:
ls -la /mnt/da2s1

total 44
drwxrwxrwx   8 1000  1000    4096  1 gen  1970 .
drwxr-xr-x  11 root  wheel    512 28 lug 18:17 ..
drwxrwxrwx   5 1000  1000    4096 30 mag 18:17 .Trash-0
drwx------   5 1000  1000    4096 11 apr 20:20 .Trash-1000
drwxrwxrwx   2 1000  1000   16384  1 apr 02:13 lost+found
drwxrwxrwx   9 1000  1000    4096 18 lug 16:36 OS
drwxrwxr-x  11 1000  1000    4096 11 lug 18:47 Virt
drwxr-xr-x   4 root  wheel   4096  1 gen  1970 vms
What user account corresponds to uid=1000? This user account must not exist in your /etc/passwd file, because, if it did, you would see user account names and group account names there, instead of the number 1000. uid=1000 is usually your default Linux account uid from distributions like Ubuntu or Debian. FreeBSD user accounts usually start with a default uid of 1001 unless you override it. Do you even have a lower-level user account, or do you just login as root to do everything?
 

DanDare

Member

Reaction score: 32
Messages: 61

What user account corresponds to uid=1000? This user account must not exist in your /etc/passwd file, because, if it did, you would see user account names and group account names there, instead of the number 1000. uid=1000 is usually your default Linux account uid from distributions like Ubuntu or Debian. FreeBSD user accounts usually start with a default uid of 1001 unless you override it. Do you even have a lower-level user account, or do you just login as root to do everything?
Can't remember well but that would be just normal as he's mounting some external ext4 partition? Anyway from permission bits still had to be show in Thunar, right?
 

DanDare

Member

Reaction score: 32
Messages: 61

Other thing is: xfce probably auto mounting these under /media folder so perhaps conflicting if you try mounting these again

1628383928429.png
 

Vull

Aspiring Daemon

Reaction score: 517
Messages: 822

Other thing is: xfce probably auto mounting these under /media folder so perhaps conflicting if you try mounting these again

View attachment 10933
Good guess. I don't see enough information to diagnose this problem, but whatever it is, I don't think it's a FreeBSD bug.

I have too little information and too few clues as to what OP is even trying to do.
 
OP
ziomario

ziomario

Aspiring Daemon

Reaction score: 44
Messages: 616

Sorry. For the second command I wanted to say:
ls -la /mnt | grep da2s1

:)

lklfuse -o type=ext4 /dev/da2s1 /mnt/da2s1
ls -la /mnt | grep da2s1
d--------- 0 root wheel 0 1 gen 1970 da2s1
 
OP
ziomario

ziomario

Aspiring Daemon

Reaction score: 44
Messages: 616

What user account corresponds to uid=1000? This user account must not exist in your /etc/passwd file, because, if it did, you would see user account names and group account names there, instead of the number 1000. uid=1000 is usually your default Linux account uid from distributions like Ubuntu or Debian. FreeBSD user accounts usually start with a default uid of 1001 unless you override it. Do you even have a lower-level user account, or do you just login as root to do everything?

I'm using root to do everything. Please don't suggest me to don't use root because security risks. I know that. I use the root account because I can,I'm learning FreeBSD and for me it's easier at the moment. For sure I will stop using when I will have taken more confidence with the os. The important informations are safe,don't worry.
 
OP
ziomario

ziomario

Aspiring Daemon

Reaction score: 44
Messages: 616

Good guess. I don't see enough information to diagnose this problem, but whatever it is, I don't think it's a FreeBSD bug.

I have too little information and too few clues as to what OP is even trying to do.

I'm here to explain. Just ask and I will reply with the informations you need to diagnose the problem. Anyway,I'm not doing something special. I want to mount in rw or ro mode the disks that are attached to my PC when I use FreeBSD. Easy. I'm mounting these disks (some of them are formatted with ext4,some others with ntfs and one with ufs) using the proper command lines because when I do this using the icons that are on my desktop,I can't mount any of them. Below u can see the error that I get,that,in english language sounds like this : "can't mount Android2 ; mount: failed with". For this reason,I'm not mounting a disk two or more times. Simply I'm not trying to mount any disk clicking on the disk icon on my desktop because it does not wok. I mount every disk using the desktop manager xfce4 and I don't get errors. This is the script that I use :

lklfuse -o type=ext4 /dev/ada0s1 /mnt/ada0s1 # CT500 (466 GB / Ubuntu 21.04)
lklfuse -o type=ext4 /dev/ada1p3 /mnt/ada1p3 # Samsung SSD 860 EVO 500GB / nixos
lklfuse -o type=ext4 /dev/da1p1 /mnt/da1p1 # Toshiba (932G)
lklfuse -o type=ext4 /dev/da2s1 /mnt/da2s1 # 1.8T Toshiba

ntfs-3g /dev/nvd0p2 /mnt/nvd0p2 # Windows da 900GB
ntfs-3g /dev/da0p1 /mnt/da0p1 # Elements
ntfs-3g /dev/da3p2 /mnt/da3p2 # 1.8T Seagate

mount -t ufs /dev/ada1p2 /mnt/ada1p2 # Samsung SSD 860 EVO 500GB / FreeBSD da 100 GB

unfortunately using this method,if I want to see the content of the disks,I can do it only within the terminal. it seems that the desktop managers that I tried aren't able to display it.

Istantanea_2021-08-08_14-09-49.png
 

Vull

Aspiring Daemon

Reaction score: 517
Messages: 822

What desktop environment (DE) are you running? My DE is Mate.

Have you started your DE using the root account or using a lower level account?

My file manager is Caja. In this screenshot below, you can see that Caja has a "Preferences" setting to show hidden files, and I've ticked that setting. This allows me to see the lost+found file in an ext4 partition. If I don't tick that setting, I can't see lost+found because it's a hidden file. See if you can find a similar setting in your file manager.

In your screenshot, see the little up-arrow icons to the right of all those partitions? That up-arrow suggests you have clicked on them. This causes those partitions to be mounted under the /media directory. Then perhaps you're trying to remount them from the command line. This can create conflicts. Try rebooting and repeat your tests without clicking on those partitions to avoid such conflicts.

Screenshot at 2021-08-08 11-11-06.png

Edited to add: Please read the ls(1) manual page.
 

ralphbsz

Son of Beastie

Reaction score: 2,407
Messages: 3,281

I want to mount in rw or ro mode the disks that are attached to my PC when I use FreeBSD.
Note that "foreign" file systems (like NTFS or ext2/3/4 on FreeBSD, or UFS on Linux) are never production quality, and have high risk of data corruption, in particular if you use them to write to the foreign file systems. I would only mount them read-only on FreeBSD. You also have to be very careful to make sure all caches are flushed: Never put Windows to sleep, start FreeBSD, and then mount the NTFS file system from FreeBSD: when Windows goes to sleep, the write cache is not actually written to disk yet, so FreeBSD will find (and perhaps modify) a potentially outdated and inconsistent copy on disk. Always make sure the other operating system is fully shut down (or the file system unmounted, which is not possible for the root filesystem) before switching OSes.
 

DanDare

Member

Reaction score: 32
Messages: 61

lklfuse -o type=ext4 /dev/da2s1 /mnt/da2s1
ls -la /mnt | grep da2s1
d--------- 0 root wheel 0 1 gen 1970 da2s1
See the da2s1 folder permissions from the 'ls -la' command, that's too restrictive, a normal user should not be able to see the filles.

Ziomario: What is the user you're using to launch xfce4? Are you lauching xfce using root account or other account?

What are that folders (mount points) I pointed in the red circle I draw on the image?

And, pretty much what Vull said already. Can you follow his instructions and come back with the results?
 
Top