View Single Post

  #4 (permalink)  
Old 03-24-2008, 05:48 PM
Tux-Idiot Tux-Idiot is offline
Member
User
 
Join Date: Mar 2008
My distro: Debian, Slackware, LFS
Posts: 83
Rep Power: 1
Tux-Idiot is on a distinguished road
Talking

Quote:
Originally Posted by virendra View Post
first of all u have to get the diver of your CD or DVD

[root@viren ~]# eject -n
eject: device is `/dev/hdc'

the device driver is /dev/hdc

now mount the cdrom

#mount /dev/hdc /mnt/cdrom


create this directory cdrom if in case it doesn't exist



and in case u want to use this command as a shortcut

#mount /mnt/cdrom

then

#ln -s /dev/hdc /mnt/cdrom




Happy Mounting

joe@desktop# cat >> /etc/fstab << EOF
/dev/cdrom-device /dest/mount/point iso9660 0 0 # AutoUpdate
EOF
joe@desktop# mount -v /dev/cdrom-device
joe@desktop# cd /dest/mount/point/interesting-things
..
snip
..
joe@desktop# eject -v /dev/cdrom-device && mount -v /dev/cdrom-device && echo $?
:-d
man -k fstab
Reply With Quote