Find the answer to your Linux question:
Results 1 to 3 of 3
OK... for some reason my DVD drive is detected as /dev/sr0 in Suse. All of the others seemed to put it on /dev/dvd (I can guess this only because Xine ...
  1. #1
    Just Joined!
    Join Date
    Sep 2004
    Posts
    44

    Why always have to create system link each boot?

    OK... for some reason my DVD drive is detected as /dev/sr0 in Suse. All of the others seemed to put it on /dev/dvd (I can guess this only because Xine always worked in the other distros I used), but Suse seems different in how it handles the device.

    As a result, because Xine (and a couple other players I have fooled around with) seem to expect DVD drives at /dev/dvd, I have to create a system link to the DVD drive as follows:

    ln -s /dev/sr0 /dev/dvd

    This is all fine and well... but for some reason I have to do this each time I reboot, and that is exceedingly lame. So... how can I make this permanent? Please advise.

    Man I seem to be the complete Linux newbie... don't get me wrong, I am glad that I switched. I just needed to spend 30 minutes with Vista to know that MS hates their consumers and want to, but this is such an odd and bumpy road figuring Linux out...

  2. #2
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Location
    Laurasia
    Posts
    624
    you should never modify the /dev partition manually. It is best to leave to the kernel what ever to do with that partiton. The reason you need to create the symlink eveytime you do a reboot is because upon each boot the kernel populates /dev from scratch.

    The solution to your problem is hidden in the ~/.xine/config file. Find this line in this file and edit it (replace /dev/dvd by /dev/sr0 or wherever u think SuSE places it.
    Code:
    #device used for DVD playback
    string, default: /dev/dvd
    media.dvd.device:/dev/dvd
    Be sure to uncomment the line. No need to be root to edit this file.
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

  3. #3
    Just Joined!
    Join Date
    Sep 2004
    Posts
    44
    OK... the advantage of that is that xine now works, but the other programs still don't. So the best way is to actually go through in each program that has that issue and fix it one by one, and not just setup a permanent solution? For some reason that just seems so insane to me. I wish that there was a way to maybe just add the command to a list of commands that are run on boot if nothing else (and to avoid editing the kernel), such as how you could add commands to batch files and put them in the startup folder in Windows, if nothing else. That way things just work without having to fix them one by one.

    Oh well... learn and adapt. Just so bloody much to learn. Worth it though, better than using Vista <smiles>.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...