Home of the Squeezebox™ & Transporter® network music players.

Go Back   Squeezebox : Community : Forums > User Forums > Linux / Unix
User Name
Password

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2009-11-22, 11:23
probedb probedb is offline
Senior Member
 
Join Date: Oct 2006
Location: sheffield, uk
Posts: 195
probedb is on a distinguished road
Unhappy SCC 7.4.1 can't see my USB drives?

Hi folks,

Managed to upgrade to 7.4.1 but it can't see my USB drives any more?

The drives are automounted in the desktop (Gnome?) but don't think they have the right permissions?

Code:
lrwxrwxrwx 1 root root    6 2009-07-08 20:10 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2009-07-08 20:10 cdrom0
drwx------ 1 paul paul 8192 2009-11-03 19:30 Music
drwx------ 1 paul paul 4096 2009-09-07 13:39 Video
Thing is, even as root I can't change the ownership of those files?

Any thoughts anyone?

So what was supposed to be switch on the SB to listen to music to do the washing up has turned into 45 minutes arsing around

Any help would be greatly appreciated!

Cheers,
Paul.
__________________
last.fm
Reply With Quote
  #2  
Old 2009-11-24, 05:43
chn68b chn68b is offline
Member
 
Join Date: Dec 2008
Posts: 92
chn68b is on a distinguished road
Default

I think that theres a problem with automounting and squeezecenter.

I added this to my fstab when I was having the same problem (where sdc1 is my usb drive):

/dev/sdc1 /mnt/media/music vfat users,umask=1000,rw,noauto 0 0


where the plural "users" gives read/write access to all users and it disables the automount of the USB drive. Probably not secure, but I use the drive for watching movies as well and if I set it to mount using the squeezeboxserver user id it stopped my xbmc accessing the drive as well.
__________________
Source: Squeezebox 3
Amp/Speakers: Meridian M30
Phones: Grado SR-60s
Headphone Amp: Pro-ject Headbox II

http://www.last.fm/user/chn68b

Last edited by chn68b; 2009-11-24 at 05:47.
Reply With Quote
  #3  
Old 2009-11-24, 12:14
probedb probedb is offline
Senior Member
 
Join Date: Oct 2006
Location: sheffield, uk
Posts: 195
probedb is on a distinguished road
Default

Yeah there really should be a guide on sharing USB drives for other users on linux.

It's standard on Ubuntu to mount drives as the current user....which SBS can't see....bit dumb if you ask me.

Cheers for the suggestion, I found some stuff about altering the default mount options for USB drives so going to give them a try
__________________
last.fm
Reply With Quote
  #4  
Old 2009-11-27, 10:02
pablolie's Avatar
pablolie pablolie is offline
Senior Member
 
Join Date: Feb 2006
Location: bay area, california.
Posts: 776
pablolie is on a distinguished road
Send a message via Yahoo to pablolie
Default

I had never had an issue with this, and now with 9.10 and 7.4.1 voila! SBS does not see my USB drive, either. I have tried several things to no avail.

Since I installed SBS from my user id, it seems utterly asinine for SBS to want to be a different user and have drives mounted on it...

The tricks in Ubuntu forums aren't working.

And of course the password to the sbs user isn't readily available, which probably would be the easiest way to get this accomplished.

Dammit.
__________________
...pablo
Server: Shuttle X27D - Ubuntu 10.04LTS - SBS 7.5.0
Sources: SB3 (3), SB Boom (3), Duet (1), Radio (1), Accuphase DP65v CD (used as DAC mostly)
Amplifiers: Accuphase E306v - Creek OBH21/22
Loudspeakers: Ceeroy 3-way tower (tuned) - Audioengine 5/S8 - Acoustic Energy Aego M
Headphones: Grado SR-1
Reply With Quote
  #5  
Old 2009-11-28, 01:54
probedb probedb is offline
Senior Member
 
Join Date: Oct 2006
Location: sheffield, uk
Posts: 195
probedb is on a distinguished road
Default

I'm going to have a play this weekend so I'll let you know how I get on Main problem I've noticed is it never asks you for a sys password in the desktop any more it just stops you doing stuff.
__________________
last.fm
Reply With Quote
  #6  
Old 2009-11-28, 05:34
pablolie's Avatar
pablolie pablolie is offline
Senior Member
 
Join Date: Feb 2006
Location: bay area, california.
Posts: 776
pablolie is on a distinguished road
Send a message via Yahoo to pablolie
Default

I posted some advice in a different topic in here.

I reverted back to an old install, even though I got everything to work. I was just not happy with certain aspects of deploying 9.10 on this machine - it seemed more sluggish, and the Firefox 3.5 fonts looked very jagged to my eye. Something isn't quite right about it when it comes to running it on this particular computer... I have left it on others though.
__________________
...pablo
Server: Shuttle X27D - Ubuntu 10.04LTS - SBS 7.5.0
Sources: SB3 (3), SB Boom (3), Duet (1), Radio (1), Accuphase DP65v CD (used as DAC mostly)
Amplifiers: Accuphase E306v - Creek OBH21/22
Loudspeakers: Ceeroy 3-way tower (tuned) - Audioengine 5/S8 - Acoustic Energy Aego M
Headphones: Grado SR-1
Reply With Quote
  #7  
Old 2009-11-28, 06:22
chn68b chn68b is offline
Member
 
Join Date: Dec 2008
Posts: 92
chn68b is on a distinguished road
Default

to get this to work so far I've done this:

into terminal then:

sudo fdisk-l

this returned the drive info I needed, my usb drive being "sdc1", then I needed to find the uid details for the user "squeezeboxserver" which is the default user id for the program, to do this do the following:

id squeezeboxerver

this returned a uid of 113 and a gid of 65534 (needed for squeezecenter to have permission to see it)

I unmounted the drive from the desktop then back into terminal

sudo mount -t vfat /dev/sdc1 /media/external -o uid=113,gid=65534,utf8,dmask=027,fmask=137

Reopened squeezebox and had to point it to a new location initially (don't know why) started a scan on the new folder (with no music in it) aborted the scan and then pointed it back to the usb drive and it worked fine.
__________________
Source: Squeezebox 3
Amp/Speakers: Meridian M30
Phones: Grado SR-60s
Headphone Amp: Pro-ject Headbox II

http://www.last.fm/user/chn68b

Last edited by chn68b; 2009-11-28 at 07:11.
Reply With Quote
  #8  
Old 2009-12-03, 15:20
squeezyjim squeezyjim is offline
Member
 
Join Date: Nov 2009
Posts: 41
squeezyjim is on a distinguished road
Default just a suggestion...

I'm guessing you guys fixed this in the end...?

..but rather than give that drive sole access to the squeezeboxserver 'user', why not just add the user 'squeezeboxserver' to the group 'users', then give read/write access to that group on that drive (as normal)? In OpenSuse there's a graphical way to do it, but I don't know about Ubuntu...

The command line for this would be something like:

sudo usermod -g users squeezeboxserver
^ ^
group to add squeezeboxserver to

But check your man pages to be sure...could also use 'useradd -g' I think...

That's what I did anyway and it works fine for me - except for the playlist directory which I just chown'd to squeezeboxserver:users.

Hope this helps,
Cheers
Jim
Reply With Quote
  #9  
Old 2009-12-03, 15:39
probedb probedb is offline
Senior Member
 
Join Date: Oct 2006
Location: sheffield, uk
Posts: 195
probedb is on a distinguished road
Default

The problem is the automount used by Gnome, there are no group or world permissions given and you can't change any of them.

I need to do a clean install of 9.10 this weekend as everything seems to be going wrong with it.

I'll also disable the auto mount and add the stuff to me fstab file instead
__________________
last.fm
Reply With Quote
  #10  
Old 2009-12-04, 01:52
squeezyjim squeezyjim is offline
Member
 
Join Date: Nov 2009
Posts: 41
squeezyjim is on a distinguished road
Default

Sounds like a good idea.

grrr that pesky Gnome causing grief again...

Cheers
Jim
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 20:41.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.