LinuxQuestions.org
Visit Jeremy's Blog.
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 03-12-2003, 01:16 AM   #1
DonLuis
Member
 
Registered: Feb 2003
Location: Republic of Texas
Distribution: ZW-WBEL4-Slack-RHat-Puppy-Debian
Posts: 75

Rep: Reputation: 15
cdrom access (in terminal)


Back to Slack (v 8.1.01) after 5 years and can't access either cdrom (/dev/hdc or scd0) as root from the command line (terminal mode).

In Mandrake 9 and Red Hat 8.0 < cd /mnt/cdrom > does the trick.

Again, logged in as root, I've tried all variations of the above < cd /mnt/cdrom > and gotten nowhere, not even close.

What am missing and/or overlooking?
 
Old 03-12-2003, 01:34 AM   #2
micxz
Senior Member
 
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Are you sure it's mounted? look in /etc/fstab
 
Old 03-12-2003, 01:06 PM   #3
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
mount /dev/cdrom

then cd /mnt/cdrom
 
Old 03-12-2003, 01:45 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
spoiled by supermount ;)

Cheers,
Tink
 
Old 03-12-2003, 11:25 PM   #5
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
This is what dmesg | grep scsi returns on my system,
Code:
bern@grendel bern$ dmesg | grep scsi
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
sr0: scsi3-mmc drive: 40x/40x cd/rw xa/form2 cdda tray
sr1: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
So look for /dev/sr? and link it to /dev/cdrom, also check your fstab options.
 
Old 03-13-2003, 12:28 AM   #6
DonLuis
Member
 
Registered: Feb 2003
Location: Republic of Texas
Distribution: ZW-WBEL4-Slack-RHat-Puppy-Debian
Posts: 75

Original Poster
Rep: Reputation: 15
cdrom progress

Have redone fstab and linked hdc and sr0 (removed scd0).

Either I'm hosed up or something, there is no "cdrom(s)" sub directory listed in /dev (like Mandrake). Question: isn't /dev where I should find the cdrom in Slack?

Also, after vi editing and saving <:wq> mtab data, it disappears and reverts to previous data after re-booting?

And yes, I miss MD's supermount, not fun flying up one's arse in an endless loop.

dmesg shows sr0 attached, hdc is recognized but don't see it attached, yet I can mount it, but not access it.
 
Old 03-13-2003, 12:38 AM   #7
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Post your lilo.conf and fstab.
Also what IDE devices do you have and what channel are they connected to?

Last edited by Aussie; 03-13-2003 at 12:39 AM.
 
Old 03-13-2003, 10:43 PM   #8
DonLuis
Member
 
Registered: Feb 2003
Location: Republic of Texas
Distribution: ZW-WBEL4-Slack-RHat-Puppy-Debian
Posts: 75

Original Poster
Rep: Reputation: 15
Success

Reinstalled Slack and started fresh, I'd made too many patches (fstab) with pieces from MD, RH & Debian and the baseline was lost.

Cdrom2 sr0 had to be added and linked, cdrom edited, and linked floppy too while at it.

Question remains, WHY (edited) changes to mtab revert to the original state after rebootomg? Googled and couldn't find anything definitive.

Appreciate all the responses and suggestions. Nice to get my head out and see the light of day again.

Yes, Mandrake and RedHat will dull your knife

Thanks.
 
Old 03-13-2003, 11:03 PM   #9
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Because mtab is a dynamic file listing what's currently mounted.
 
Old 03-18-2003, 10:42 AM   #10
rickenbacherus
Member
 
Registered: Mar 2003
Location: colorado springs. colorado
Distribution: Debian-Sid 2.6.24-rt1
Posts: 290

Rep: Reputation: 30
DonLuis - Is there any chance I could get you to post your working fstab? It would be of great help to me. My symlinks are wrong. I'm close but not quite there. Thanks!
 
Old 03-18-2003, 01:09 PM   #11
DonLuis
Member
 
Registered: Feb 2003
Location: Republic of Texas
Distribution: ZW-WBEL4-Slack-RHat-Puppy-Debian
Posts: 75

Original Poster
Rep: Reputation: 15
/dev/hda6 swap swap defaults 0 0
/dev/hda5 / reiserfs defaults 1 1
/dev/hda7 /usr/local reiserfs defaults 1 2
/dev/hda1 /fat32w98 vfat defaults 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/cdrom2 /mnt/cdrom2 iso9660 noauto,user.rw 0 0
/dev/fd0 /mnt/floppy auto noauto,user 0 0
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults

be sure to link: ln -s /dev/hdc /dev/cdrom
ln -s /dev/sr0 (or scd0) /dev/cdrom2

Check < dmesg > to determine the hd_ and/or sc_0 / sr0 device numbers. I had to add my cdrw cdromw/sr0 to the fstab.

Also, visit < www.slackware.com/book > chapter 9 (all six sections) mounting devices covers fstab (mine is a little different as I'm running as root w/o users (not recommended).

HTH
 
Old 03-18-2003, 02:10 PM   #12
rickenbacherus
Member
 
Registered: Mar 2003
Location: colorado springs. colorado
Distribution: Debian-Sid 2.6.24-rt1
Posts: 290

Rep: Reputation: 30
Hey thanks - I'm actually running Debian- I just needed a reference and your setup sounded very similar to mine. It is only BOTH my DVD & cdr are under scsi emulation. Turns out it was a stupid symlink error (we shot the guy who did it). Thanks - I really appreciate it. All good to go.
 
  


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
how to access hyper terminal SiLiCoN Linux - General 13 12-09-2004 08:57 PM
How to access win2000 from the Terminal? Electronkz Linux - Newbie 9 03-28-2004 12:02 PM
Cant access first cdrom after adding second cdrom Zero-0-Effect Slackware 2 02-18-2004 09:25 PM
navigating to cdrom drive in gnome terminal erico LinuxQuestions.org Member Success Stories 2 08-09-2003 01:17 PM
Mounting /dev/cdrom in SuSE 8.0 Pro in a Terminal - wrong fs type... Gast Linux - Newbie 5 07-05-2002 05:02 PM

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

All times are GMT -5. The time now is 10:32 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
Open Source Consulting | Domain Registration