mount路径写全
比如/sbin/mount 作者: larry 时间: 2023-4-20 14:58 本帖最后由 larry 于 2023-4-20 15:00 编辑
You can configure your Debian system to automatically mount USB drives when they are inserted using the udev and systemd rules. Here's a step-by-step guide:
1、Install udev and systemd (if not already installed):
Insert a USB drive and check if it's mounted automatically under /media. You can use the df -h command to list all mounted filesystems.
Notes:
The above configuration mounts USB drives to /media/<device-name>. You can change the mount point by editing the udev rule file.
This setup assumes that your USB drive uses a supported filesystem, such as FAT32, NTFS, or ext4. If your drive uses a different filesystem, you might need to install additional packages to enable support for that filesystem.
To unmount a USB drive, you can use the umount /media/<device-name> command before you remove it from the system.