LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to play files from cdrom (Xbox/Debian)? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-play-files-from-cdrom-xbox-debian-105104/)

Alfastation 10-17-2003 08:31 AM

How to play files from cdrom (Xbox/Debian)?
 
First off, i'm a complete Newbee (first day on Linux...!)

Aim : to play DivX off my Xbox using MPlayer.
(Note: i'm NOT using a mod-chip, but using the software-trick / Mechassault)

I succesfully installed Debian 041 on my Xbox (with Samsung-drive) after converting one of the joystick-ports to a USB-port and applying the Mech-trick using a USB-memory stick

Problem: I can't seem to locate/open ANY files from the DVDRom-drive in Linux.
I'm not even sure where to start looking for them.
I suppose i need to go to /DEV/CDROMS, but there's nothing there; no files, no directories!
Yet, when i select "play DVD" or "play VCD" in Mplayer (with respectively a DVD or VCD standard CD in the drive) Mplayer plays them just fine.

It must be something very easy/stupid i'm overlooking but as i said, this is my first day on Linux!!

slightcrazed 10-17-2003 10:14 AM

Did you mount the cdrom?

as root:

mount /dev/cdrom /mnt/cdrom

slight

hussar 10-17-2003 10:28 AM

To read files off of a cdrom or dvd, you have to have the drive mounted. GNU/Linux does not automatically mount the cdrom or dvd when it is inserted into the drive.

The debian install may have added the drive to the /etc/fstab file during the install process. At a console type 'cat /etc/fstab' (without the quotes), and look for an entry that says something like "/mnt/cdrom" or "/mnt/dvd." If there is an entry there like that, then, as root, try typing 'mount /mnt/cdrom' or 'mount /mnt/dvd' If this works, then typing the command 'ls /mnt/cdrom' or 'ls /mnt/dvd' should list the contents of the medium. Once the drive is mounted, you should be able to play the files on it. (This won't work with commercial DVDs.)

If you are using one of the desktop environments, there may even be an icon for the drive on your desktop. If there is, just clicking (or double-clicking) on the icon may mount the drive.

If that doesn't work, and there is no entry in the /etc/fstab file for either a cdrom drive or a dvd drive, then you will have to figure out which device controls your drive.

On an E-IDE system, the first drive on the first controller is controlled by /dev/hda; the second drive on that controller is controlled by /dev/hdb. On the second controller, the first drive is controlled by /dev/hdc; the second drive is controlled by /dev/hdd. (Individual partitions are identified by numbers. So, the first partition on the first drive would be controlled by /dev/hda1; the fifth partition on the second drive on the second controller is controlled by /dev/hdd5. You don't need to identify the partition on a cdrom though.)

Perform these steps in order:
1. Determine what device file controls your drive. We will use /dev/hdc as the example.
2. Make a directory to mount the drive to. Type the command 'mkdir /mnt/cdrom'
3. As root, type the command 'mount -t auto /dev/hdc /mnt/cdrom'
4. Type the command 'ls /mnt/cdrom' You should see the contents of the cdrom displayed.

If this doesn't work, post again with whatever error messages you got or with a description of what happened.

HTH.

Alfastation 10-18-2003 08:44 AM

Got it!!
I just turned my XBOX into a DivX standalone player!! :):)

First wasn't able to mount the cdrom.
So i followed hussar's instructions:

"2. Make a directory to mount the drive to. Type the command 'mkdir /mnt/cdrom'
3. As root, type the command 'mount -t auto /dev/hdc /mnt/cdrom'"

Since i didn't know how to determine which device controlls the cdrom but knowing there's only 1hdd and 1dvddrive in the Xbox i used <hdb> for mounting the cdrom instead of <hdc> and that worked.

Now, is there some way of having Linux automaticaly mounting the cdrom each time you insert a new cd?

Also, where do i tell Linux/Debian i'm using an AZERTY keyboard?
It's hard enough reading text off a TV-screen, let alone having to correct it all the time :)

Thanks for the help so-far.


All times are GMT -5. The time now is 09:22 AM.