helloSystem / Filer

A file manager that can also render the desktop
GNU General Public License v2.0
31 stars 9 forks source link

The disk installed on the computer is not displayed on the desktop #101

Open louies0623 opened 3 years ago

louies0623 commented 3 years ago

The hard disk icon detected by the computer should appear on the desktop, but in fact only the show disk icons of Startvoliume, appear. USB drive can working. but Windows disk, Fedora disk, installed Hello OS on the hard drive disk no show.

probonopd commented 3 years ago

Please open a Terminal and type mount. What does it say?

What happens if you manually mount these disks?

louies0623 commented 3 years ago

Where is Terminal? The new version of DOCK cannot open any files.

"Could not launch Filer /applications/ preferences"

probonopd commented 3 years ago

Please type "terminal" in the Search box in the upper left corner.

"Could not launch Filer /applications/ preferences"

Separate issue.

louies0623 commented 3 years ago

20210629_023500

probonopd commented 3 years ago

What do you see on the desktop? What would you expect to see on the desktop?

louies0623 commented 3 years ago

Several hard drives on the computer are all displayed on the desktop Whether it’s a fedora system hard drive or a Windows hard drive .

probonopd commented 3 years ago

Several hard drives on the computer are all displayed on the desktop

The desktop just displays what is mounted.

So from the mount command it looks like those additional drives are not mounted. Can you mount them by hand, and then see whether they appear on the desktop?

Possibly this is an issue with automount?

Does anything change when you run sudo service devd restart?

louies0623 commented 3 years ago

Im try

louies0623 commented 3 years ago

No nothing

probonopd commented 3 years ago

Can you mount them by hand? What does mount say now?

louies0623 commented 3 years ago

Wait a minute I made a mistake

louies0623 commented 3 years ago

Still no change

probonopd commented 3 years ago

Can you mount them by hand?

louies0623 commented 3 years ago

I tried, after the Hot swap and still the same.

kettle-7 commented 3 years ago

If you open Filer and go to computer:// does the device show there?

louies0623 commented 3 years ago

How to use. Since he made the desktop "simple", I have not been able to find the folder with the option "go to"

louies0623 commented 3 years ago

And there is no system language option that allows me to easily find the file manager settings in my own language. Not to mention that the control keys in the system are not friendly to me on the PC keyboard, which prevents me from using shortcut keys.

probonopd commented 3 years ago

If you open Filer and go to computer:// does the device show there?

Go -> Computer. I expect it to show the exact same as on the Desktop.

Not to mention that the control keys in the system are not friendly to me on the PC keyboard

Command+Shift+C

probonopd commented 3 years ago

What happens if you attach an USB stick?

louies0623 commented 3 years ago

My computer still does not show my hard drive, but USB is working.

louies0623 commented 3 years ago

One more thing, the Command key is the windows key, right, it changes to use the Alt key on my keyboard, Ctrl+C doesn’t work, so I press Alt+C. I’m quite confused. Because I typed the command in the sticky note, it is convenient to check whether I typed the command wrong, and then I want to copy it on the terminal but there is no copy, paste and cut function in the right-click option

I tried to adjust it in the keyboard shortcut settings. There is no option for the keyboard control options to switch to the USB or PC keyboard control key layout.

probonopd commented 3 years ago

Hello @vermaden, can you tell why hot-plugging USB devices works but fixed (cold-plugged) disks in the computer do not get automounted?

It looks like https://github.com/vermaden/automount/blob/master/automount_devd.conf only uses da but not ada disks.

If this is by design, would you consider adding such a feature (optionally)?

Users coming from Windows or the Mac will find it surprising that the fixed disks (other than the root disk) inside the computer are not mounted automatically.

louies0623 commented 3 years ago

Additional explanation: The hard disk can be displayed on the installation of Hello OS and the hard disk tool, but the "partition" of the hard disk is not displayed on the desktop (I am not sure of the exact name) .

kettle-7 commented 3 years ago

First, you need a root shell. Run sudo -i in a terminal.

Tell me what

ls /dev | grep ada

gives you. For me, I get

ada0p1
ada0p2
... 
ada0p10

For each of them, we need more information from from file

file --special /dev/ada0p1

You will get more information. To mount them, you need to know the filesystem type. If it says ntfs, for example, you need

mkdir -p /mnt/something
mount -t ntfs /dev/ada0p1 /mnt/something

The disk should show on the desktop.

Instead of NTFS, you might get:

vermaden commented 3 years ago

If you really need automount(8) to also consider ada disks then just modify its devd(8) config and add ada there.

probonopd commented 3 years ago

Thanks @vermaden - I suppose you did leave this away on purpose: why?

probonopd commented 3 years ago

@louies0623 please test this:

Does it work now?

louies0623 commented 3 years ago

The Open As Root option doesn't work

probonopd commented 3 years ago

sudo -A -E launch FeatherPad /usr/local/etc/devd/automount_devd.conf

louies0623 commented 3 years ago

sudo -A -E launch FeatherPad /usr/local/etc/devd/automount_devd.conf

It say: Users-PC% sudo -A -E launch FeatherPad /usr/local/etc/devd/automount_devd.conf env: python3.7: No such file or directory sudo: no password was provided sudo: a password is required

0F28

kettle-7 commented 3 years ago

You NEED to stop putting python3.7 for the hash bang!

probonopd commented 3 years ago

Indeed! Should be fixed in the next build.

probonopd commented 2 years ago

The hard disk icon detected by the computer should appear on the desktop, but in fact only the show disk icons of Startvoliume, appear. USB drive can working. but Windows disk, Fedora disk, installed Hello OS on the hard drive disk no show.

Should hopefully be addressed by https://github.com/helloSystem/ISO/commit/f55f4bde8dce2954dcdb07accd02bae173e45d28 - let's see whether it works...

vermaden commented 2 years ago

Thanks @vermaden - I suppose you did leave this away on purpose: why?

The automount(8) is for removable disks (da). The local disks (ada) I assume does not need to be automounted as they are always there - you create your needed filesystems once and add it to /etc/fstab - or even not if its ZFS.

vermaden commented 2 years ago

I modified automount(8) and added additional automount_devd_localdisks.conf that you can use for your needs. Will commit this soon.

vermaden commented 2 years ago

Added support for ada(4) devoces to automount(8).

Here: https://github.com/vermaden/automount/blob/master/automount

The devd(8) additional configs. https://github.com/vermaden/automount/blob/master/automount_devd_diskimage.conf https://github.com/vermaden/automount/blob/master/automount_devd_localdisks.conf

probonopd commented 2 years ago

Thank you very much @vermaden, highly appreciated. Let's remove the need for gvfs and such things entirely by your beautiful, understandable scripts.