LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-01-2005, 08:06 AM   #16
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo (all servers at work are openSUSE)
Posts: 6,937

Rep: Reputation: 128Reputation: 128

Quote:
Originally posted by marco13185
I got my dvd-rom to work. I created folders inside mnt called dvd-rom and cd-rw. But for some reason both devices now point to my dvd-rom.
First, you don't create *folders* in Linux, you create *directories*
and you need one for /mnt/dvd-rom and another for /mnt/cd-rw
in case you want both mounted at one time, as mine are now.

Please post the output of
$ mount
$ cat /etc/fstab

And where are these devices located on your IDE controller?
 
Old 03-01-2005, 08:12 AM   #17
marco13185
LQ Newbie
 
Registered: Dec 2004
Posts: 21

Original Poster
Rep: Reputation: 15
Code:
marco@Marco:~# mount
/dev/hda3 on / type ext3 (rw)
proc on /proc type proc (rw)
/dev/hda2 on /ntfs-c type ntfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hdc on /mnt/dvd-rom type iso9660 (ro)
/dev/hdc on /mnt/cd-rw type iso9660 (ro)
marco@Marco:~# cat /etc/fstab
/dev/hda4        swap             swap        defaults              0   0
/dev/hda3        /                ext3        defaults              1   1
/dev/hda2        /ntfs-c          ntfs        auto                  1   0
/dev/hdc         /mnt/dvd-rom      iso9660    noauto,user,ro        0   0
/dev/hdd         /mnt/cd-rw        iso9660    noauto,user,ro        0   0
/dev/fd0         /mnt/floppy      auto        noauto,user           0   0
devpts           /dev/pts         devpts      gid=5,mode=620        0   0
proc             /proc            proc        defaults              0   0
marco@Marco:~#
Do I have to restart for fstab changes to take effect???

Last edited by marco13185; 03-01-2005 at 08:14 AM.
 
Old 03-01-2005, 08:13 AM   #18
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo (all servers at work are openSUSE)
Posts: 6,937

Rep: Reputation: 128Reputation: 128
Quote:
Originally posted by marco13185
Here is my current fstab:

Code:
/dev/hda4        swap             swap        defaults              0   0
/dev/hda3        /                ext3        defaults              1   1
/dev/hda2        /ntfs-c          ntfs        auto                  1   0
/dev/hdc         /mnt/dvd-rom      iso9660    noauto,user,ro        0   0
/dev/hdd         /mnt/cd-rw        iso9660    noauto,user,ro        0   0
/dev/fd0         /mnt/floppy      auto        noauto,user           0   0
devpts           /dev/pts         devpts      gid=5,mode=620        0   0
proc             /proc            proc        defaults              0   0
Do I have to restart for fstab changes to take effect??
You edited that post -- good on yah! I was looking at it and wondering
how you got anything mounted from /dev/dvd-rom ?!?!?

No, you don't have to restart anything for changes to /etc/fstab to take effect...
 
Old 03-01-2005, 08:16 AM   #19
marco13185
LQ Newbie
 
Registered: Dec 2004
Posts: 21

Original Poster
Rep: Reputation: 15
I changed it because it seemed logical but my dvd-rom worked with /dev/dvd-rom. For some reason my slack has a device called that in the dev directory. Let me check if it still works.

Edit: They both work now. Thank You for your help!!! I have a question about setting up my printer but I dont know whether I should post a new thread or ask it here.

Last edited by marco13185; 03-01-2005 at 08:17 AM.
 
Old 03-01-2005, 08:20 AM   #20
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo (all servers at work are openSUSE)
Posts: 6,937

Rep: Reputation: 128Reputation: 128
Quote:
Originally posted by marco13185
Code:
marco@Marco:~# mount
/dev/hda3 on / type ext3 (rw)
proc on /proc type proc (rw)
/dev/hda2 on /ntfs-c type ntfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hdc on /mnt/dvd-rom type iso9660 (ro)
/dev/hdc on /mnt/cd-rw type iso9660 (ro)
marco@Marco:~# cat /etc/fstab
/dev/hda4        swap             swap        defaults              0   0
/dev/hda3        /                ext3        defaults              1   1
/dev/hda2        /ntfs-c          ntfs        auto                  1   0
/dev/hdc         /mnt/dvd-rom      iso9660    noauto,user,ro        0   0
/dev/hdd         /mnt/cd-rw        iso9660    noauto,user,ro        0   0
/dev/fd0         /mnt/floppy      auto        noauto,user           0   0
devpts           /dev/pts         devpts      gid=5,mode=620        0   0
proc             /proc            proc        defaults              0   0
marco@Marco:~#
Do I have to restart for fstab changes to take effect???
I don't see how you did that? You've got /dev/hdc mounted on
/mnt/dvd-rom and /mnt/cd-rw somehow.

