Re: [gentoo-user] can not mount USB stick as user

2014-02-06 Thread Neil Bothwick
On Wed, 5 Feb 2014 17:32:13 -0700, Joseph wrote:

 You don't need to change grub.conf to reboot with different options,
 just press e and edit the options in place.

 When I try to boot I'm getting an error:
 
 VFS: Can not open device hda3 or unknown block (0,0): error -6

You can change GRUB settings from the GRUB menu, before you try to boot
the kernel, press e as in my previous post.

It seems you are getting into a mess with the systemd switch and trying
all sorts of things at random. The old rule of when you find yourself in
a hold, stop digging applies here.

Stop making changes in the hope of getting things working, when you could
be making them worse to the extent that your system will still be broken
when you fix the original problem. Go back to the systemd wiki page and
follow it carefully, making sure you both understand and complete each
step, otherwise I see things getting worse for you.


-- 
Neil Bothwick

Consciousness: that annoying time between naps.


signature.asc
Description: PGP signature


Re: [gentoo-user] can not mount USB stick as user

2014-02-06 Thread Joseph

On 02/06/14 09:09, Neil Bothwick wrote:

On Wed, 5 Feb 2014 17:32:13 -0700, Joseph wrote:


You don't need to change grub.conf to reboot with different options,
just press e and edit the options in place.



When I try to boot I'm getting an error:

VFS: Can not open device hda3 or unknown block (0,0): error -6


You can change GRUB settings from the GRUB menu, before you try to boot
the kernel, press e as in my previous post.

It seems you are getting into a mess with the systemd switch and trying
all sorts of things at random. The old rule of when you find yourself in
a hold, stop digging applies here.

Stop making changes in the hope of getting things working, when you could
be making them worse to the extent that your system will still be broken
when you fix the original problem. Go back to the systemd wiki page and
follow it carefully, making sure you both understand and complete each
step, otherwise I see things getting worse for you.


--
Neil Bothwick

Consciousness: that annoying time between naps.


I copied an old kernel config file from /boot did make oldconfig enable
systemd in the kernel
put the grub.conf ... init=/usr/lib/systemd/systemd
and it booted OK but I have no X display, no network :-/

I just realized that systemd it is almost like learning configuring new OS.
I have no time for this so I'm back pedaling to udev :-/

--
Joseph



Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Alan McKinnon
On 05/02/2014 18:32, Joseph wrote:
 Which program is responsible for mounting USB stick on XFCE4?
 
 After enable systemd flag in make.conf USE=
 the following packages were rebuild:
 sys-apps/busybox
 sys-apps/dbus
 sys-auth/pambase
 sys-auth/polkit
 sys-fs/udisks
 sys-power/upower
 gnome-base/gvfs
 
 But now I have a BIG problem, I can not mount USB stick at all as user
 (only as root).
 Eject doesn't work either.
 

fast reply off the top of the head of someone who has never used systemd:


Systemd and udev are tightly interwoven. Did you restart udev?

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Joseph

On 02/05/14 18:35, Alan McKinnon wrote:

On 05/02/2014 18:32, Joseph wrote:

Which program is responsible for mounting USB stick on XFCE4?

After enable systemd flag in make.conf USE=
the following packages were rebuild:
sys-apps/busybox
sys-apps/dbus
sys-auth/pambase
sys-auth/polkit
sys-fs/udisks
sys-power/upower
gnome-base/gvfs

But now I have a BIG problem, I can not mount USB stick at all as user
(only as root).
Eject doesn't work either.



fast reply off the top of the head of someone who has never used systemd:


Systemd and udev are tightly interwoven. Did you restart udev?

--
Alan McKinnon
alan.mckin...@gmail.com


Yes, I restarted the system. I don't have udev installed; systemd is 
replacing udev isn't it?
Before installing systemd I had to unmerge udev.

--
Joseph



Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Canek Peláez Valdés
On Wed, Feb 5, 2014 at 10:32 AM, Joseph syscon...@gmail.com wrote:
 Which program is responsible for mounting USB stick on XFCE4?

 After enable systemd flag in make.conf USE=
 the following packages were rebuild:
 sys-apps/busybox
 sys-apps/dbus
 sys-auth/pambase
 sys-auth/polkit
 sys-fs/udisks
 sys-power/upower
 gnome-base/gvfs

 But now I have a BIG problem, I can not mount USB stick at all as user (only
 as root).
 Eject doesn't work either.

