You are not logged in.

#1 2011-03-02 08:55:48

Persuadatron
Member
Registered: 2011-02-23
Posts: 10

Pulseaudio stopped working [SOLVED]

After having used this guide to move my /home directory to a different partition, I noticed that the sound stopped working. When the system is loaded, I don't even see the little speaker icon in the tray.. I tried running pulseaudio --start and got this message:

E: core-util.c: Home directory /home/anlx not ours.
W: lock-autospawn.c: Cannot access autospawn lock.
E: main.c: Failed to acquire autospawn lock

I did google that error but all the results I got were threads about ALSA, which I don't even have installed.

Feels like I did something wrong when I moved the home folder.

Last edited by Persuadatron (2011-03-02 19:51:26)

Offline

#2 2011-03-02 08:59:24

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Pulseaudio stopped working [SOLVED]

E: core-util.c: Home directory /home/anlx not ours.

should raise some idea.

ls -l /home

the home directory is owned by other user


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2011-03-02 09:18:30

Persuadatron
Member
Registered: 2011-02-23
Posts: 10

Re: Pulseaudio stopped working [SOLVED]

Yes, indeed. I thought the same thing, and I even followed this guide which should've solved that problem, but I am still getting the same error as in OP.

Here is the output of ls -l:

total 1272
-rwxrwxrwx 1 root root 730233 Mar  2 02:12 2011-02-28-023327_1366x768_scrot.png
-rwxrwxrwx 1 root root 562211 Mar  2 02:12 2011-02-28-023656_1366x768_scrot.png
drwxrwxrwx 1 root root      0 Feb 24 14:10 Desktop
drwxrwxrwx 1 root root      0 Mar  2 02:11 Downloads
drwxrwxrwx 1 root root      0 Mar  2 02:12 images
drwxrwxrwx 1 root root   4096 Mar  2 02:12 session
drwxrwxrwx 1 root root      0 Mar  2 02:12 workspace

Why does it say that everything is owned by root.. even after I did chown - R anlx /home/anlx ?

Last edited by Persuadatron (2011-03-02 09:21:40)

Offline

#4 2011-03-02 12:39:31

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: Pulseaudio stopped working [SOLVED]

Because it seems you have a typo in your command. It's -R not - R


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#5 2011-03-02 14:07:44

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Pulseaudio stopped working [SOLVED]

One of the latest comments on your guide's page:

fade2gray wrote:

Using …
$( cd /home ; tar cfv – . ) | ( cd /mnt/newhome ; tar xf – )

Rather than …

$cd /home/
$find . -depth -print0 | cpio –null –sparse -pvd /mnt/newhome/

… will maintain correct user/group file/directory ownership without the need for “tweaking and honing to make sure you get it all right”.

Offline

#6 2011-03-02 18:13:08

Persuadatron
Member
Registered: 2011-02-23
Posts: 10

Re: Pulseaudio stopped working [SOLVED]

ngoonee wrote:

Because it seems you have a typo in your command. It's -R not - R

Sorry, in the post I typed it with a space between the - and the R, but in the terminal I did type it correctly. I have tried to do it several times, both with sudo and with su as root... but it does not seem to want to switch the owner.. what the hell?? Could it have something to do with the fact that the format of the partition is ntfs instead of a linux format?

stqn wrote:

One of the latest comments on your guide's page:

fade2gray wrote:

Using …
$( cd /home ; tar cfv – . ) | ( cd /mnt/newhome ; tar xf – )

Rather than …

$cd /home/
$find . -depth -print0 | cpio –null –sparse -pvd /mnt/newhome/

… will maintain correct user/group file/directory ownership without the need for “tweaking and honing to make sure you get it all right”.

Thanks, I did not see that.. though it is kind of late for that now.. how should I go about fixing my situation?

Offline

#7 2011-03-02 18:57:42

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Pulseaudio stopped working [SOLVED]

Ah yes, I'm sure the fact it is an NTFS partition doesn't help... With ntfs-3g you can choose one owner for all files at mount time, so I guess that means per-file ownership isn't handled.
You could try mounting your home partition with options like "umask=077,uid=1000,gid=100" (that's what I have anyway). Or use a "native" filesystem like for example ext3.

Edit: the uid option could (maybe) be fine as long as there's only one user directory in /home, but won't work if you want to add another user.

Last edited by stqn (2011-03-02 19:01:24)

Offline

#8 2011-03-02 19:50:44

Persuadatron
Member
Registered: 2011-02-23
Posts: 10

Re: Pulseaudio stopped working [SOLVED]

stqn wrote:

Ah yes, I'm sure the fact it is an NTFS partition doesn't help... With ntfs-3g you can choose one owner for all files at mount time, so I guess that means per-file ownership isn't handled.
You could try mounting your home partition with options like "umask=077,uid=1000,gid=100" (that's what I have anyway). Or use a "native" filesystem like for example ext3.

Edit: the uid option could (maybe) be fine as long as there's only one user directory in /home, but won't work if you want to add another user.

I realised that I should've investigated ntfs options earlier. Editing fstab did the trick:

/dev/sda7         /home      ntfs-3g    defaults,umask=077,uid=1000,gid=100         0         2

Audio started working instantly after reboot. Thanks!

Do I have to change format if I add another user though, since ntfs does not handle permissions like ext* does?

Offline

#9 2011-03-02 20:41:43

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: Pulseaudio stopped working [SOLVED]

Assuming the new user's primary group=users (gid=100) I suppose it should still work.

Last edited by skunktrader (2011-03-02 20:44:04)

Offline

#10 2011-03-02 22:48:09

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: Pulseaudio stopped working [SOLVED]

You will have very weird issues from time-to-time using ntfs as your home directory. You should consider using a real filesystem, ntfs is really only suitable for data (and you'd still have to deal with all your documents having their executable bit set), and only if you're sharing it with a windows dual-boot.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#11 2011-03-02 23:13:45

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Pulseaudio stopped working [SOLVED]

Just to clarify something: I don't have my /home on a NTFS partition. I had to use the umask/uid options to make Thunar's trash work correctly on my NTFS partitions, that's all smile.

Offline

#12 2011-03-02 23:28:09

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: Pulseaudio stopped working [SOLVED]

stqn wrote:

Just to clarify something: I don't have my /home on a NTFS partition. I had to use the umask/uid options to make Thunar's trash work correctly on my NTFS partitions, that's all smile.

Wasn't referring to you stqn, but to the OP smile. I've tried using ntfs before (while converting from using windows). Its just a pile of headaches, and part of it is a desire-from-habit of keeping everything in 'my documents', or /home/myname now in Linux.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB