LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-06-2004, 12:48 AM   #1
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 430

Rep: Reputation: 30
Need help: fstab, /dev, and /mount are all HIGGLEDY-PIGGLEDY!


I cannot use my combination cdrom/cdrw drive. I'm using Slack 10 with the 2.4.26 kernel. I have an append line in lilo.conf that says "hdc=ide-scsi" I seem to be lacking block devices, proper mount points and a good line in fstab.

I have tried all of the following lines in my /etc/fstab (at different times):

/dev/scd0 /mnt/cdrom iso9660 auto,users,exec,suid 0 0
/dev/cdrom /mnt/cdrom iso9660 auto,users,exec,suid 0 0
/dev/sr0 /mnt/cdrom iso9660 auto,users,exec,suid 0 0
/dev/hdc /mnt/cdrom iso9660 auto,users,exec,suid 0 0

I was using the /dev/sr0 line and it was almost OK. It let me see and work with a mounted disk, but wouldn't let me unmount it. Kept saying /mnt cdrom was not mounted. Then, I read Patrick's advice in the message to /root where he talks about doing

cd /dev
rm cdrom
ln -sf scd0 cdrom

Did that. Now I can't even mount anything! If I open the cdrom drive by clicking the cdrom icon on the KDE desktop, it says "/dev/scd0 is not a valid block device." Then, I can't eject the disk because it won't let me unmount the device, It says "/mnt/cdrom not mounted" I have to reboot the computer to eject the disk.

lsmod shows:

