LinuxQuestions.org
Help answer threads with 0 replies.
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 04-14-2003, 01:41 PM   #1
shadow.blue
Member
 
Registered: Jan 2003
Distribution: gentoo (2.6.5-gentoo)
Posts: 73

Rep: Reputation: 15
Unhappy help, screwed up my cdrom drive...


Hi,

I`ve just done something very stupid.

Actually my cdrom drive was mapped to /dev/cdrom, which worked fine all the time. The only problem I had was that I wasn`t able to play DVDs under mplayer.

Then I read an article how to set up the CDrom drive correctly (I use an IBM T30 Laptop, Slackware 9.0) on this T30 Laptop, by:

-rm /dev/cdrom
-ln -s /dev/scd0 /dev/cdrom

Well, I did this, but now nothing works. I can`t mount, it keeps telling me
mount: /dev/cdrom is not a valid block device

I shouldn`t have deleted it... doh

Well, I`ve messed quite a time with mknod, but it doesn`t work, and I really need this drive, but I just dont know how to create the device again that it works again.

hope you guys can give me a helping hand.
 
Old 04-14-2003, 06:27 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Try this. In my distro, /dev/cdrom is a link which points to /dev/hdc.

My fstab has this entry: /dev/hdc /mnt/cdrom iso9660 ro,uid=500,gid=100,mode=444,user,noauto 0 0

Then, recreate the link from /dev/cdrom to /dev/hdc. Reboot, and try it. I have no probs playing music or mounting app cd's.

I have an icon for /dev/cdrom, which indicates it's a link. /dev/hdc is not a link. /mnt/cdrom is the mount point. If /mnt doesn't have such a mount point in you distro, create it. Then point your cd player to that mount point.

I hope this points you in the direction out of your problems.

PS: I occasionally get the dreaded 'not a valid block device' message. It usually happens when i try to access the cd drive without a cd in the drive, or, if I don't wait long enough for the drive to detect that a cd has been inserted.

Last edited by bigrigdriver; 04-14-2003 at 06:30 PM.
 
Old 04-14-2003, 06:51 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
ln -s /dev/scd0 /dev/cdrom
Would have been right if you were using
the SCSI-ide emulation ...

just do
Code:
ln -s /dev/hdc /dev/cdrom
ln -s /dev/hdc /dev/dvd
and you should be all go again...
the first one to restore what you broke :)
the second to please mplayer ;)

Cheers,
Tink
 
Old 04-15-2003, 07:19 AM   #4
shadow.blue
Member
 
Registered: Jan 2003
Distribution: gentoo (2.6.5-gentoo)
Posts: 73

Original Poster
Rep: Reputation: 15
Well,
first of all thanks to your replies, it finally worked again
to access the files after linking it to /dev/hdc.

(If you talk about scsi-ide emulation, it is better/faster
than what I use now?)

Then I created the link /dev/dvd to /dev/hdc as well,
inserted a DVD, started gmplayer (gui version)
and clicked (open -> play DVD).

Then it tells me "Couldn`t open DVD Device, /dev/dvd.

When I browe it I find all the VOB files and so on... but it
just doesn`t work.

any ideas?
 
Old 04-15-2003, 03:42 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
yep ...

chmod ugo=rwx /dev/hdc

Cheers,
Tink

P.S.: Don't mount the DVD to play it directly.
 
  


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
Take out the cdrom drive LovelyJunna Linux - Newbie 1 03-26-2004 06:19 PM
Being able to switch between floppy drive and cdrom drive. apathas Linux - Laptop and Netbook 6 11-09-2003 12:38 PM
CDROM drive dbaker Linux - Hardware 1 06-16-2003 10:18 AM
No cdrom drive bjorn Linux - Software 2 12-05-2001 01:27 PM
Drive D is Screwed Do You Know Of Diagnostic Tool? nick Linux - General 4 11-23-2001 07:09 PM


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