LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-01-2009, 05:43 PM   #16
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38

Thanks Simon for your reply, I will re-read this again but I have to work the next 2 days so I can't be exactly sure if I get time during the nights.
 
Old 04-06-2009, 11:36 PM   #17
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38
This may not be exactly to do with the 'sudo ln /dev/scd0 /dev/dvd' (or the other way around) command but I have learned something new in this process: when applying the medibuntu repos and key and running an update, it also replaced/updated my previously installed libdvdcss files with the ones found on the medibuntu repos. as a result the clone now plays dvd's. I have tried various regions (2 and 4) dvd's and they all played.

there is one more clone I will have to do, it will be a slightly different machine and I will see how this next one will handle the transition from one machine to the other, and report back here to keep it complete.

I have also replaced the dev notation for the '/' partition back to uuid found in menu.lst and everything seems normal, haven't able to change the other ones back because I have deleted it without making a back up first. the reason why I haven't made a back up is because in the past I have done this so many times that I feel confident doing it this way and there was never a need for changing it back. but with regards what you say: "I think some programs in Ubuntu may be expecting uuid notation - to assign devide names for eg." I think you may have a point there; the developers surely have their (way beyond me) reasons for doing that.
 
Old 04-14-2009, 04:43 AM   #18
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38
apologies for not coming back any earlier, had a busy week at work.

after cloning the last machine I bumped into the same problems. issuing the command 'sudo ln /dev/scd0 /dev/dvd2' (this clone puts a 2 after /dev/dvd) I get response:

ln creating hard link '/dev/dvd2': File exists

after this it still will not play the dvd. when I change the xine parameter settings it will play the dvd, but after reboot the problem reoccurs. for me the quickest way to fix this seems to be simply to reinstall Kubuntu.

it may be a better idea to search for similar problems with cloning and how to fix these problems, what seem to be minor set backs but I just don't know how to get around them.
 
Old 04-14-2009, 07:28 AM   #19
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
The link you want is:

sudo ln /dev/scd0 /dev/dvd

because the players are expecting to find the dvd device at /dev/dvd

how are you making the clone?
 
Old 04-14-2009, 05:59 PM   #20
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38
I issued 'sudo ln /dev/scd0 /dev/dvd' and it creates a block device(?), not a block device link. it will play the dvd after giving the command but it does not stick; after reboot the block device is gone again and the dvd will not play. so the next real question is: how do I make it stick?

I make clones using clonezilla http://www.clonezilla.org/ it works quiet well apart from this problem that I am encountering, but I think that has nothing to do with clonezilla but more with the OS that (as you mentioned previously somewhere) sees the 'new' hardware and thinks it is another drive. with that in mind it does not surprise me that on this machine I get a number 2 after the block devices' links as this is a clone of a clone (bit more fine tuned than the original clone). the program clonezilla live works very easy, I always choose to save or restore client partitions, never a whole disk. it takes care of grub as well. hope that answers your question 'how I make my clones?' because there is not much to explain about it, mostly I just keep hitting the 'enter' key until it asks where to read/write the clone from/to and which partition needs cloning. it automatically sees what file system you want to clone and that determines which program it will use for cloning (ntfs clone, partimage or dd if I am not mistaking)
 
Old 04-15-2009, 10:08 AM   #21
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
What makes you think ln has made a block device in that case (check with ls -l)?

I figure there is a way to get the clones to behave. I know some people who do this routinely - so I'm asking them.

Strictly speaking - seeing a new dvd drive should get it called /dev/scd1 and leave the link alone ...so there is more to it. Stand by.
 
Old 04-15-2009, 04:59 PM   #22
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38
get the clones to behave, I like that!

I am not near the machine now, but how I found out it makes a 'block device' and not a 'block device link' is because I had the /dev/ directory open in Kubuntu's default file browser Dolphin.
In there I can see the icons for ./cdrom2; ./cdrw2; ./dvd2; ./dvdrw2 they all have an overlay arrow at their bottom left, which indicates (as far as I think) a link or shortcut, in this case I would call it a link.
after issuing command 'sudo ln /dev/scd0 /dev/dvd' a similar icon appears but without the overlay arrow. when I alternate click on it and choose properties, I can see differences between this one and the ones with the arrows. also when I just hover the mouse over the icons and watch what text appears in the status bar there the word 'link' is missing on the new icon.

I am standing by, there is no hurry on this side. I am learning from you, that's more than just getting this machine to work properly. Had a look at your site too and saw some interesting topics there.
 
Old 04-15-2009, 11:59 PM   #23
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Right - my experts concur with my ideas - the clone can tell that it is in a new computer. The utility responsible for naming stuff is udev

Quote:
udev should have noticed devices have changed, and it's possibly udev
which is causing the device name to change. In the same way that modern
distros use udev to "guarantee" ethernet interface persistent naming,
they also use udev to generate static rules for optical drives. Look in
/etc/udev/rules.d/70-persistent-cd.rules, i suspect there will be rules
with different ENV{ID_PATH} values - one is old, one is new.

