LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How To Mount Both Your Dvd Drives With Slackware 9.1 (https://www.linuxquestions.org/questions/slackware-14/how-to-mount-both-your-dvd-drives-with-slackware-9-1-a-204971/)

dufferin 07-14-2004 12:47 PM

How To Mount Both Your Dvd Drives With Slackware 9.1
 
Good Morning,

I have searched these forums, googled, altavista'd
for hours, days on end, looked for a how-to(there
isn't one) and read the man page over and over
on this age old subject . . .

"HOW TO MOUNT BOTH YOUR DVD DRIVES WITH SLACKWARE 9.1?"
(ggrrr! Sorry to yell ggrrr!)

Could someone please help me or point me in the
right direction?
An example from someone with similar drives who
is able to mount BOTH DVD drives would be great.

Here are my drives:
IDE DVD-ROM 16X, ATAPI CD/DVD-ROM Drive (hdc)
HL-DT-ST DVDRAM GSA-4040B, ATAPI CD/DVD-ROPM Drive (hdd)

Here's my FSTAB:
/dev/hda8 / ext2 defaults 1 1
/dev/hda1 /mnt/c:\winxp vfat defaults 1 0
/dev/hda5 /mnt/e:\internet vfat defaults 1 0
/dev/hda6 /mnt/f:\misc vfat defaults 1 0
/dev/hda7 /mnt/g:\bin vfat defaults 1 0
/dev/hdb1 /mnt/d:\delta vfat defaults 1 0
/dev/hdc /mnt/cdrom1 udf,iso9660 auto,user,ro 0 0
/dev/hdd /mnt/cdrom2 udf,iso9660 auto,user,ro 0 0
/dev/fd0 /mnt/a:\ vfat,auto auto,user,rw 0 0
/dev/fd1 /mnt/b:\ vfat,auto auto,user,rw 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0


I've also tried:
/dev/cdrom1 /mnt/dvd1 udf,iso9660 auto,user,ro 0 0
/dev/cdrom2 /mnt/dvd2 udf,iso9660 auto,user,ro 0 0

/dev/dvd0 /mnt/dvd1 udf,iso9660 auto,user,ro 0 0
/dev/dvd1 /mnt/dvd2 udf,iso9660 auto,user,ro 0 0

And many other variants thereof . . .

I always add the dirs to /mnt

Any SlackWare help appreciated
Thanks!

keefaz 07-14-2004 12:56 PM

With these settings :
/dev/hdc /mnt/cdrom1 udf,iso9660 auto,user,ro 0 0
/dev/hdd /mnt/cdrom2 udf,iso9660 auto,user,ro 0 0

You should be able to mount your dvd drives by :
mount /mnt/cdrom1
mount /mnt/cdrom2

If no, what are the error outputs please ?

luxitan 07-14-2004 01:14 PM

I don't have the udf before iso9660 and it works... what is the udf flag for?

r_jensen11 07-14-2004 07:39 PM

Quote:

Originally posted by luxitan
I don't have the udf before iso9660 and it works... what is the udf flag for?
I'm guessing other filesystems?

Can you get either of your dvd-rom drives to mount? How about play movies?
do ls -l /dev/cdrom* and ls -l /dev/dvd*

Also, see what permissions your actual devices are (/dev/hdc and /dev/hdd I'm guessing)

How are the drives set up physically? Are they both on the same IDE channel? Which one is master and which is slave?

thegeekster 07-14-2004 07:48 PM

UDF, or Universal Disk Format, is an alternative filesystem used on some CDs & DVDs (mostly DVDs)

Google Search: define:UDF................ :)

dufferin 07-15-2004 12:47 AM

keefaz,

Thanks for the tip,
Here's what I get when I key mount /dev/cdrom1 OR
mount /dev/cdrom2:
mount: can't find /devcdrom1 in /etc/fstab or /etc/mtab

here's my fstab:
/dev/hda8 / ext2 defaults 1 1
/dev/hda1 /mnt/c:\winxp vfat defaults 1 0
/dev/hda5 /mnt/e:\internet vfat defaults 1 0
/dev/hda6 /mnt/f:\misc vfat defaults 1 0
/dev/hda7 /mnt/g:\bin vfat defaults 1 0
/dev/hdb1 /mnt/d:\delta vfat defaults 1 0
/dev/hdc /mnt/cdrom1 udf,iso9660 auto,user,ro 0 0
/dev/hdd /mnt/cdrom2 udf,iso9660 auto,user,ro 0 0
/dev/fd0 /mnt/a:\ vfat auto,user,rw 0 0
/dev/fd1 /mnt/b:\ vfat auto,user,rw 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

/mnt/cdrom1 + /mnt/cdrom2 both do exist.

I thought you weren't supposed to edit mtab?

Thanks,
John.

dufferin 07-15-2004 11:52 PM

Can you get either of your dvd-rom drives to mount? How about play movies?
No


do ls -l /dev/cdrom* and ls -l /dev/dvd*
Did this, but nothing changed . . .


Also, see what permissions your actual devices are (/dev/hdc and /dev/hdd I'm guessing)
Thats right.


How are the drives set up physically? Are they both on the same IDE channel? Which one is master and which is slave?
DVD Reader=master DVD Writer=slave



When I use this I can mount the writer:
/dev/hdc /mnt/cdrom1 udf,iso9660 auto,user,ro 0 0
/dev/hdd /mnt/cdrom2 udf,iso9660 auto,user,ro 0 0
but it won't let me unmount



With this I can mount the reader:
/dev/sr0 /mnt/dvd1 udf,iso9660 auto,user,ro 0 0
/dev/sr1 /mnt/dvd2 udf,iso9660 auto,user,rw 0 0
but it won't let me unmount

How to mount both??

Thanks

dufferin 07-16-2004 12:37 AM

After hours of hacking(grrr) around,
Here's what I did to get this to work.
I mount/umount both DVD's at the same time!
It WORKS, but is it a fluke or what.
Is there a textbook way to do this?


Here's my new and improved fstab:
/dev/hda8 / ext2 defaults 1 1
/dev/hda1 /mnt/c:\winxp vfat defaults 1 0
/dev/hda5 /mnt/e:\internet vfat defaults 1 0
/dev/hda6 /mnt/f:\misc vfat defaults 1 0
/dev/hda7 /mnt/g:\bin vfat defaults 1 0
/dev/hdb1 /mnt/d:\delta vfat defaults 1 0

/dev/sr0 /mnt/dvd1 udf,iso9660 auto,user,ro 0 0
/dev/hdd /mnt/cdrom2 udf,iso9660 auto,user,ro 0 0

/dev/fd0 /mnt/a:\ vfat auto,user,rw 0 0
/dev/fd1 /mnt/b:\ vfat auto,user,rw 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0


Any thoughts on this?
I hope I'm not the only SlackWare 9.1 person in the
world using 2 DVD drives . . .

Thanks for all the help.

dufferin 07-16-2004 12:52 AM

Altered these lines, still works fine . . .

/dev/sr0 /mnt/dvd1 udf,iso9660 auto,user,ro 0 0
/dev/hdd /mnt/dvd2 udf,iso9660 auto,user,rw 0 0

snop 07-16-2004 02:46 AM

Hi all,

It's a pitty that we still need to mount drives like cdrom's, dvd's, floppys or mass storage devices...

There's a kernel patch called supermount (http://supermount-ng.sf.net/ and also included at the great Con Kolivas patches http://members.optusnet.com.au/ckolivas/kernel/). With supermount you won't need to mount anything: just change your cd, change your floppy, etc. freely.

IMHO supermount should have been merged an polished into the kernel since... well, it should have been there since the begining.

Bye

PD: Haven't you ever lost data in floppy just because you forgot to do "umount /mnt/floppy" ? Isn't this a "security" issue (this is, by far, the most easiest way to lose data) ?

r_jensen11 07-16-2004 10:56 AM

Quote:

Originally posted by snop
Hi all,

It's a pitty that we still need to mount drives like cdrom's, dvd's, floppys or mass storage devices...

There's a kernel patch called supermount (http://supermount-ng.sf.net/ and also included at the great Con Kolivas patches http://members.optusnet.com.au/ckolivas/kernel/). With supermount you won't need to mount anything: just change your cd, change your floppy, etc. freely.

IMHO supermount should have been merged an polished into the kernel since... well, it should have been there since the begining.

Bye

PD: Haven't you ever lost data in floppy just because you forgot to do "umount /mnt/floppy" ? Isn't this a "security" issue (this is, by far, the most easiest way to lose data) ?

Supermount has problems, and that's why it's not built in completely. Having to mount and unmount isn't a bad thing. It helps prevent you from accidentally opening your CD-ROM tray if you're doing something important, for one thing. I recommend not going the Supermount option.

One thing that strikes me oddly is that both dvd drives mount whenever you issue a mount command for one. Are they linked to each other in any way? When you do ls /dev/sr0 -l what is the output?

snop 07-16-2004 04:59 PM

Hi again,

I've just had problems with supermount and mass storage devices (it doesn't detect properly when a device is unplugged). For cd's and floppys it works like a charm. But as I said in my last post supermount should be polished (improved if you want) and THEN merged.

Having to mount and unmount a device IS a bad thing for certain devices (specialy floppys and other writeable-removable devices such as usb bars). Most of times using the "traditional method" the info isn't written until the device is unmounted (because of buffer cache I guess). This isn't intutive at all. Pressing the "eject" button on a cd/dvd and seeing that it does nothing isn't intuitive too. Supermount solves this too issues (or at least it tries to solve them).

Anyway supermount is just another OPTION (you can go the old way whenever you want). IMHO it should be almost a must for desktop computers.

Bye

SnOp

PD: I don't want to start a flame war here because of supermount. I just wanted to give some advice and I'd respect any opinion. This is way linux is great (and chaotic sometimes): you can chose from multiple options and customize your whole system.

r_jensen11 07-18-2004 02:07 PM

Quote:

Originally posted by snop
Hi again,

I've just had problems with supermount and mass storage devices (it doesn't detect properly when a device is unplugged). For cd's and floppys it works like a charm. But as I said in my last post supermount should be polished (improved if you want) and THEN merged.

Having to mount and unmount a device IS a bad thing for certain devices (specialy floppys and other writeable-removable devices such as usb bars). Most of times using the "traditional method" the info isn't written until the device is unmounted (because of buffer cache I guess). This isn't intutive at all. Pressing the "eject" button on a cd/dvd and seeing that it does nothing isn't intuitive too. Supermount solves this too issues (or at least it tries to solve them).

Anyway supermount is just another OPTION (you can go the old way whenever you want). IMHO it should be almost a must for desktop computers.

Bye

SnOp

PD: I don't want to start a flame war here because of supermount. I just wanted to give some advice and I'd respect any opinion. This is way linux is great (and chaotic sometimes): you can chose from multiple options and customize your whole system.

It's pretty much this way for OSX. I learned it the hard way, too. If you plug in a usb key/pen drive/whatever you wish to call it, you have to drag the icon on the desktop to the trash bin, otherwise whatever files you wrote or modified on the device will become corrupt. Yes, I learned this by ruining a homework assignment (Big paper and powerpoint presentation, luckily it wasn't the last day any of the times any of the files got corrupted, so I could re-do them). If there were only a way to physically eject a pen drive from a usb port, like if it shot it out how it does for floppies and cd-roms... But then it would require new hardware, which is always a negative....


All times are GMT -5. The time now is 06:24 AM.