LinuxQuestions.org
Review your favorite Linux distribution.
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 01-11-2011, 10:56 AM   #16
staus
Member
 
Registered: Apr 2004
Posts: 155

Rep: Reputation: 10

Check to see if /dev/cdrom is actually linked to /dev/sr0 and not /dev/hdc

I always state this in fstab.
 
Old 01-11-2011, 11:02 AM   #17
staus
Member
 
Registered: Apr 2004
Posts: 155

Rep: Reputation: 10
I should have said I always identify /dev/sr0 or /dev/hdc with /mnt/dvd or /mnt/cd in fstab.
 
Old 01-11-2011, 11:58 AM   #18
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by littleball View Post
Thanks for reply people.

If I try the following command as root:

bash-4.1# hdparm -I /dev/sr0

It does nothing, just hang there forever, this is what ps -aux gives about it:




Again, it puts on Status D+ TASK_UNINTERRUPTABLE

it doesn't matter which CD/DVD I use, the results are the same, I'm trying with stock kernel and still get the same. It didn't hang before, it starts to hang after I added my user and root to plugdev and haldaemon group. Before I added both users to those groups, I just wasn't able to mount any CD/DVD now after, it just hangs... and no messages about any error at /var/log/messages. Could it be some haldaemon bug or something?

Can anybody tell me if there have to be some file at /etc/hal/fdi ? I'm asking because I have enter to /etc/hal/fdi/policy , /etc/hal/fdi/preprobe and /etc/hal/fdi/information and all of them are empty, no rules no nothing... is this is ok???
What does the system (mount, hdparm or whatever) say if you use another dvd drive / another disc?
 
Old 01-11-2011, 06:42 PM   #19
littleball
Member
 
Registered: Jan 2011
Distribution: Slackware, Red Hat Enterprise
Posts: 47

Original Poster
Rep: Reputation: 8
Code:
bash-4.1# ls -l /dev/cdrom
lrwxrwxrwx 1 root root 3 Jan 11 14:40 /dev/cdrom -> sr0
it's linked to sr0. About fstab entry:

Code:
bash-4.1# cat /etc/fstab  | grep '/mnt/cdrom'
/dev/cdrom       /mnt/cdrom       auto        user,noauto,owner,ro  0   0
If I use another disc (not Office 2003) any other disc (music, slack install, etc) it does the same thing... at mount, hdparm or whatever it just hangs, and goes to status D+ forever. No error message at syslog, no nothing. This is very weird.
 
Old 01-12-2011, 12:45 AM   #20
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Sounds like bad drive (usually you can hear the drive seeking) or bad driver.
 
Old 01-12-2011, 10:33 AM   #21
littleball
Member
 
Registered: Jan 2011
Distribution: Slackware, Red Hat Enterprise
Posts: 47

Original Poster
Rep: Reputation: 8
The device works fine. I have installed Windows XP on the same Laptop (on another partition) and I'm able to read there without any problem any CD/DVD that I put in the device. It's not the type of solution I was waiting for, but since under Slackware doesn't work (and I don't know why) I was force to install Windows on my hardrive.

Thanks in advanced for all your help.
 
Old 01-13-2011, 12:31 AM   #22
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by littleball View Post
Thanks for reply people.

If I try the following command as root:

bash-4.1# hdparm -I /dev/sr0

It does nothing, just hang there forever[...]
It shouldn't do that. That command should just talk to the drive about what it can do versus anything about the disc that may or may not be in it. (You can give that command to an empty CD-ROM drive and it should respond.)

I guess that you don't have Slackware installed any more on that machine (given your last post), but if you do, what does
Code:
cat /proc/scsi/scsi
output?
 
Old 01-13-2011, 06:02 AM   #23
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
I Must Be Old

Greetz
First off, maybe I am just stuck in the past but IIRC

Quote:
Originally Posted by OP
bash-4.1# mount /dev/cdrom /mnt/cdrom -t iso9660
shouldn't that be

Code:
 bash-4.1# mount -t iso9660 /dev/cdrom  /mnt/cdrom
???????

On the other front, but still being hopelessly Old Skool, while I feel the convenience sometimes of current automounting, it is still just one more reason I hate most automatics. I don't know enough to know the real process and can only offer empirical observation, but automounting seems somewhat "on demand". That is to say for example I have a symlink in $HOME to "media/foo/downloads" and it is useless until I do something like open Dolphin and actually click on that partition's entry on the left side of Dolphin and then the "downloads" directory within. Then the symlink works until some other process causes it to revert, much like an expired lease.

That situation is compounded from command line. So I still prefer to specifically declare the devices I most routinely use in "/etc/fstab", such as /dev/dvd, and employ the "auto" option there. It's not perfect, but it sure is better all the way around than virtual/conditional mounting as done by HAL/udev.

Just my twapence
 
Old 01-13-2011, 04:32 PM   #24
littleball
Member
 
Registered: Jan 2011
Distribution: Slackware, Red Hat Enterprise
Posts: 47

Original Poster
Rep: Reputation: 8
Hello People.

I still had Slackware on my laptop I just made another partition and install Windows XP. Well, I keep searching and trying to find out my problem with Slack not reading any CD/DVD and hanging up. I finally figure out it was an hal permission stuff with my user >.< The following URL solved my problem:

https://bbs.archlinux.org/viewtopic.php?pid=660453

So problem solved for me now I'm able to mount any CD/DVD in Slackware now.

Thanks all.
 
1 members found this post helpful.
Old 01-13-2011, 05:08 PM   #25
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
A lesson from ConsoleKit. Thanks!
 
  


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
Automount (NFS) is not working justemail Linux - General 4 05-19-2009 04:35 PM
12.1 automount not working, hald etc Pscylo Slackware 1 12-03-2008 01:36 PM
gnome automount not working BCarey Linux - Desktop 4 05-25-2007 03:49 PM
Automount Floppy Not Working mfeat Linux - Software 4 08-09-2004 09:25 AM
trying to get automount working jza Linux - General 1 10-13-2003 06:47 PM

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

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