I don't know the answer to your question, since I don't use Xfce, but
inside xfce-base/*, but I only see thunar depending on udisks, and
then only with the udev USE flag activated (which is automatic when
using any of the desktop profiles, I believe). Without looking at the
code of Xfce, I can only guess that Thunar handles the mounting of
external devices.

Let me ask you a few questions:

1. Before switching to systemd, how did you mounted the stick; it was
automatic (it just appeared in Thunar), or you had to do something?

2. When you say that you can mount it only as root, you mean inside a
Xfce session as root?

3. The following line is in /etc/pam.d/system-auth?

   -sessionoptionalpam_systemd.so

4. Using systemd is more than just emerging it; you need to change
your init= line in grub-legacy or GRUB2 and reboot. The contents of
/proc/1/comm is systemd?

5. If the contents of /proc/1/comm is systemd, could you please show
us the output from the following commands when inside your Xfce
session (as your normal user):

   • systemctl --all --full
   • loginctl (annotate your-session [first column] and your-seat [last column])
   • loginctl seat-status your-seat
   • loginctl session-status your-session
   • loginctl user-status your-user

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Alan McKinnon
On 05/02/2014 19:03, Joseph wrote:
 On 02/05/14 18:35, Alan McKinnon wrote:
 On 05/02/2014 18:32, Joseph wrote:
 Which program is responsible for mounting USB stick on XFCE4?

 After enable systemd flag in make.conf USE=
 the following packages were rebuild:
 sys-apps/busybox
 sys-apps/dbus
 sys-auth/pambase
 sys-auth/polkit
 sys-fs/udisks
 sys-power/upower
 gnome-base/gvfs

 But now I have a BIG problem, I can not mount USB stick at all as user
 (only as root).
 Eject doesn't work either.


 fast reply off the top of the head of someone who has never used systemd:


 Systemd and udev are tightly interwoven. Did you restart udev?

 -- 
 Alan McKinnon
 alan.mckin...@gmail.com
 
 Yes, I restarted the system. I don't have udev installed; systemd is
 replacing udev isn't it?
 Before installing systemd I had to unmerge udev.
 

Here's how I understand how things work:

There's a body of code called udev which when runs performs a service
called udev.

There's also a body of code called systemd which when it runs is PID 1.

And there's a project called systemd which does all manner of PID 1
things and controls early startup amongst other things. There used to be
a project called udev which has been folded into the systemd project.

Both bodies of code are these days found in a tarball called systemd
from the systemd project which is why you download systemd sources when
installing the Gentoo udev package.

However, systemd doesn't just magically do what udev does out of thin
air. udev is still a functional running service and must be enabled in
systemd for it to run.

Confused yet? English is a hugely overloaded language.

I'm thinking you need systemd with the udev USE flag set.

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Joseph

On 02/05/14 11:46, Canek Peláez Valdés wrote:

On Wed, Feb 5, 2014 at 10:32 AM, Joseph syscon...@gmail.com wrote:

Which program is responsible for mounting USB stick on XFCE4?

After enable systemd flag in make.conf USE=
the following packages were rebuild:
sys-apps/busybox
sys-apps/dbus
sys-auth/pambase
sys-auth/polkit
sys-fs/udisks
sys-power/upower
gnome-base/gvfs

But now I have a BIG problem, I can not mount USB stick at all as user (only
as root).
Eject doesn't work either.


I don't know the answer to your question, since I don't use Xfce, but
inside xfce-base/*, but I only see thunar depending on udisks, and
then only with the udev USE flag activated (which is automatic when
using any of the desktop profiles, I believe). Without looking at the
code of Xfce, I can only guess that Thunar handles the mounting of
external devices.

Let me ask you a few questions:

1. Before switching to systemd, how did you mounted the stick; it was
automatic (it just appeared in Thunar), or you had to do something?


When I insert the USB stick, an icon automatically appears on a desktop so I right click 
on it an mount it.
But after doing these changes it keep telling me I'm Not authorized to perform the 
operation (mount it or eject the USB).



2. When you say that you can mount it only as root, you mean inside a
Xfce session as root?


To mount the USB I have to login as root, from command line.



3. The following line is in /etc/pam.d/system-auth?

  -sessionoptionalpam_systemd.so


Yes, I have this line in in /etc/pam.d/system-auth



4. Using systemd is more than just emerging it; you need to change
your init= line in grub-legacy or GRUB2 and reboot. The contents of
/proc/1/comm is systemd?


I only have this:
cat /proc/1/comm
init



5. If the contents of /proc/1/comm is systemd, could you please show
us the output from the following commands when inside your Xfce
session (as your normal user):

  • systemctl --all --full
  • loginctl (annotate your-session [first column] and your-seat [last column])
  • loginctl seat-status your-seat
  • loginctl session-status your-session
  • loginctl user-status your-user

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


systemctl --all --full
Failed to get D-Bus connection: No connection to service manager.

loginctl
Failed to issue method call: Launch helper exited with unknown return code 1

--
Joseph



Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Joseph

On 02/05/14 20:06, Alan McKinnon wrote:

On 05/02/2014 19:03, Joseph wrote:

On 02/05/14 18:35, Alan McKinnon wrote:

On 05/02/2014 18:32, Joseph wrote:

Which program is responsible for mounting USB stick on XFCE4?

After enable systemd flag in make.conf USE=
the following packages were rebuild:
sys-apps/busybox
sys-apps/dbus
sys-auth/pambase
sys-auth/polkit
sys-fs/udisks
sys-power/upower
gnome-base/gvfs

But now I have a BIG problem, I can not mount USB stick at all as user
(only as root).
Eject doesn't work either.



fast reply off the top of the head of someone who has never used systemd:


Systemd and udev are tightly interwoven. Did you restart udev?

--
Alan McKinnon
alan.mckin...@gmail.com


Yes, I restarted the system. I don't have udev installed; systemd is
replacing udev isn't it?
Before installing systemd I had to unmerge udev.



Here's how I understand how things work:

There's a body of code called udev which when runs performs a service
called udev.

There's also a body of code called systemd which when it runs is PID 1.

And there's a project called systemd which does all manner of PID 1
things and controls early startup amongst other things. There used to be
a project called udev which has been folded into the systemd project.

Both bodies of code are these days found in a tarball called systemd
from the systemd project which is why you download systemd sources when
installing the Gentoo udev package.

However, systemd doesn't just magically do what udev does out of thin
air. udev is still a functional running service and must be enabled in
systemd for it to run.

Confused yet? English is a hugely overloaded language.

I'm thinking you need systemd with the udev USE flag set.

--
Alan McKinnon
alan.mckin...@gmail.com


If I'm not mistaken my systemd is installed with gudev flag.

sys-apps/systemd-208-r2:0/1  USE=filecaps firmware-loader gudev introspection kmod pam policykit tcpd -acl -audit -cryptsetup -doc -gcrypt -http -lzma -python 
-qrcode (-selinux) {-test} -vanilla -xattr ABI_X86=(64) (-32) (-x32) PYTHON_SINGLE_TARGET=python2_7 PYTHON_TARGETS=python2_7 0 kB


--
Joseph



Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Alan McKinnon
On 05/02/2014 20:42, Joseph wrote:
 I'm thinking you need systemd with the udev USE flag set.

 -- 
 Alan McKinnon
 alan.mckin...@gmail.com
 
 If I'm not mistaken my systemd is installed with gudev flag.
 
 sys-apps/systemd-208-r2:0/1  USE=filecaps firmware-loader gudev
 introspection kmod pam policykit tcpd -acl -audit -cryptsetup -doc
 -gcrypt -http -lzma -python -qrcode (-selinux) {-test} -vanilla -xattr
 ABI_X86=(64) (-32) (-x32) PYTHON_SINGLE_TARGET=python2_7
 PYTHON_TARGETS=python2_7 0 kB



I'm all out of ideas. I don't use systemd myself.

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Canek Peláez Valdés
On Wed, Feb 5, 2014 at 12:38 PM, Joseph syscon...@gmail.com wrote:

[ humongous snip ]

 4. Using systemd is more than just emerging it; you need to change
 your init= line in grub-legacy or GRUB2 and reboot. The contents of
 /proc/1/comm is systemd?

 I only have this:
 cat /proc/1/comm
 init

[ snip ]

 systemctl --all --full
 Failed to get D-Bus connection: No connection to service manager.

 loginctl
 Failed to issue method call: Launch helper exited with unknown return code 1

Joseph, you are not running systemd. You have systemd *installed*, but
you are still *running* OpenRC. Therefore, your system is obviously
going to fail, since at least some parts of it believe you are running
systemd when you are not.

If you use GRUB, you need to change its config file and add the
following to your kernel command line:

init=/usr/lib/systemd/systemd

If you are using GRUB2, change /etc/default/grub and modify
GRUB_CMDLINE_LINUX so it has init=/usr/lib/systemd/systemd. Then run
grub2-mkconfig again.

Beware, systemd requires some kernel config options set or it will not
work. For systemd 208, these are:

AUTOFS4_FS
BLK_DEV_BSG
CGROUPS
DEVTMPFS
DMIID
EPOLL
FANOTIFY
FHANDLE
INOTIFY_USER
IPV6
NET
PROC_FS
SECCOMP
SIGNALFD
SYSFS
TIMERFD

Also, the following kernel config options should *NOT* be set:

IDE
SYSFS_DEPRECATED
SYSFS_DEPRECATED_V2
GRKERNSEC_PROC

Lastly, if you have /usr in a different partition from /, you *need*
an initramfs (this is now true also for OpenRC). Please check the
instructions set in:

https://wiki.gentoo.org/wiki/Systemd

To finish, let me remark that systemd never had problems in your
system. The problem was that you were not running systemd.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Joseph

On 02/05/14 13:06, Canek Peláez Valdés wrote:

On Wed, Feb 5, 2014 at 12:38 PM, Joseph syscon...@gmail.com wrote:

[ humongous snip ]


4. Using systemd is more than just emerging it; you need to change
your init= line in grub-legacy or GRUB2 and reboot. The contents of
/proc/1/comm is systemd?


I only have this:
cat /proc/1/comm
init


[ snip ]


systemctl --all --full
Failed to get D-Bus connection: No connection to service manager.

loginctl
Failed to issue method call: Launch helper exited with unknown return code 1


Joseph, you are not running systemd. You have systemd *installed*, but
you are still *running* OpenRC. Therefore, your system is obviously
going to fail, since at least some parts of it believe you are running
systemd when you are not.

If you use GRUB, you need to change its config file and add the
following to your kernel command line:

init=/usr/lib/systemd/systemd

If you are using GRUB2, change /etc/default/grub and modify
GRUB_CMDLINE_LINUX so it has init=/usr/lib/systemd/systemd. Then run
grub2-mkconfig again.

Beware, systemd requires some kernel config options set or it will not
work. For systemd 208, these are:

AUTOFS4_FS
BLK_DEV_BSG
CGROUPS
DEVTMPFS
DMIID
EPOLL
FANOTIFY
FHANDLE
INOTIFY_USER
IPV6
NET
PROC_FS
SECCOMP
SIGNALFD
SYSFS
TIMERFD

Also, the following kernel config options should *NOT* be set:

IDE
SYSFS_DEPRECATED
SYSFS_DEPRECATED_V2
GRKERNSEC_PROC

Lastly, if you have /usr in a different partition from /, you *need*
an initramfs (this is now true also for OpenRC). Please check the
instructions set in:

https://wiki.gentoo.org/wiki/Systemd

To finish, let me remark that systemd never had problems in your
system. The problem was that you were not running systemd.

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


Thank you for correction.  You are correct I would need to switch to new 
systemd.
I think for now I'll go back to udev as I'm afraid something might not work 
after switching :-/

--
Joseph



Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Rick Zero_Chaos Farina
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/05/2014 12:03 PM, Joseph wrote:

 Yes, I restarted the system. I don't have udev installed; systemd is
 replacing udev isn't it?
 Before installing systemd I had to unmerge udev.
 

systemd REPLACES openrc, and BUNDLES udev.  Modern linux REQUIRES udev
to run.  You can use the udev built into systemd, or you can use the
conveniently separated standalone version in gentoo, but if you don't
have udev, your system will not work right.

Please install udev.

Thanks,
Zero
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJS8pjfAAoJEKXdFCfdEflKmiUQAK8opLLAfIF9U101g6Qs4NE2
qQNGQHLiD7nt+TqD6VZCuE7Tm2qUvgwu1DvyWE4aFDZfQKZqfxeXDGpbkqulgXxK
VkAhW7A0NxiagqJhXtE9Ju4p7PTLYevKrDEtuypJw90WhsokXiTA8jgg0jknAOA8
Am4M/y/IPV8FYG2fL7Qy5iqAzY7ggkQ7UZB493RfpK+aBY3LHGSVYJVBxf+MuZaw
k8M28/itYS9LIU8MsWD9T+uHgXZyuf+9MaP2Svn8506TUTX078qMMVn8eMtV3yOG
SToS9oFqPG3ka1LWC7RGafUtPDH1h7huFMR4sTDeDiheCE97cbNQYzNf4ErVk2X0
bLsmPKX1cxx7T6oRSWcPNTx6VUUapLZyGI8LJ3sB3QG9kWnEnnKI3bnKJL4drP3n
PzGGd7r+RykB+1oYHNOtP2KjbpzILLL421FaeiXc0YLmyXnaBZXVveSSNLi7gsJ1
0QGoEyoW8NWUGddtSkRIYQz9gMajHwg29zPiXY93SaUvKKzWhtLkzdo405JGgYD5
oNcqeSomGFIghxP05P9ICAbY5HGElQtc/51rvqWTKrlT4gR4ELzw8dWL3ZN91lR+
vLyqPbDm/A40UkE70DdjRyhzq3hJ9slxq4a8l8+vZBmnNu5jjAmlxZXR1QTDqGdp
GU79N3hkTSUiZ99pJ3qO
=mNyo
-END PGP SIGNATURE-



Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Canek Peláez Valdés
On Wed, Feb 5, 2014 at 1:55 PM, Joseph syscon...@gmail.com wrote:
 On 02/05/14 13:06, Canek Peláez Valdés wrote:

 On Wed, Feb 5, 2014 at 12:38 PM, Joseph syscon...@gmail.com wrote:

 [ humongous snip ]

 4. Using systemd is more than just emerging it; you need to change
 your init= line in grub-legacy or GRUB2 and reboot. The contents of
 /proc/1/comm is systemd?


 I only have this:
 cat /proc/1/comm
 init


 [ snip ]

 systemctl --all --full
 Failed to get D-Bus connection: No connection to service manager.

 loginctl
 Failed to issue method call: Launch helper exited with unknown return
 code 1


 Joseph, you are not running systemd. You have systemd *installed*, but
 you are still *running* OpenRC. Therefore, your system is obviously
 going to fail, since at least some parts of it believe you are running
 systemd when you are not.

 If you use GRUB, you need to change its config file and add the
 following to your kernel command line:

 init=/usr/lib/systemd/systemd

 If you are using GRUB2, change /etc/default/grub and modify
 GRUB_CMDLINE_LINUX so it has init=/usr/lib/systemd/systemd. Then run
 grub2-mkconfig again.

 Beware, systemd requires some kernel config options set or it will not
 work. For systemd 208, these are:

 AUTOFS4_FS
 BLK_DEV_BSG
 CGROUPS
 DEVTMPFS
 DMIID
 EPOLL
 FANOTIFY
 FHANDLE
 INOTIFY_USER
 IPV6
 NET
 PROC_FS
 SECCOMP
 SIGNALFD
 SYSFS
 TIMERFD

 Also, the following kernel config options should *NOT* be set:

 IDE
 SYSFS_DEPRECATED
 SYSFS_DEPRECATED_V2
 GRKERNSEC_PROC

 Lastly, if you have /usr in a different partition from /, you *need*
 an initramfs (this is now true also for OpenRC). Please check the
 instructions set in:

 https://wiki.gentoo.org/wiki/Systemd

 To finish, let me remark that systemd never had problems in your
 system. The problem was that you were not running systemd.

 Regards.
 --
 Canek Peláez Valdés
 Posgrado en Ciencia e Ingeniería de la Computación
 Universidad Nacional Autónoma de México


 Thank you for correction.  You are correct I would need to switch to new
 systemd.
 I think for now I'll go back to udev as I'm afraid something might not work
 after switching :-/

Why don't you give it a try? You are almost there.

When booting, edit the grub entry and add
init=/usr/lib/systemd/systemd. If it works, great; otherwise, you
reboot and get back to where you were.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Joseph

On 02/05/14 14:02, Canek Peláez Valdés wrote:

On Wed, Feb 5, 2014 at 1:55 PM, Joseph syscon...@gmail.com wrote:

On 02/05/14 13:06, Canek Peláez Valdés wrote:


On Wed, Feb 5, 2014 at 12:38 PM, Joseph syscon...@gmail.com wrote:

[ humongous snip ]


4. Using systemd is more than just emerging it; you need to change
your init= line in grub-legacy or GRUB2 and reboot. The contents of
/proc/1/comm is systemd?



I only have this:
cat /proc/1/comm
init



[ snip ]


systemctl --all --full
Failed to get D-Bus connection: No connection to service manager.

loginctl
Failed to issue method call: Launch helper exited with unknown return
code 1



Joseph, you are not running systemd. You have systemd *installed*, but
you are still *running* OpenRC. Therefore, your system is obviously
going to fail, since at least some parts of it believe you are running
systemd when you are not.

If you use GRUB, you need to change its config file and add the
following to your kernel command line:

init=/usr/lib/systemd/systemd

If you are using GRUB2, change /etc/default/grub and modify
GRUB_CMDLINE_LINUX so it has init=/usr/lib/systemd/systemd. Then run
grub2-mkconfig again.

Beware, systemd requires some kernel config options set or it will not
work. For systemd 208, these are:

AUTOFS4_FS
BLK_DEV_BSG
CGROUPS
DEVTMPFS
DMIID
EPOLL
FANOTIFY
FHANDLE
INOTIFY_USER
IPV6
NET
PROC_FS
SECCOMP
SIGNALFD
SYSFS
TIMERFD

Also, the following kernel config options should *NOT* be set:

IDE
SYSFS_DEPRECATED
SYSFS_DEPRECATED_V2
GRKERNSEC_PROC

Lastly, if you have /usr in a different partition from /, you *need*
an initramfs (this is now true also for OpenRC). Please check the
instructions set in:

https://wiki.gentoo.org/wiki/Systemd

To finish, let me remark that systemd never had problems in your
system. The problem was that you were not running systemd.

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Thank you for correction.  You are correct I would need to switch to new
systemd.
I think for now I'll go back to udev as I'm afraid something might not work
after switching :-/


Why don't you give it a try? You are almost there.

When booting, edit the grub entry and add
init=/usr/lib/systemd/systemd. If it works, great; otherwise, you
reboot and get back to where you were.

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


I'll give it a try as going back to udev is not easy either :-/

--
Joseph



Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Joseph

On 02/05/14 14:02, Canek Peláez Valdés wrote:

On Wed, Feb 5, 2014 at 1:55 PM, Joseph syscon...@gmail.com wrote:

On 02/05/14 13:06, Canek Peláez Valdés wrote:


On Wed, Feb 5, 2014 at 12:38 PM, Joseph syscon...@gmail.com wrote:

[ humongous snip ]


4. Using systemd is more than just emerging it; you need to change
your init= line in grub-legacy or GRUB2 and reboot. The contents of
/proc/1/comm is systemd?



I only have this:
cat /proc/1/comm
init



[ snip ]


systemctl --all --full
Failed to get D-Bus connection: No connection to service manager.

loginctl
Failed to issue method call: Launch helper exited with unknown return
code 1



Joseph, you are not running systemd. You have systemd *installed*, but
you are still *running* OpenRC. Therefore, your system is obviously
going to fail, since at least some parts of it believe you are running
systemd when you are not.

If you use GRUB, you need to change its config file and add the
following to your kernel command line:

init=/usr/lib/systemd/systemd

If you are using GRUB2, change /etc/default/grub and modify
GRUB_CMDLINE_LINUX so it has init=/usr/lib/systemd/systemd. Then run
grub2-mkconfig again.

Beware, systemd requires some kernel config options set or it will not
work. For systemd 208, these are:

AUTOFS4_FS
BLK_DEV_BSG
CGROUPS
DEVTMPFS
DMIID
EPOLL
FANOTIFY
FHANDLE
INOTIFY_USER
IPV6
NET
PROC_FS
SECCOMP
SIGNALFD
SYSFS
TIMERFD

Also, the following kernel config options should *NOT* be set:

IDE
SYSFS_DEPRECATED
SYSFS_DEPRECATED_V2
GRKERNSEC_PROC

Lastly, if you have /usr in a different partition from /, you *need*
an initramfs (this is now true also for OpenRC). Please check the
instructions set in:

https://wiki.gentoo.org/wiki/Systemd

To finish, let me remark that systemd never had problems in your
system. The problem was that you were not running systemd.

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Thank you for correction.  You are correct I would need to switch to new
systemd.
I think for now I'll go back to udev as I'm afraid something might not work
after switching :-/


Why don't you give it a try? You are almost there.

When booting, edit the grub entry and add
init=/usr/lib/systemd/systemd. If it works, great; otherwise, you
reboot and get back to where you were.

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


I've tried to switch my backup system to systemd by adding line init=/usr/lib/systemd/systemd to grub donfig 
and as I suspected the system did not boot. I got a kernel paanic. 


can not open root device hda3 or unknown block (0,0): error -6

--
Joseph



Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Canek Peláez Valdés
On Wed, Feb 5, 2014 at 2:44 PM, Joseph syscon...@gmail.com wrote:
 On 02/05/14 14:02, Canek Peláez Valdés wrote:

 On Wed, Feb 5, 2014 at 1:55 PM, Joseph syscon...@gmail.com wrote:

 On 02/05/14 13:06, Canek Peláez Valdés wrote:


 On Wed, Feb 5, 2014 at 12:38 PM, Joseph syscon...@gmail.com wrote:

 [ humongous snip ]

 4. Using systemd is more than just emerging it; you need to change
 your init= line in grub-legacy or GRUB2 and reboot. The contents of
 /proc/1/comm is systemd?



 I only have this:
 cat /proc/1/comm
 init



 [ snip ]

 systemctl --all --full
 Failed to get D-Bus connection: No connection to service manager.

 loginctl
 Failed to issue method call: Launch helper exited with unknown return
 code 1



 Joseph, you are not running systemd. You have systemd *installed*, but
 you are still *running* OpenRC. Therefore, your system is obviously
 going to fail, since at least some parts of it believe you are running
 systemd when you are not.

 If you use GRUB, you need to change its config file and add the
 following to your kernel command line:

 init=/usr/lib/systemd/systemd

 If you are using GRUB2, change /etc/default/grub and modify
 GRUB_CMDLINE_LINUX so it has init=/usr/lib/systemd/systemd. Then run
 grub2-mkconfig again.

 Beware, systemd requires some kernel config options set or it will not
 work. For systemd 208, these are:

 AUTOFS4_FS
 BLK_DEV_BSG
 CGROUPS
 DEVTMPFS
 DMIID
 EPOLL
 FANOTIFY
 FHANDLE
 INOTIFY_USER
 IPV6
 NET
 PROC_FS
 SECCOMP
 SIGNALFD
 SYSFS
 TIMERFD

 Also, the following kernel config options should *NOT* be set:

 IDE
 SYSFS_DEPRECATED
 SYSFS_DEPRECATED_V2
 GRKERNSEC_PROC

 Lastly, if you have /usr in a different partition from /, you *need*
 an initramfs (this is now true also for OpenRC). Please check the
 instructions set in:

 https://wiki.gentoo.org/wiki/Systemd

 To finish, let me remark that systemd never had problems in your
 system. The problem was that you were not running systemd.

 Regards.
 --
 Canek Peláez Valdés
 Posgrado en Ciencia e Ingeniería de la Computación
 Universidad Nacional Autónoma de México



 Thank you for correction.  You are correct I would need to switch to new
 systemd.
 I think for now I'll go back to udev as I'm afraid something might not
 work
 after switching :-/


 Why don't you give it a try? You are almost there.

 When booting, edit the grub entry and add
 init=/usr/lib/systemd/systemd. If it works, great; otherwise, you
 reboot and get back to where you were.

 Regards.
 --
 Canek Peláez Valdés
 Posgrado en Ciencia e Ingeniería de la Computación
 Universidad Nacional Autónoma de México


 I've tried to switch my backup system to systemd by adding line
 init=/usr/lib/systemd/systemd to grub donfig and as I suspected the system
 did not boot. I got a kernel paanic.
 can not open root device hda3 or unknown block (0,0): error -6

It probably could be fixed, but it will take time and info about your
system (partition arrangement, if you use or not an initramfs, how do
you created it, etc.)

Perhaps you would prefer to get back to OpenRC+udev. Just be aware
that, if you had installed systemd, it was because something requires
it. If you don't use systemd, you will have degraded functionality,
since more and more things require systemd or parts of it
(specifically logind). This not only applies to GNOME 3, but also to
Xfce (which uses a lot of GNOME/Gtk+/glib infrastructure). KDE is also
analyzing how to better use systemd provided technologies.

You can try to set USE=-systemd consolekit and do a emerge -uDNv
world. That will bring back much (but not all) of the functionality;
just be aware that ConsoleKit is unmaintained and it will eventually
bitrot.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Joseph

On 02/05/14 15:01, Canek Peláez Valdés wrote:
[snip]


If you are using GRUB2, change /etc/default/grub and modify
GRUB_CMDLINE_LINUX so it has init=/usr/lib/systemd/systemd. Then run
grub2-mkconfig again.

Beware, systemd requires some kernel config options set or it will not
work. For systemd 208, these are:

AUTOFS4_FS
BLK_DEV_BSG
CGROUPS
DEVTMPFS
DMIID
EPOLL
FANOTIFY
FHANDLE
INOTIFY_USER
IPV6
NET
PROC_FS
SECCOMP
SIGNALFD
SYSFS
TIMERFD

Also, the following kernel config options should *NOT* be set:

IDE
SYSFS_DEPRECATED
SYSFS_DEPRECATED_V2
GRKERNSEC_PROC

Lastly, if you have /usr in a different partition from /, you *need*
an initramfs (this is now true also for OpenRC). Please check the
instructions set in:

https://wiki.gentoo.org/wiki/Systemd

To finish, let me remark that systemd never had problems in your
system. The problem was that you were not running systemd.

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México




Thank you for correction.  You are correct I would need to switch to new
systemd.
I think for now I'll go back to udev as I'm afraid something might not
work
after switching :-/



Why don't you give it a try? You are almost there.

When booting, edit the grub entry and add
init=/usr/lib/systemd/systemd. If it works, great; otherwise, you
reboot and get back to where you were.

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



I've tried to switch my backup system to systemd by adding line
init=/usr/lib/systemd/systemd to grub donfig and as I suspected the system
did not boot. I got a kernel paanic.
can not open root device hda3 or unknown block (0,0): error -6


It probably could be fixed, but it will take time and info about your
system (partition arrangement, if you use or not an initramfs, how do
you created it, etc.)

Perhaps you would prefer to get back to OpenRC+udev. Just be aware
that, if you had installed systemd, it was because something requires
it. If you don't use systemd, you will have degraded functionality,
since more and more things require systemd or parts of it
(specifically logind). This not only applies to GNOME 3, but also to
Xfce (which uses a lot of GNOME/Gtk+/glib infrastructure). KDE is also
analyzing how to better use systemd provided technologies.

You can try to set USE=-systemd consolekit and do a emerge -uDNv
world. That will bring back much (but not all) of the functionality;
just be aware that ConsoleKit is unmaintained and it will eventually
bitrot.

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


I have to create new boot strap CD (as the one I have have old kernel) and get 
to they system first to change grub.conf.
Will get back to you.

--
Joseph



Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread gottlieb
On Wed, Feb 05 2014, Joseph wrote:

 Thank you for correction.  You are correct I would need to switch to
 new systemd.
 I think for now I'll go back to udev as I'm afraid something might not
 work after switching :-/

Two comments.

1.  Canek is *very* helpful on systemd issues.

2.  If you have /usr on the same filesystem as /, then switching to
systemd is really not hard

A.  Set some kernel options (see the gentoo wiki).

B.  Set some use flags.
i.  At least -consolekit and systemd
ii. This might be automatic if you use a systemd subprofile
For example I use default/linux/amd64/13.0/desktop/gnome/systemd

C.  Do a world update.

Once I merged / and /usr and did the above, systemd more or less worked
right away.  I did tweak it some later, but was able to read/send mail
and use gnucash for my checking account on day 1.  Note that I picked a
conversion day when I knew canek would be available.

If /usr is split from /, I believe Canek can guide you through.
However, I have no experience with that (initramfs) so can't give a
testimonial.

In any event the wiki https://wiki.gentoo.org/wiki/Systemd is helpful.
For one thing it would have pointed out the need to tell the kernel
to use systemd as init (the wiki has both grub and grub invocations).

Good luck!
allan



Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Neil Bothwick
On Wed, 5 Feb 2014 14:31:58 -0700, Joseph wrote:

 I have to create new boot strap CD (as the one I have have old kernel)
 and get to they system first to change grub.conf.

You don't need to change grub.conf to reboot with different options, just
press e and edit the options in place.


-- 
Neil Bothwick

An expert is nothing more than an ordinary person away from home.


signature.asc
Description: PGP signature


Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Joseph

On 02/06/14 00:06, Neil Bothwick wrote:

On Wed, 5 Feb 2014 14:31:58 -0700, Joseph wrote:


I have to create new boot strap CD (as the one I have have old kernel)
and get to they system first to change grub.conf.


You don't need to change grub.conf to reboot with different options, just
press e and edit the options in place.


--
Neil Bothwick

An expert is nothing more than an ordinary person away from home.


When I try to boot I'm getting an error:

VFS: Can not open device hda3 or unknown block (0,0): error -6
Please append correct root= boot option: here the available options:
Kerel panic - not syncing: VFS: Unable to mount root fs on unknown-block(O,0) 


--
Joseph



Re: [gentoo-user] can not mount USB stick as user

2014-02-05 Thread Joseph

On 02/05/14 17:32, Joseph wrote:

On 02/06/14 00:06, Neil Bothwick wrote:

On Wed, 5 Feb 2014 14:31:58 -0700, Joseph wrote:


I have to create new boot strap CD (as the one I have have old kernel)
and get to they system first to change grub.conf.


You don't need to change grub.conf to reboot with different options, just
press e and edit the options in place.


--
Neil Bothwick

An expert is nothing more than an ordinary person away from home.


When I try to boot I'm getting an error:

VFS: Can not open device hda3 or unknown block (0,0): error -6
Please append correct root= boot option: here the available options:
Kerel panic - not syncing: VFS: Unable to mount root fs on unknown-block(O,0)


Im my kernel-3.10.17 under File System I have enabled:
- Second extended fs support
- Ext3 journalling file system support
- Ext3 extended attributes 

So I don't understand the error message. 
What else should I check in the kernel?


--
Joseph