LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-14-2009, 12:22 PM   #1
wastingpenguins
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
Sync Zune from network drive (VirtualBox)


Hi folks,

Fairly new to Linux, and loving it so far. The only thing holding me back is finding a way to sync my Zune without having to dual boot. VirtualBox seems like an elegant solution, and I've got it all up and running perfectly, except for this one problem, which is a BIG problem for me.

Breakdown: My music is all in the Ubuntu "Music" folder. Using VirtualBox shared folders, I have mapped that folder to a network drive within virtual XP. The Zune software reads the network just fine and I have my library all set up. Within Zune software I can browse and play all music files without problems.

However, the music will not sync this way, for reasons unknown to me. At first I was totally baffled, but I found that my problem is identical to the one expressed in this thread: http://forums.virtualbox.org/viewtopic.php?f=2&t=13094

Turns out the Zune can't sync through network drives like that, for whatever reason. The author of that thread suggests I instead use Samba to set up shared folders. I followed this tutorial: http://ubuntuforums.org/showthread.php?t=202605

After much tinkering, I successfully used Samba to set up a new shared folder between Ubuntu and virtual XP. However, setting up a *new* shared folder is useless to me -- I want my Ubuntu "Music" folder to be the shared folder, but I cannot get it to work. I presume it is only a matter of correctly setting up the Samba config file, but all my attempts were unsuccessful.

Thoughts/ideas/suggestions?
 
Old 08-14-2009, 12:42 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Reading that link I understand that it's not a Windows network drive problem but a VBox shared folders problem. Good thing, otherwise the samba workaround wouldn't work!

Sounds like you've got samba working OK but haven't made it share your Ubuntu "Music" folder. Why not?

What's the path of your Ubuntu "Music" folder and what does your smb.conf look like?
 
Old 08-14-2009, 02:31 PM   #3
wastingpenguins
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Hi, thanks for the response.

My smb.conf file currently reads as follows.

Quote:
[global]
; General server settings
netbios name = brett
server string =
workgroup = WORKGROUP
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

passdb backend = tdbsam
security = user
null passwords = true
username map = /etc/samba/smbusers
name resolve order = hosts wins bcast

wins support = no

printing = CUPS
printcap name = CUPS

syslog = 1
syslog only = yes

; NOTE: If you need access to the user home directories uncomment the
; lines below and adjust the settings to your hearts content.
;[homes]
;valid users = %S
;create mode = 0600
;directory mode = 0755
;browseable = no
;read only = no
;veto files = /*.{*}/.*/mail/bin/

; NOTE: Only needed if you run samba as a primary domain controller.
; Not needed as this config doesn't cover that matter.
;[netlogon]
;path = /var/lib/samba/netlogon
;admin users = Administrator
;valid users = %U
;read only = no

; NOTE: Again - only needed if you're running a primary domain controller.
;[Profiles]
;path = /var/lib/samba/profiles
;valid users = %U
;create mode = 0600
;directory mode = 0700
;writeable = yes
;browseable = no

; NOTE: Inside this place you may build a printer driver repository for
; Windows - I'll cover this topic in another HOWTO.
[print$]
path = /var/lib/samba/printers
browseable = yes
guest ok = yes
read only = yes
write list = root
create mask = 0664
directory mask = 0775

[printers]
path = /tmp
printable = yes
guest ok = yes
browseable = no

; Uncomment if you need to share your CD-/DVD-ROM Drive
;[DVD-ROM Drive]
;path = /media/cdrom
;browseable = yes
;read only = yes
;guest ok = yes

[MyFiles]
path = /home/samba/
browseable = yes
read only = no
guest ok = no
create mask = 0644
directory mask = 0755
force user = brett
force group = brett
As you can see, I was able to make a new folder "/home/Samba" and set up the network drive through that, and could successfully share files through that folder. I tried switching that path to "home/brett/Music" but even with all my tinkering, XP could not make the connection to set up a network drive to that destination. If that should work, it's possible that I just messed up something small, I plan to do more tinkering today when I get home from work.

On the other hand, I thought that perhaps I would have to configure the [homes] section of smb.conf, since my Music folder is a "home" folder. However, the [homes]section does not have spot to put in a "path".

Thoughts?
 
Old 08-14-2009, 04:41 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
If [MyFiles} worked OK then simply changing "path = /home/samba/" to "path = /home/brett/Music/" as you did should (TM) have worked -- unless samba does not have permission to access it.

You don't need [homes] just because /home/brett/Music/ is under your home directory.

Any clues in the /var/log/* files?
 
  


Reply



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
VirtualBox Bridged Network help bourne Linux - Software 4 07-21-2009 04:06 PM
Installing or Using a Flash Drive in VirtualBox LinuxNewbie55 Linux - Software 1 10-04-2008 03:49 PM
Virtualbox not detecting cd/dvd drive nigelc Linux - Software 2 03-17-2008 10:55 PM
virtualbox - does this delete my actual drive micro_xii Linux - Newbie 5 11-07-2007 04:58 PM
Can't access windows drive from virtualbox cooler123321 Linux - General 1 07-06-2007 07:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:13 AM.

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