LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting :: DVD, CD, USB.. do we need to configure etc/fstab? (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-dvd-cd-usb-do-we-need-to-configure-etc-fstab-317635/)

Swakoo 04-27-2005 04:57 AM

Mounting :: DVD, CD, USB.. do we need to configure etc/fstab?
 
I was reading around the net to try to mount my cdrom when i realise i need to create a directory to hold the mount drive. fair enough, did that - got it to work.

Then as I read i realise fstab needs to be configure for the mounting to work.. but i did nothing.. also.. if i have usb drives, dvdrom.. etc how?

Currently my cdrom is mounted on hdc.. is it the standard across all?

please advice

Ygrex 04-27-2005 06:56 AM

U can mount everything to everything avoiding fstab. This file is optional for mount. For non-root drives it hold information for to help u do not type long strings again and again each time u reboot or simply remount drive.
e.g. u wanna mount "/dev/hdc" to "/mnt/cdrom". What can u do without fstab: "mount /dev/hdc /mnt/cdrom". U must do it as root (unless assign this drive options in /etc/fstab). Want u mount USB storage? "mount /dev/sda /mnt/usb"
Sometime you want specify file system: "mount /dev/sda /mnt/usb -t vfat".
Is it more easy then "mount /mnt/usb" with proper options in fstab? mount has enumerous of options u can use. Some drives will require very long commands (i have to specify permissions for vfat drives, for they'll be accessible for some non-root users).

Genesee 04-27-2005 10:28 AM

in addition to what Ygrex said, you can also use fstab to auto-mount filesystems, at boot for instance.

Swakoo 04-27-2005 10:49 PM

ooh ok..

1) how do i configure fstab to get the auto mount on boot?

2) so is it such that hdc is always for cdrom, fsa for usb? what abt multiple usb devices, and dvdrom?

Ygrex 04-29-2005 02:58 AM

All your IDE drives (each of 2 IDE slots on your motherboard can provide you with 2 drives - 4 IDE drives amount) are named like hd??. The first drive on the first IDE slot is hda, the second drive on the first - hdb, the second drive on the second slot - hdd. This drives can branch with numbers (e.g. hda5) what means partitions. Numbers 1-4 are for primary partitions and other for secondary. If your hard is hdb and has 2 primary and 3 secondary partitions, it'll contain hdb1, hdb2, hdb5, hdb6 and hdb7. Therefore reconnect your CD-ROM to another slot and it'll become not hdc.
Do you wanna mount hdb7 on boot? Add "auto" option to the according line in fstab in column with mount options:) .
It's all easy:cool:


All times are GMT -5. The time now is 03:56 AM.