LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-18-2004, 12:33 AM   #1
rignes
Member
 
Registered: Mar 2003
Location: USA
Distribution: Slackware-current
Posts: 155

Rep: Reputation: 30
DVD-ROM Mounting Problems


I'm attempting to "role my own" kernel out of 2.4.26 from www.kernel.org. I've gotten everything else I want to work fine but I can't seem to figure what I have to add to my new kernel to mount a DVD-ROM.

I run Slackware 9.1 and can mount them ok in the stock 2.4.22 kernel. I figured out that I need the udf module loaded and have that set in my new kernel however, I still can't mount it in my new kernel. So, it's simply me missing something. Does anyone know what must be compiled either into the kernel or as a module to mount DVD's?

Thus far I've googled, and searched tldp.

Here is what I see when I try to mount with my kernel:

root@samwise:/home/rignes# mount /dev/dvd /mnt/hd/
/dev/dvd: Invalid argument
mount: you must specify the filesystem type
root@samwise:/home/rignes# mount -tudf /dev/dvd /mnt/hd/
mount: wrong fs type, bad option, bad superblock on /dev/dvd,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)
root@samwise:/home/rignes#

The same series of commands works perfectly in the stock 2.4.22 kernel that come with Slack.


Thanks,

Brian

Last edited by rignes; 04-18-2004 at 12:44 AM.
 
Old 04-18-2004, 10:40 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
maybe /dev/dvd does not point to the actual device.


Run dmesg after boot and see what it shows for DVD

[david@zeus david]$ dmesg |grep DVD
hdc: TOSHIBA DVD-ROM SD-R2312, ATAPI CD/DVD-ROM drive
hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache


Check your device and it's link..

[david@zeus david]$ ls -l /dev/hdc
brw------- 1 david disk 22, 0 Feb 23 15:02 /dev/hdc

[david@zeus david]$ ls -l /dev/dvd
lrwxrwxrwx 1 root root 8 Feb 27 23:29 /dev/dvd -> /dev/hdc

[david@zeus david]$ ls -l /dev/cdrom
lrwxrwxrwx 1 root root 8 Feb 27 05:20 /dev/cdrom -> /dev/hdc

fstab entry, use dvd if you want to.
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0

you could use other options, I am using automount.
 
Old 04-18-2004, 01:28 PM   #3
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Is that a typo?

This command:
Quote:
root@samwise:/home/rignes# mount -tudf /dev/dvd /mnt/hd/
must read

root@samwise:/home/rignes# mount -t udf /dev/dvd /mnt/hd/

to actually work (there must be a space between the -t switch and the filesystem type).

It's not likely that the solution is so simple (it so rarely is), but it's possible, so I thought I'd mention.
 
Old 04-18-2004, 01:37 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I don't think it should matter about the space in there.
 
Old 04-18-2004, 01:55 PM   #5
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Why not? There is no -tudf switch, so how is the mount command going to know what to do?
From man mount:
Quote:
mount -a [-fFnrsvw] [-t vfstype] [-O optlist]
The standard form of the mount command, is
mount -t type device dir
As you see, there is clearly a space indicated in the syntax given (in fact, it is indicated in both examples of the correct syntax), just as there are no spaces between the comma-separated options in the options list.

Myself, I'm not going to argue with man mount-- do you have some additional information indicating that this is something one can do?
 
Old 04-18-2004, 02:24 PM   #6
rignes
Member
 
Registered: Mar 2003
Location: USA
Distribution: Slackware-current
Posts: 155

Original Poster
Rep: Reputation: 30
Whelp, I'll let others work out the space issue. I can say from experience on my system that the space seems optional. I've mounted systems with and without the space. But, in my specific case, adding the space gives the same result as without it.

But, that aside, I think I've managed to solve this sort of. What I did was go through the SCSI and the IDE sections of the 2.4.22 stock Slackware kernel and made my 2.4.26 the same. After some experimentation on my own I came up with what most here probably already know, I didn't have the SCSI CD-ROM support selected. Having that selected causes my DVD drive to show up on /dev/sr0 and I can mount it just fine using that device.

Here is something that I am wondering about however. In the stock kernel, I can put in a Video DVD and mount it using /dev/dvd pointing to /dev/hdc which is where my DVD-ROM is. However, in my kernel, I have to link /dev/dvd to /dev/sr0 to be able to mount it.

It's no big deal, just a curiosity on what I have different between the two. It would be nice to be able to mount with the same device, but not critical.

So, all I have to do to mount a CD-ROM is have /dev/cdrom linked to /dev/hdc and to mount a DVD I have /dev/dvd linked to /dev/sr0.

Brian
 
Old 04-18-2004, 03:07 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Is it the same device or do you have a dvd/cd and a cdrom?

You might want to try ide-cd instead of ide-scsi.


Spaces are optional in many apps.
 
Old 04-18-2004, 10:58 PM   #8
rignes
Member
 
Registered: Mar 2003
Location: USA
Distribution: Slackware-current
Posts: 155

Original Poster
Rep: Reputation: 30
I admit I wasn't very clear on just what I have. Sorry about that. The device in question is a single DVD-RW/CD-RW drive. So, atleast at the moment, I have one single device that I can mount as /dev/cdrom for the cdrom and /dev/dvd for the dvd part.

I've had ide-cd compiled as a module for a while now. I was hoping that I could just mount my DVD disks with just that. Perhaps, since it is a burner and I'm using 2.4.26 I have to use ide-scsi?

Brian

Last edited by rignes; 04-18-2004 at 11:05 PM.
 
Old 04-21-2004, 11:03 AM   #9
rignes
Member
 
Registered: Mar 2003
Location: USA
Distribution: Slackware-current
Posts: 155

Original Poster
Rep: Reputation: 30
Shameless Bump

Bump.
 
Old 04-22-2004, 12:29 AM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I don't mount my dvd's. Do you need to mount them?
 
Old 04-22-2004, 12:32 AM   #11
rignes
Member
 
Registered: Mar 2003
Location: USA
Distribution: Slackware-current
Posts: 155

Original Poster
Rep: Reputation: 30
I don't mount them for DVD Video, however, I have several DVD's that I've backed up files to that I sometimes access.

At this point I am able to mount disks using the device /dev/sr0 for when I have a DVD in the drive and /dev/hdc when a CD is in the drive. I just struck me as strange that I have one device (DVD-RW/CD-RW) that is given two seperate devices in /dev. But only in my self built kernel, I can mount any media type the drive can handle when using the stock kernel with /dev/hdc.

I have the ability to use my drive, I'm just really curious why it's working this way.

Last edited by rignes; 04-22-2004 at 12:35 AM.
 
Old 04-22-2004, 12:45 AM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Yes, it is strange. I would expect /dev/sr0 would work for both types of media. You have hdc setup for ide-scsi in the bootloader?


Maybe the ide-cd modules is also loaded.
 
Old 04-23-2004, 12:26 PM   #13
rignes
Member
 
Registered: Mar 2003
Location: USA
Distribution: Slackware-current
Posts: 155

Original Poster
Rep: Reputation: 30
Nope, I don't have it set for scsi emulation in lilo. I never tried mounting a cd using /dev/sr0 though.

I think it's something that I've done / didn't do, in my kernel config because that's the only thing that has changed from the stock one. And /dev/hdc works for both in the stock 2.4 kernel with slack.

Is it possible to attach a file in these forums? Perhaps I could send the two kernel config files. I've looked over them myself, but I could very easilly have missed something that another person looking migh find right off.

But, ultimatly, it's not the end of the world if I have to use two devices to use the drive. It just is one of those things that "bugs ya as to why" if you know what I meen.

Thanks for you help so far.
 
Old 04-23-2004, 01:56 PM   #14
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
You can run diff and see what's different


diff /path/filename /path/filename
 
Old 04-24-2004, 10:58 AM   #15
rignes
Member
 
Registered: Mar 2003
Location: USA
Distribution: Slackware-current
Posts: 155

Original Poster
Rep: Reputation: 30
Heh, everyday I'm reminded of just how much I have to learn about Linux! I never knew diff existed. I ran diff like so (filenames aren't exact):

diff 2.4.22working.conf 2.4.26mykernel.conf > kernel_diff

Which I guess is important so we know what file specifically the diff output is refering to. I'm still getting a grip on how to read the diff output. I'm going to head back to the man page and see if I can find out what I need to on my own.

One thing of note, I can access all media types (data-dvd, video-dvd, data-cd, audio-cd) when using /dev/sr0 in my kernel. So perhaps, the simplest solution would be to just use sr0 and forget about hdc. Which I may ultimatly do, but I'll still be curious why my kernel is different. heh

I have my kernel_diff file but it is to long to post, the forums bark at me to reduce it's size. Is there a way to append a file here? I could gz it and then post it.
 
  


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
CD/CDR/DVD-rom mounting problems olszakm Linux - Hardware 5 03-07-2005 03:30 AM
Mounting DVD ROM neosap Linux - Newbie 3 01-05-2004 05:31 PM
mounting cd-rom dvd-rom and cd-rw antoweb Mandriva 4 12-04-2003 11:37 AM
DVD-rom mounting jang Linux - Software 10 09-18-2003 03:49 PM
Mounting DVD-ROM Drive mindstormsguy Linux - Hardware 2 06-27-2003 01:14 AM

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

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