Temporarily mount a USB memory device.
Use the FHS top-level directory intended for removable media.
Which mount point is most appropriate?
/media is the FHS location for removable media. Desktop environments may add user and device subdirectories; /mnt is also common for manual temporary mounts.
Detailed explanation
/media/usbCorrect. /media/usb is an appropriate removable-media mount point.
Correct. /media/usb is an appropriate removable-media mount point.
/etc/usbIncorrect. /etc stores system configuration.
Incorrect. /etc stores system configuration.
/usr/usbIncorrect. /usr stores installed software and shared data.
Incorrect. /usr stores installed software and shared data.
/proc/usbIncorrect. /proc is a virtual kernel filesystem.
Incorrect. /proc is a virtual kernel filesystem.
Try it yourself
An example you can run in a temporary verification environment.
findmnt --target /media 2>/dev/null || trueExpected result
/media自体または配下にマウントがあれば対応情報Key points
- /media is for removable media
- /mnt is also used for temporary manual mounts
- Desktop automount rules vary
Notes
- Environment: FHS 3.0/一般的Linux
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.