If that's the case, just remove that file and reboot. It'll get
regenerated on reboot. The only thing that gives me pause here is that
the udev rules in my copy of that file don't force a name.

Doing cloning will possibly cause problems with persistent ethernet
device naming too, so if there is a 70-persistent-net.rules file, remove
it as well.
The pause above was also what paused me - I have no rules for changing links like that in mine either.

I also asked if there was perhaps a more linux-appropriate way to achieve the same ends as cloning (since that is really a windows-world solution: copy the whole drive - windows is too dumb to tell the difference) and got the following advise:

Quote:
The smarter way of doing a repeated install is to either use a custom
installer, which partitions and installs the appropriate packages for
you automatically, or to use a custom installer which partitions and
installs a base system, then use something like puppet to finish off
your install, running any host-specific configuration at the same time.

The nature of your setup alters how you would do it. If it's many machines,
all very similar and on one network, then something like puppet. If you just
need to spit out a custom configuration and don't need to manage it over time,
perhaps something like this:
http://www.informatik.uni-koeln.de/fai/
... this by making use of contacts via the NZ Linux Users Group.
 
Old 04-16-2009, 02:10 AM   #24
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38
I have been thinking about finding the local LUG but haven't actively been looking for one yet, I should though.
I have installed the package fai-doc and I will be reading this through in the next couple of days.

I will delete the '/etc/udev/rules.d/70-persistent-cd.rules' file and see what happens and will do the same for the '/etc/udev/rules.d/70-persistent-net.rules' file because there is some change in network device naming as well on the clone (eth0 -> eth1) while if one would do a clean install on the same box the ethernet device would be named 'eth0'.
 
Old 04-17-2009, 12:23 AM   #25
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38
Hmm, removing those two files seemed to have fixed the dvd issue and the eth1 is now eth0. all the block device links have lost their number 2 at the end of their names and are now called: /dev/dvd and /dev/cdrw and so on, which is what I wanted to get dvd playback to work properly.

Thanks very much Simon, for your ongoing effort in helping me fix this problem.
 
Old 04-20-2009, 12:14 AM   #26
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38
If there is a way to mark this thread as SOLVED, that would be appropriate now. Except along the way we've come to conclude that it is not really dvdcss related but to a cloning issue.

thanks again Simon for nailing it!
I'd still be in the dark about it otherwise.
Ron.
 
Old 04-21-2009, 08:08 PM   #27
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
It may be possible to go back and edit the initial title. Or notify a moderator.

A characteristic of community-based support is that you'll get help beyond what you asked for. You had DVD working ages ago - but the solution just left a future problem lurking. A MSCE mould have taken your money and looked forward to your future business

As it happens - I have a laptop which is (was) difficult to configure. I'd been distributing clones of my setup ... so this issue concerned me anyway.

It also means you have ow had a good experience of gnu/linux where you'd otherwise have had a recurring annoyance.
 
Old 04-21-2009, 09:09 PM   #28
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Original Poster
Rep: Reputation: 38
It has been a little hard in the beginning but nowadays my experiences with Linux are great. I am a Linux user since SimplyMepis 3.x, only went back to windows to do some tasks I had not quiet mastered under linux. Back then I made the decision and stuck with it and have been able to pass this virus (it completely eradicates windows not only off your hard drive but also your mind) on a few others. I do not see this sort of thing as a reason to give up on it. If we could not resolve it here I would have been forced to use my regular routine for setting up a system, which is a certain way to get things to work but also a longer way. What I am thinking of doing now for future clones is to remove those two files from the to be cloned machine and then reboot straight into clonezilla and make my clone the way I always did. If those two files will be re-created on boot then I think they will be absent in the clone image and created the first time the clone boots.

I try to do my part here as well, but I find most problems here are out of my league. There is one thread in particular where I think I can be a great help to the OP but the thread seems to be getting out of hand, the OP is new to linux and has the potention to stay but I have the feeling she gets too much information fired upon her and doesn't know what to do with it, which in the end can backfire and she may choose to go back to windows.
 
  


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
libdvdcss -- I can play some DVDs, but not others! Adrohak Linux - Software 38 05-10-2007 09:53 AM
Cannot play commercial DVD's in SUSU 10 kkempter SUSE / openSUSE 12 01-06-2006 06:06 PM
libdvdcss decrypts some DVD's but not others mikemrh9 Linux - Software 2 08-16-2005 04:46 AM
xine + libdvdcss +playing dvd's +suse 9.2 department27 Linux - Newbie 3 03-15-2005 04:20 PM
dvd's wont play (even with libdvdcss) spyderusa11 Linux - Software 2 07-09-2003 05:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:31 PM.

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