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.
-
Use the cd command to go to the /dev folder as follows:
cd /dev
-
ls -lt | less
-
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.
-
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
-
Create a folder to mount the DVD into.
sudo mkdir mydvd
-
Mount the DVD using the following command:
sudo mount /dev/sr0 /media/mydvd
-
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