I ran this command on RHEL 6.3:
# mount /dev/cdrom /mnt
Everything is okay, but after a restart the mounted dir, /mnt
disappears...
I don't know where is it going.
I ran this command on RHEL 6.3:
# mount /dev/cdrom /mnt
Everything is okay, but after a restart the mounted dir, /mnt
disappears...
I don't know where is it going.
Mount doesn't permanently mount the file. To do that, you must edit your /etc/fstab
file. man fstab
will give you all the documentation you need.
Because when you boot up, nothing is mounted yet and each filesystem must be mounted in turn. The list of filesystems that should be automatically mounted during boot is in /etc/fstab
so if you want your cdrom to be mounted automatically on each boot, you must add a line for it to that file.
Steps to mount a disk permanently.
Doing this will mount your disk during boot time.
/proc/mounts
and /etc/mtab
and look for your mount entry./etc/fstab
. /etc/fstab
Contains entries that are mounted during boot.You can even manually add your entry in /etc/fstab
, but copying it from /proc/mounts
or /etc/mtab
makes sure that you not make any error or mistake in listing your mount point