LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Sharing the DVDROM drive Ubuntu Lucid / Windows 7 (https://www.linuxquestions.org/questions/linux-newbie-8/sharing-the-dvdrom-drive-ubuntu-lucid-windows-7-a-810167/)

splittingdistant 05-26-2010 03:54 AM

Sharing the DVDROM drive Ubuntu Lucid / Windows 7
 
Hi,

As a relative noob with Linux (Ubuntu) I was enjoying learning stuff with Ubuntu Karmic - and everything I tried seemed to work even after my inexpert fiddling - which was nice!

However, since installing Ubuntu Lucid I've spent loads of time trying to re-establish the share I had under Karmic whereby my Ubuntu PC's DVDROM was automatically available to my connected Win7 PC.

After a couple of days effort I've got to the point where I can access the CD or DVD mounted in Ubuntu, from Win7 but I cannot access the files within the CD or DVD (Windows Err Mssg: You Do Not Have Permission To Access......).

I have noticed that since installing Lucid the mount point seems to be the name of the disk whereas under Karmic it was fixed as something like cdrom1.
So if I edit smb.conf I can't specify the mount point as it depends on the disk name. Though to be honest I have no idea if this is anything to do with the problem!

To save what little hair I have left I'd be grateful if someone could point me in the right direction.

Your mission, should you chose to accept it, is to have my Ubuntu PC's DVDROM available on my Win7 PC for read & write.

Thanks In Advance,
Kevin.

PS I posted this several days ago on the Ubuntu forum but there's been no replies at all - I was wondering if the question is so daft that they think I'm beyond help! So any and all advice would be gratefully received.

saikee 05-26-2010 06:28 AM

In a modern operating system like Ubuntu and Win7 every file has an ownership. A user cannot access another user's data. The only exception is the Admin in MS Windows or the root user in Linux.

Therefore if you want access from Ubuntu you can do the mounting as a super user in a terminal. I believe Ubuntu calls the first CD/DVD device /dev/sr0 so you can read/write it as root with commands
Code:

sudo su
mkdir /mnt/my_dvdrom 
mount /dev/sr0 /mnt/my_dvdrom
ls /mnt/my_dvdrom

Thereafter you can copy files same as any folder in the terminal.

For Win7 you can run Command Prompt as Admin and should be able to read/write the DVDrom drive.

splittingdistant 06-03-2010 10:22 AM

Saikee,

Thanks for the steer - I'll get right on it.

Regards,

Kevin.


All times are GMT -5. The time now is 07:52 PM.