First, you've gotta logout as root by issuing # exit and get to a normal user.
The fstab entry *user* means you can mount as I showed you above as a
normal user, rather than as root. I am assuming in your haste you have
issued both
# mount /dev/hdc /mnt/dvd-rom
and
# mount /dev/hdc /mnt/cd-rw
although I didn't know it was possible to have one device mounted on two
filesystems at the same time. Well, I learn something new every day.

First, as root, unmount them both by issuing
# umount /mnt/dvd-rom
then
# umount /mnt/cd-rw

then exit to logout from root, and mount them as user like I posted earlier...
 
Old 03-01-2005, 08:21 AM   #21
marco13185
LQ Newbie
 
Registered: Dec 2004
Posts: 21

Original Poster
Rep: Reputation: 15
And to avoid confusion for anyone who reads this thread, here is the final version of my fstab:

Code:
/dev/hda4        swap             swap        defaults              0   0
/dev/hda3        /                ext3        defaults              1   1
/dev/hda2        /ntfs-c          ntfs        auto                  1   0
/dev/hdc         /mnt/dvd-rom     iso9660     noauto,user,ro        0   0
/dev/hdd         /mnt/cd-rw       iso9660     noauto,user,ro        0   0
/dev/fd0         /mnt/floppy      auto        noauto,user           0   0
devpts           /dev/pts         devpts      gid=5,mode=620        0   0
proc             /proc            proc        defaults              0   0
 
Old 03-01-2005, 08:23 AM   #22
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo (all servers at work are openSUSE)
Posts: 6,937

Rep: Reputation: 128Reputation: 128
Quote:
Originally posted by marco13185
Edit: They both work now. Thank You for your help!!! I have a question about setting up my printer but I dont know whether I should post a new thread or ask it here.
Glad they're working. Please start running as a normal user.
You did create a normal user, didn't you?

One quick *printer question* though it's best to start a new
thread, and if I have to ask any questions to lead you further
with it, I'll suggest a new thread. Because that is best for you,
not for me. I don't mean it smart alec, but you'll learn more in
the long run by starting right -- that's the voice of experience,
because I started wrong.

Shoot...
 
Old 03-01-2005, 08:27 AM   #23
marco13185
LQ Newbie
 
Registered: Dec 2004
Posts: 21

Original Poster
Rep: Reputation: 15
What would be the command to burn to a cd? So I can test my RW.
 
Old 03-01-2005, 09:10 AM   #24
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo (all servers at work are openSUSE)
Posts: 6,937

Rep: Reputation: 128Reputation: 128
Quote:
Originally posted by marco13185
What would be the command to burn to a cd? So I can test my RW.
First, you gotta give more answers. Like, what do you want to burn, and
on what bus is the burner?

