LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-27-2005, 05:57 AM   #1
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Rep: Reputation: 30
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
 
Old 04-27-2005, 07:56 AM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
Thumbs up

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).
 
Old 04-27-2005, 11:28 AM   #3
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
in addition to what Ygrex said, you can also use fstab to auto-mount filesystems, at boot for instance.
 
Old 04-27-2005, 11:49 PM   #4
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
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?
 
Old 04-29-2005, 03:58 AM   #5
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
Lightbulb

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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
usb cdrom/dvd not mounting pck3152 Linux - Hardware 1 08-23-2005 11:21 PM
usb cdrom/dvd not mounting pck3152 Linux - Software 1 08-23-2005 07:43 PM
fstab changes for USB DVD+RW lost on reboot TomF Linux - General 1 10-18-2004 02:24 PM
trouble mounting my dvd-rw - can someone check my fstab? sasquatch Linux - Hardware 21 09-27-2004 07:50 AM
Mounting USB-Stick - entry in fstab disappears at reboot??? rot Linux - General 5 08-07-2003 04:37 AM


All times are GMT -5. The time now is 08:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration