LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-27-2006, 12:42 PM   #1
deggial
Member
 
Registered: Mar 2006
Location: currently in Warsaw, Poland
Distribution: Slackware 10.2 & XP
Posts: 62

Rep: Reputation: 15
do i always have to mount cdrom?


Hi!

everytime i insert a cd its contents arenīt shown until i mount it.
do i always have to mount/umount cdrom?
 
Old 03-27-2006, 03:00 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
some distros will automatically mount a CD when you insert it. I assume your question applies to Slackware 10.2--I am not familiar with this one. Any clues in Slackware docs?
 
Old 03-27-2006, 03:03 PM   #3
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
It really depends on your linux distro.
AFAIK, Mandrake >10 and Kubuntu mount your CD as soon as you try to access it.
It is related to your running kernel (i.e Madrake uses a special file-system technique named "supermount" only present on Mandrake kernels) and/or your desktop environment (i.e. KDE>3.5)
 
Old 03-28-2006, 12:22 AM   #4
deggial
Member
 
Registered: Mar 2006
Location: currently in Warsaw, Poland
Distribution: Slackware 10.2 & XP
Posts: 62

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany
some distros will automatically mount a CD when you insert it. I assume your question applies to Slackware 10.2--I am not familiar with this one. Any clues in Slackware docs?
I am working on it, but in some installation guides it is written that the cdrom should be mounted and in some not. I was wondering if there is a universal solution for linux-based systems...

Quote:
It is related to your running kernel (i.e Madrake uses a special file-system technique named "supermount" only present on Mandrake kernels) and/or your desktop environment (i.e. KDE>3.5)
i have 2.4.31 kernel, KDE 3.4.2 (basic configuration for slack 10.2)
but is KDE responsible for mounting?
 
Old 03-28-2006, 12:27 AM   #5
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 61
My observation has been that if it's a Media CD/DVD, it'll automount ... If it's a data CD/DVD (including MP3s), you have to mount it manually.

At least that's 'the Debian way.'
 
Old 03-28-2006, 09:49 AM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Ok, just to make it clear, the answer is yes. You need to mount a disk, or any storage medium, before you can read or write to its file system. That's what mounting is, after all, connecting file systems. Now, as the others have pointed out, it's possible to set up a system to automatically mount the disk for you when you try to access it, and unmount it for you after a few seconds of inactivity. Supermount does this, as does autofs, and there may be one or two other ways to go about it. (Supermount uses kernel-level code. Autofs OTOH runs as a daemon, but it can be a little more flaky.) Many of the more user-friendly distros are already set up with one of these for you, usually supermount.

That said, there are a couple of situations where mounting is unnecessary. Applications like CD writers access the disk directly from the low-level driver interface and don't need a mounted disk. And music CD's are not mountable, since they do not have a normal file system to mount. Your music player software again uses a lower-level access in order to play the disk.

Video CD's and DVD's and are hybrids. They are encoded to disk using a mountable file system, but playing the actual content works more like a music CD, and doesn't need mounting.

I hope this clears it all up for you.
 
Old 03-29-2006, 06:13 AM   #7
deggial
Member
 
Registered: Mar 2006
Location: currently in Warsaw, Poland
Distribution: Slackware 10.2 & XP
Posts: 62

Original Poster
Rep: Reputation: 15
thank you, very informative

i have one more question (may be a stupid one) how can i (u)mount hotplug devices (like usb flash memory, bluetooth devices etc), no name has been assigned to it in the fstab
does the linux recongnise them? is it safe just to plug them in?
 
Old 03-29-2006, 09:18 AM   #8
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
It's only filesystems that need to be unmounted so unless you're using PAN over Bluetooth to mount a remote location, no need to unmount. A USB drive on the other hand, yes you need to unmount it. You can use the sync mount option which is supposed to make it so even if you rip the device out mid-copy most of the data should be alright. That is extremely mind-bogglingly slow though.
 
  


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
CDROM refuses to mount, /dev/cdrom does not exist shane25119 Linux - Hardware 10 08-02-2009 11:43 PM
mount cdrom... ilectrcbob Linux - Newbie 12 04-10-2005 10:13 AM
cdrom won't mount stupidclese Linux - Newbie 2 02-03-2004 04:40 AM
Cdrom mount robbinsar Linux - Hardware 12 05-01-2003 02:51 AM
cdrom mount....no really :) jhorvath Slackware 7 01-04-2003 10:23 PM


All times are GMT -5. The time now is 09:19 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