# Burn an ISO to disk
cdrecord -v speed=<burning speed> dev=<your device> /path/to/foo.iso;eject
# Burn from disk to disk
cdrecord -v dev=<your device> speed=<burning speed> -isosize /dev/cdrom;eject
# ISO information
isoinfo -i -d /dev/cdrom
# Generate an ISO from a directory.
mkisofs -vrTJUV "Label" -o foo.iso /path/to/directory
# Generate an ISO from a CD
dd if=/dev/cdrom of=foo.iso
# cdparanoia - search for a drive with reporting of autosense:
cdparanoia -vsQ
# Rip a complete audio CD with cdparanoia
cdparanoia -B "1-";eject
Linux MP3 CD Burning mini-HOWTO
# Convert mp3 to wav with lame
for i in *.mp3; do lame --decode $i `basename $i .mp3`.wav; done
# Burn a CD from wav files
cdrecord -v -audio -pad speed=<burning speed> dev=<your device> /path/to/*.wav;eject
# Copy CD using cdrdao
cdrdao read-cd --device <your device> --read-raw --datafile mydata.bin -v 99 mydata.cue
cdrdao write --device <your device> --overburn -v 99 --speed <burning speed> mydata.cue

# Erase a CDRW
cdrecord -v dev=<your device> speed=<burning speed> blank=fast

# Mount CD iso images as a filesystem
mount /path/to/foo.iso /mnt/iso -t iso9660 -o ro,loop=/dev/loop0


And that was all taken from a very useful thread here in LQ posted by fancypiper
Testing my re-organized links and guides

You need to issue "cdrecord -scanbus" as root, or with su -c as previously mentioned
Code:
mingdao@titus:~$ su -c "cdrecord -scanbus"
Password: 
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.8'.
scsibus0:
        0,0,0     0) 'MATSHITA' 'UJDA760 DVD/CDRW' '1.50' Removable CD-ROM
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus1:
        1,0,0   100) '' '' '' Removable not present Disk
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *
mingdao@titus:~$
That will give you the answer to what goes here
dev=<your device>
which in my case would be
dev=0,0,0
 
Old 03-01-2005, 11:41 AM   #25
marco13185
LQ Newbie
 
Registered: Dec 2004
Posts: 21

Original Poster
Rep: Reputation: 15
I just realized I can't mount audio cd. It gives me the error someone earlier mentioned. I imagined that Audio CD's use a different file system. Could I fix this by changing ISO9660 to auto in fstab??
 
Old 03-01-2005, 04:10 PM   #26
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
Audio CD's do not have a valid file system, and therefore cannot be mounted. (Attempting to mount one will result in an error, even though there's nothing wrong.) If you want to listen to CD's, just use an app like XMMS or KsCD, or if you want to rip, grip or xcdroast. Good luck with it and congrats on solving the original problem -- J.W.
 
Old 03-01-2005, 04:54 PM   #27
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo (all servers at work are openSUSE)
Posts: 6,937

Rep: Reputation: 128Reputation: 128
Quote:
Originally posted by marco13185
I just realized I can't mount audio cd. It gives me the error someone earlier mentioned. I imagined that Audio CD's use a different file system. Could I fix this by changing ISO9660 to auto in fstab??
No, as J.W. said use XMMS -- but you will need a plugin that
doesn't come with Slackware.

To play audio CDs with XMMS you also need the CD read plugin
xmms-cdread-0.11d.tar.gz -- don't know about KsCD because one
reason I migrated from Windoze to Slackware was to get away
from all those nasty, bloated GUIs. It's just as easy for me to run
my workstation with Fluxbox as the window manager, and a lot
faster than with KDE.

To install the CD read plugin just browse to the XMMS homepage,
on the left select Plugins then Input then scroll down. It's listed
there as Xmms-CdRead 0.11d

Download the file to your /home/<username>/build directory,
then untar and install it like this
Code:
mingdao@james:~/build$ pwd
/home/mingdao/build
mingdao@james:~/build$ tar -zxvf xmms-cdread-0.11d.tar.gz
mingdao@james:~/build$ cd xmms-cdread-0.11d
mingdao@james:~/build/xmms-cdread-0.11d$ less README  <- always read this 
mingdao@james:~/build/xmms-cdread-0.11d$ less INSTALL  <- always read this 
and then issue
mingdao@james:~/build/xmms-cdread-0.11d$ ./configure
mingdao@james:~/build/xmms-cdread-0.11d$ make
mingdao@james:~/build/xmms-cdread-0.11d$ su -c "make install"
Fail to read README and INSTALL files at your own peril! You have been warned!

Or the really best way to install packages that you build from source
on a Slackware system is to use CheckInstall and if you read that and
decide to do so, that's another discussion; and you'll need to do it
before you install the CD read plugin for XMMS. You can also get
CheckInstall as a Slackware package from Slackware.

I believe that once you've run "make install" or "checkinstall" this plugin
will be installed in XMMS. If not, just post back. You can find it in XMMS
under Preferences -- it's CD Audio Player 1.2.10 (libcdaudio.so)
 
  


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
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 07:29 PM
Mount usb drive, umount and mount another drive arubin Linux - Hardware 9 01-17-2007 03:46 AM
USB drive mount double mount issue pazzport Ubuntu 3 10-10-2005 08:28 PM
DVD Drive and CDRW Drive Will not mount on Slackware 10.1 Kernel 2.6.1 necrozen Linux - Hardware 1 09-13-2005 08:21 PM
HELP! Error from mount: drive is write-protected... won't mount writeable. system Linux - General 2 12-27-2001 09:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration