Results 1 to 5 of 5

Thread: samba share cd-drive (hardy)

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Location
    under the ocean
    Beans
    25
    Distro
    Ubuntu 9.10 Karmic Koala

    samba share cd-drive (hardy)

    How can i share my cd/dvd-rom drive over my samba network? The drive is on an Ubuntu 8.04 Hardy machine. I have already set up samba and successfully shared my external drive over the network, but do not know what directory to set the share as in samba.
    When i insert a disk, it is mounted in /media/"discname" which i am able to share. However this is semi useless as it only works for discs of whatever name i set it to.

    Is there any way to share whatever disk is in the drive automatically?

    much thanks for any possible help




    (smb.conf mentions editing fstab. the default examples given do not seem to work)
    Last edited by fredknex; June 15th, 2008 at 07:40 AM. Reason: forgot

  2. #2
    Join Date
    Jun 2008
    Beans
    2

    Re: samba share cd-drive (hardy)

    As you know, in UNIX Systems, Hard Drives are mapped and used as a part of the file directory, such as /dev/cdrom mapped to /media/cdrom etc...

    If you want to share a hard drive, you just need to share the directory where the drive is mapped (in the case before, /media/cdrom) ...

    try editing the samba's config file as:

    Code:
    sudo gedit /etc/samba/smb.conf
    then, chance the follow section as:

    Code:
    [public]
       comment = Public Stuff
       path = /dir where your drive is mapped
       public = yes
       writable = yes
       printable = no

    I hope this can help you...

  3. #3
    Join Date
    Jun 2008
    Beans
    2

    Re: samba share cd-drive (hardy)


  4. #4
    Join Date
    Mar 2008
    Location
    under the ocean
    Beans
    25
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: samba share cd-drive (hardy)

    Thanks for the info, from what i've been reading my problem is most likely fstab, since i can share the cd drive manually but not automatically, if that makes sense

  5. #5
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: samba share cd-drive (hardy)

    Quote Originally Posted by kaleo86 View Post
    As you know, in UNIX Systems, Hard Drives are mapped and used as a part of the file directory, such as /dev/cdrom mapped to /media/cdrom etc...

    If you want to share a hard drive, you just need to share the directory where the drive is mapped (in the case before, /media/cdrom) ...

    try editing the samba's config file as:

    Code:
    sudo gedit /etc/samba/smb.conf
    then, chance the follow section as:

    Code:
    [public]
       comment = Public Stuff
       path = /dir where your drive is mapped
       public = yes
       writable = yes
       printable = no

    I hope this can help you...
    actually, since it's a dvd ROM, it should look like this:
    Code:
    [DVD-ROM Drive]
        path = /media/cdrom
        browseable = yes
        read only = yes
        guest ok = yes
    usually the dvd is mounted at /media/cdrom and then a symbolic link is created so that you will see the dvd as a name on your desktop. if you have more than one cd/dvd drive, this could be /media/cdrom1

Tags for this Thread

Bookmarks

Posting Permissions

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