Kamis, 16 April 2020

MOUNT DVD CLI

How to Mount a DVD Using the Command Line

A DVD drive is a device. Devices in Linux are treated the same way as other objects and are listed as files.
  1. Use the cd command to go to the /dev folder as follows:
    cd /dev
  2. Use the ls command and the less command to get a listing.
    ls -lt | less
  3. Look through the listing to find the following two lines:
    cdrom -> sr0
    dvd -> sr0
    This indicates that both the CD-ROM and DVD link to sr0. You can mount either a DVD or cd using the same command.
  4. Before you can use the mount command to mount a DVD or CD, you need somewhere to mount the DVD. To do this, navigate to the /media/ folder using the following command:
    cd /media
  5. Create a folder to mount the DVD into.
    sudo mkdir mydvd
  6. Mount the DVD using the following command:
    sudo mount /dev/sr0 /media/mydvd
  7. When the DVD mounts, navigate to the /media/mydvd folder and perform a directory listing in the terminal window.
cd /media/mydvd
ls -lt

How to Unmount the DVD Using the Command Line

To unmount the DVD, run the following command:
sudo umount /dev/sr0

How to Eject a DVD Using the Command Line

To eject the DVD using the command line, use the following command:
sudo eject /dev/sr0

Summary

In most cases, you'll use the graphical tools to navigate and play the contents of DVDs. However, if you're using a computer without a graphical display, manually mount the DVD.

Tidak ada komentar:

Posting Komentar