FreeBSD Mount CDROM / DVD Drive From The Command Prompt

by nixcraft on May 10, 2006 · 1 comment

Q. How do I mount the CDROM from FreeBSD shell or command line?

A. You need to use mount command. The mount utility calls the mount(2) system call to prepare and graft a special device or the remote node (rhost:path) on to the file system tree at the point node. If either special or node are not provided, the appropriate information is taken from the fstab(5) file.

In most cases /etc/fstab lists your CDROM drive so all you have do is type the following command (login as the root):
# mount /cdrom
Now change directory to /cdrom to access the contains of CD / DVD:
# cd /cdrom
# ls
The system maintains a list of currently mounted file systems. If no arguments are given to mount, this list is printed.

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 1 comment… read it below or add one }

1 arzeth July 6, 2010

For FreeBSD 8 (mine is 8.1-RC2)
1. Make sure /media/cdrom folder exists.
2. mount -t cd9660 /dev/acd0 /media/cdrom

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 8 + 11 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: