In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "how to use the Linux eject command". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to use the Linux eject command" can help you solve the problem.
Linux commonly used command eject command is used to exit the extractable device. If the device is attached, eject will remove the device before exiting.
Syntax eject [- dfhnqrstv] [- a] [- c] [device] parameter description:
[device] the device can be a driver name or a mount point.
-an or-auto controls the automatic exit function of the device.
-c or-changerslut select the optical drive in the optical drive cabinet.
-d or-default displays the preset device instead of actually performing the action.
-f or-floppy exits the extractable disk.
-h or-help displays help.
-n or-noop displays the specified device.
-Q or-tape exits the tape.
-r or-cdrom exits the disc.
-s or-scsi exits the device with the SCSI instruction.
-t or-trayclose close the tray of the CD.
Displays detailed instructions when-v or-verbose is executed.
Example 1) No device type is specified, and cdrom is popped up directly. In this case, all methods are tried in turn until they pop up.
[root@localhost ~] # eject-v / use-v to display the process of instruction execution eject: using default device `cdrom' eject: device name is `cdrom' eject: expanded name is `/ dev/cdrom' eject:` / dev/cdrom' is a link to `/ dev/sr0' eject:` / dev/sr0' is not mounted eject: `/ dev/sr0' is not a mount point eject: checking if device "/ dev/sr0" has a removable or hotpluggable flag eject:` / dev/sr0' is not a multipartition device eject: trying to eject `/ dev/sr0' using CD-ROM eject command / / try the first pop-up eject: CD-ROM eject command failed eject: trying to eject` / dev/sr0' using SCSI commands / / try the second pop-up eject: SCSI eject succeeded2) use the "- r" option Eject cdrom
[root@localhost ~] # mount / / check if there is a CD mount / dev/mapper/VolGroup-lv_root on / type ext4 (rw). / dev/sr0 on / media/VBox_GAs_5.2.16 type iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=0,gid=0,iocharset=utf8,mode=0400,dmode=0500) [root@localhost ~] # eject-v-r / / eject CD eject: using default device `cdrom' … Eject: trying to eject `/ dev/sr0' using CD-ROM eject command eject: CD-ROM eject command succeeded, that's all for "how to use the Linux eject command". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.