LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 11:42 AM   #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, 02:00 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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, 02: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-27-2006, 11:22 PM   #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-27-2006, 11:27 PM   #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: 62
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, 08:49 AM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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, 05: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, 08:18 AM   #8
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

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



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 10:43 PM
mount cdrom... ilectrcbob Linux - Newbie 12 04-10-2005 09:13 AM
cdrom won't mount stupidclese Linux - Newbie 2 02-03-2004 03:40 AM
Cdrom mount robbinsar Linux - Hardware 12 05-01-2003 01:51 AM
cdrom mount....no really :) jhorvath Slackware 7 01-04-2003 09:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:19 AM.

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
Open Source Consulting | Domain Registration