root@localhost:/home/tigerflag# lsmod
Module Size Used by Not tainted
ppp_deflate 3256 0 (autoclean)
zlib_deflate 18328 0 (autoclean) [ppp_deflate]
bsd_comp 4344 0 (autoclean)
ppp_async 7392 1 (autoclean)
ppp_generic 19492 3 (autoclean) [ppp_deflate bsd_comp ppp_async]
slhc 4976 1 (autoclean) [ppp_generic]
snd-pcm-oss 37736 0 (unused)
snd-mixer-oss 12504 0 [snd-pcm-oss]
ipt_state 504 18 (autoclean)
ipt_REJECT 3160 4 (autoclean)
ipt_limit 856 6 (autoclean)
ipt_LOG 3416 6 (autoclean)
ip_conntrack_ftp 3888 0 (unused)
ip_conntrack 19236 1 [ipt_state ip_conntrack_ftp]
iptable_filter 1644 1 (autoclean)
ip_tables 12416 5 [ipt_state ipt_REJECT ipt_limit ipt_LOG iptab le_filter]
snd-cmipci 16964 0
gameport 1420 0 [snd-cmipci]
snd-pcm 56072 0 [snd-pcm-oss snd-cmipci]
snd-page-alloc 6328 0 [snd-pcm]
snd-opl3-lib 5892 0 [snd-cmipci]
snd-hwdep 4804 0 [snd-opl3-lib]
snd-timer 13604 0 [snd-pcm snd-opl3-lib]
snd-mpu401-uart 3200 0 [snd-cmipci]
snd-rawmidi 12740 0 [snd-mpu401-uart]
snd-seq-device 3888 0 [snd-opl3-lib snd-rawmidi]
snd 30852 0 [snd-pcm-oss snd-mixer-oss snd-cmipci snd-pcm snd-opl3-lib snd-hwdep snd-timer snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore 3396 4 [snd]
uhci 24444 0 (unused)
ehci-hcd 17580 0 (unused)
usbcore 59308 1 [uhci ehci-hcd]
nls_cp850 3580 1 (autoclean)

I tried "cdrecord -scanbus" as root and got an error with a hint to try "cdrecord dev=help":

root@localhost:~# cdrecord -scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
root@localhost:~#
root@localhost:~# cdrecord dev=help
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Supported SCSI transports for this platform:

Transport name: sg
Transport descr.: Generic transport independent SCSI
Transp. layer ind.:
Target specifier: bus,target,lun
Target example: 1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported

Transport name: pg
Transport descr.: SCSI transport for ATAPI over Parallel Port
Transp. layer ind.:
Target specifier: bus,target,lun
Target example: 1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported

Transport name: ATA
Transport descr.: ATA Packet specific SCSI transport
Transp. layer ind.: ATAPI:
Target specifier: bus,target,lun
Target example: ATAPI:1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported

Transport name: RSCSI
Transport descr.: Remote SCSI
Transp. layer ind.: REMOTE:
Target specifier: rscsi@host:bus,target,lun
Target example: REMOTE:rscsi@host:1,2,0
SCSI Bus scanning: supported
Open via UNIX device: not supported

I have no idea what most of this means.

I've RTFM'ed for 16 hours straight on this, read the man pages for mount and fstab repeatedly, googled, read my Linux and UNIX books, searched these forums (This came close: http://www.linuxquestions.org/questi...evFcdrom+mount), and now I'm feeling more confused and stupid than ever. The fixes are always so simple when I find them, but I feel like a monkey forever hammering on a typewriter, hoping to come up with Hamlet. I need some advice, hopefully with examples, of how to get /fstab properly configured, and looking at the correct entries in /dev and /mount. Any help is GREATLY appreciated.

Siri Amrit
 
Old 08-06-2004, 01:19 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Hi, It seems that you have not the proper module loaded for scsi emulation for cdrom.

Try
/sbin/modprobe ide-scsi

If it gives no results, try :
/sbin/modprobe sd_mod

After that do a dmesg | grep -i scsi to see what happen and try one of the following in your fstab :

/dev/scd0 /mnt/cdrom iso9660 noauto,users,ro 0 0
/dev/hdc /mnt/cdrom iso9660 noauto,users,ro 0 0

If you let ' auto ' as option, it will try to mount cd in each boot, wich is not a good idea, say if your cd rom drive is empty, it will try to mount it and so that will produce error and a slower boot. I added the ' ro ' option because even in cdrw, the cdrom are always mounted read-only. I removed the ' exec ' option, because it is used as default.
 
Old 08-06-2004, 09:12 AM   #3
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 430

Original Poster
Rep: Reputation: 30
Thank you, Cedrick. Here's what happened:

root@localhost:~# /sbin/modprobe ide-scsi
root@localhost:~# dmesg | grep -i scsi
Kernel command line: BOOT_IMAGE=Linux ro root=302 hdc=ide-scsi
ide_setup: hdc=ide-scsi
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
hdc: attached ide-scsi driver.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
root@localhost:~#

Based on that, which line do you recommend I put in fstab?

/dev/scd0 /mnt/cdrom iso9660 noauto,users,ro 0 0
or
/dev/hdc /mnt/cdrom iso9660 noauto,users,ro 0 0

And do I have to add anything to /mount?

BTW, I appreciate you clarifying what the entries mean in fstab.

Thanks,
Siri Amrit
 
Old 08-06-2004, 09:38 AM   #4
eldontrent
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
I had problems similar to yours that costed me lot of cdrom badly-burned.
I discovered that new kernels don't need anymore the 'ide-scsi' parameter, you better get rid of that. I can't find the exact page in the kernel archives where Linus speaks about that, but you can find some info here: http://bbs.archlinux.org/viewtopic.php?t=2856
I used a 2.4.22 kernel and without any kernel parameter was able to burn correctly CD. Just use the correct:

cdrecord -v -dev=ATAPI:0,0,0

parameter instead of 0,0,0 and you're ok.
Hope it works.

Valerio Daelli
 
Old 08-06-2004, 10:42 AM   #5
Crashbox
Member
 
Registered: Jun 2004
Location: USA
Distribution: Slackware
Posts: 137

Rep: Reputation: 22
i'm afraid i can't really offer much help, as i don't have this problem, but i just gotta ask what in the hell is "HIGGLEDY-PIGGLEDY!" supposed to mean???????????
 
Old 08-06-2004, 03:10 PM   #6
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 430

Original Poster
Rep: Reputation: 30
Thanks for the help. I'm at work so don't have the information in front of me, but briefly, I tried both lines that Cedrick suggested.

/dev/scd0 /mnt/cdrom iso9660 noauto,users,ro 0 0 -worked the better of the two. It mounted and ejected cleanly for both music and data, but wouldn't read a music disk. I have the error output at home... will post it later.

Crashbox asks:

"what in the hell is "HIGGLEDY-PIGGLEDY!" supposed to mean???????????"

It means, everything is all KATTYWHOMPUS! Or, all screwed up, FUBAR, whatever. It means, take a big jigsaw puzzle and toss it into a tornado. It's from Bloom County, the greatest comic strip (IMHO) that ever was.

Thanks again!
Siri Amrit
 
Old 08-06-2004, 03:26 PM   #7
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Did you try :
/dev/sr0 /mnt/cdrom iso9660 noauto,users,ro 0 0

Because from your output of demsg :
Quote:
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
root@localhost:~#
 
Old 08-06-2004, 11:19 PM   #8
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 430

Original Poster
Rep: Reputation: 30
It works!!!

/dev/sr0 /mnt/cdrom iso9660 noauto,users,ro 0 0

Works like a charm!

Thank you so much!!!
Peace,
Siri Amrit
 
Old 08-09-2004, 11:35 PM   #9
Earl Parker II
Member
 
Registered: Jan 2002
Location: Shelby, NC, US
Distribution: Linux Mint 19.2
Posts: 130

Rep: Reputation: 17
tigerflag,

One way to unmount stubborn devices is 'umount -l devicename'.
 
Old 08-10-2004, 03:47 AM   #10
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
You should also be aware of the "eject" command in slackware. It's quite handy, skips the step of hitting the button on the drive, too :-D

Also, don't try to mount music discs, they do not have a file system, and therefore cannot be mounted. They're read straight from the drive by whatever the player is.

--Shade
 
Old 08-10-2004, 10:23 AM   #11
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 430

Original Poster
Rep: Reputation: 30
Thanks, y'all. Until I got it fixed, even the eject command didn't work. I'm making a note of "umount -l devicename" ...

The nice thing I guess about all the configuration problems I've had installing Slack on my husband's box is, now that I've gotten them worked out it'll be a piece of cake to upgrade my own box.

Siri Amrit
 
  


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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
mount: can't find /dev/hda1 in /etc/fstab or /etc/mtab timalan SUSE / openSUSE 24 08-20-2005 09:41 AM
/etc/fstab to mount /dev/hdc1 to FTP GregSims Linux - Newbie 5 08-05-2005 10:09 PM
/ect/fstab to Mount /dev/hdc1 to FTP GregSims Linux - General 1 08-05-2005 09:46 PM
Why a FSTAB entry will mount using -a switch but will not mount automatically at boot mjen Linux - Newbie 3 05-19-2004 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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