[gentoo-user] plain copy of root disk won't work

2016-11-18 Thread Raffaele BELARDI
I want to move the main disk contents (hda, PATA) to another, larger 
disk (sda, SATA).

hda contains 4 ext3 partitions (root, home, data, swap).
I created 4 ext3 partitions on sda and copied the data over from the 
corresponding hda partitions using 'cp -ax'.
Then I chroot into sda1, 'grub-install /dev/sda', grub-mkconfig and edit 
fstab to use sda instead of hda.
Reboot, from the non-UEFI bios change the disk boot order and try to 
boot from sda.
grub from the sda starts, loads the kernel from sda1, the kernel finds 
the root file system and mounts it RO but then the process stops at the 
end of the kernel boot. No kernel panic, just hangs there with the last 
kernel message before openrc. Openrc is not started.

What might I be missing?

thanks,

raffaele

Re: [gentoo-user] plain copy of root disk won't work

2016-11-18 Thread Canek Peláez Valdés
On Fri, Nov 18, 2016 at 9:30 AM, Raffaele BELARDI 
wrote:
>
> I want to move the main disk contents (hda, PATA) to another, larger
> disk (sda, SATA).
>
> hda contains 4 ext3 partitions (root, home, data, swap).
> I created 4 ext3 partitions on sda and copied the data over from the
> corresponding hda partitions using 'cp -ax'.
> Then I chroot into sda1, 'grub-install /dev/sda', grub-mkconfig and edit
> fstab to use sda instead of hda.
> Reboot, from the non-UEFI bios change the disk boot order and try to
> boot from sda.
> grub from the sda starts, loads the kernel from sda1, the kernel finds
> the root file system and mounts it RO but then the process stops at the
> end of the kernel boot. No kernel panic, just hangs there with the last
> kernel message before openrc. Openrc is not started.
>
> What might I be missing?

Perhaps some permissions and special files. I would use rsync for such a
task:

rsync -Pvas /source/directory/ /target/directory/

I've used that commend in the past for exactly the same motives as you. It
works; also, it's faster I think.

Regards.
--
Dr. Canek Peláez Valdés
Profesor de Carrera Asociado C
Departamento de Matemáticas
Facultad de Ciencias
Universidad Nacional Autónoma de México


Re: [gentoo-user] plain copy of root disk won't work

2016-11-18 Thread Константин
On Fri, Nov 18, 2016 at 04:30:28PM +0100, Raffaele BELARDI wrote:
> I want to move the main disk contents (hda, PATA) to another, larger
> disk (sda, SATA).
>
> hda contains 4 ext3 partitions (root, home, data, swap).
> I created 4 ext3 partitions on sda and copied the data over from the
> corresponding hda partitions using 'cp -ax'.

Didn't you do this from working system on hda? In this case there
really could be troubles with special files etc. Imho live-cd better
for this purpose.

At any case imho it's better to split this task

0. Boot from live-cd.
1. Copy partitions from hda to sda (cp or rsync)
2. Edit fstab on sda.
3. Configure grub on HDA to see hda and sda systems,
4. Try to boot sda.
5. If all is good, configure grub on sda, and change BIOS boot order.

As Canek wrote rsync is great for this task, but beware - last '/' in
'/source/directory/' means!

#kstn



[gentoo-user] Managing network interface in a namespace

2016-11-18 Thread Róbert Čerňanský
Hi all,

I would like to bring up and configure a network interface which
exists in a (network) namespace.  I would like to use standard OpenRC
'net.' init script to do so.

Since the interface (veth1) exists only in a namespace (myns) I need
that the init script would be executed within that namespace:

  ip netns exec myns /etc/init.d/net.veth1 start|stop|...

While I can do that manually as above the automatic run (during boot)
is however executed in the global namespace.

My current, not very good approach is that I've created a wrapper around
runscript and created a copy of /etc/init.d/net.lo
to /etc/init.d/net.veth1 where I've changed the first line to that
wrapper.  It does work when invoking the script manually but it is not
executed by OpenRC at all during boot or when I type 'rc' even if
net.veth1 is included in default runlevel.  Also, to have a copy of init
script is not very nice.  Therefore I'm seeking other solutions.  Is
there any way to tell OpenRC that it should configure an interface
in a specific namespace?

The wrapper script for curious:

  #!/bin/sh
  namespace=${1}
  shift
  /bin/ip netns exec ${namespace} /sbin/runscript ${@}

First line of /etc/init.d/net.veth1 then looks like this:

  #!/usr/local/bin/runscript-netns myns

Robert


-- 
Róbert Čerňanský
E-mail: ope...@tightmail.com
Jabber: h...@jabber.sk



Re: [gentoo-user] plain copy of root disk won't work

2016-11-18 Thread Fernando Rodriguez
On Fri, Nov 18, 2016 at 04:30:28PM +0100, Raffaele BELARDI wrote:
> I want to move the main disk contents (hda, PATA) to another, larger 
> disk (sda, SATA).
> 
> hda contains 4 ext3 partitions (root, home, data, swap).
> I created 4 ext3 partitions on sda and copied the data over from the 
> corresponding hda partitions using 'cp -ax'.
> Then I chroot into sda1, 'grub-install /dev/sda', grub-mkconfig and edit 
> fstab to use sda instead of hda.
> Reboot, from the non-UEFI bios change the disk boot order and try to 
> boot from sda.

Do you have a reference to your root partition on /etc/default/grub that
you forgot to update before running grub-mkconfig?


> grub from the sda starts, loads the kernel from sda1, the kernel finds 
> the root file system and mounts it RO but then the process stops at the 
> end of the kernel boot. No kernel panic, just hangs there with the last 
> kernel message before openrc. Openrc is not started.
> 
> What might I be missing?
> 
> thanks,
> 
> raffaele

-- 
Fernando Rodriguez



[gentoo-user] '/' mounted write protected on first boot of vbox gentoo as guest

2016-11-18 Thread Harry Putnam
I installed gentoo in a vbox vm as guest.

It boots successfully but is mounted write protected.

I didn't see anything in dmesg that I recognized as pointing to the
problem.

Thought it might be a timing issue during boot processes and so tried
to remount rw with `mount -o remount,rw /dev/sda3 /' with the message
that it cannot since it is write protected.

Suspected some doltishness on my part in /etc/fstab, but if so I could
not see it.  Cannot run sshd since it requires writing the keys etc so
sshd will not start.

I can log in as root and my user but cannot make any changes.



cat /etc/fstab 

  # 

  # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
  /dev/sda1  /bootext2  noauto,noatime  1 2
  /dev/sda3  /ext4  noatime 0 1
  /dev/sda2  none swap  sw  0 0
  /dev/cdrom /media   auto  noauto,ro   0 0
---   ---   ---=---   ---   ---

How can I go about finding the source of the problem?




Re: [gentoo-user] gnupg 2.1: mutt asks for the passphrase twice

2016-11-18 Thread Frank Steinmetzger
On Fri, Nov 18, 2016 at 08:26:48AM +1100, Sam Jorna wrote:

> > > apparently, gnupg 2.1 does not recognise my passphrase anymore if I enter 
> > > it
> > > in mutt’s terminal: I compose a signed mail in mutt and send it off. Thus 
> > > I
> > > am asked for the passphrase first on the terminal (as it has always been),
> > > and then a second time in a graphical pinentry window.
> >
> > I just recently resolved this myself. You need to add
> > 
> > --pinentry-mode loopback
> > 
> > to the relevant commands in your muttrc:
> > [...]
> Just re-read this and realised it sounds like I meant the only ones you
> needed it on were those three. I believe the option needs to be added to
> those three plus "pgp_sign_command" and "pgp_clearsign_command".

Thanks a mucho. The mutt docs say that pgp_clearsign_command is deprecated,
so I won’t change that. In case I ever use it unintentionally. :)

I used the opportunity to upgrade mutt from 1.5 to 1.7, which merged the
sidebar patch upstream with better formatting than before. *yay*

-- 
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me with any social network.

Anything unrelated to elephants is irrelephant.


signature.asc
Description: Digital signature


[gentoo-user] Re: '/' mounted write protected on first boot of vbox gentoo as guest

2016-11-18 Thread Harry Putnam
Harry Putnam  writes:

> I installed gentoo in a vbox vm as guest.
>
> It boots successfully but is mounted write protected.
>
> I didn't see anything in dmesg that I recognized as pointing to the
> problem.
>
> Thought it might be a timing issue during boot processes and so tried
> to remount rw with `mount -o remount,rw /dev/sda3 /' with the message
> that it cannot since it is write protected.
>
> Suspected some doltishness on my part in /etc/fstab, but if so I could
> not see it.  Cannot run sshd since it requires writing the keys etc so
> sshd will not start.

Please disredgard this query... a little more persistence in googling
and I hit a post from 2009 that explained it.

It was a kernel config shortcoming on my part: CONFIG_LBDAF was left
unset.

I think I may have even run across something about that when perusing
the handbook install section but when I got there during
`make menuconfig'  All I can say is the way that section reads about

   --*-- enable block layer --*--
  [*] Support for Large (2tb+) block devices and files

kind of makes you think its something you don't need. But then
thinking again... with todays massive drives..




Re: [gentoo-user] Firefox 49.0 & Youtube....Video: Yes - Audio: No...

2016-11-18 Thread Miroslav Rovis
Hi Meino!

I regret not having told you more... See below...

And there is a question/query/my-asking-for-advice further below.

On 161016-08:48+0200, meino.cra...@gmx.de wrote:
> Miroslav Rovis  [16-10-16 07:00]:
> > On 161015-20:27+0200, meino.cra...@gmx.de wrote:
> > > Hi,
> > > 
> > > this evening I updated GENTOO and a new firefox was installed.
> > > This one seem completly to disable flash video finally...
> > > since I got no video/audio at all.
> > > 
> > > I disabled all flash-related addons of my firefox and
> > > restarted  it.
> > > 
> > > Now I got a video ... but without any audio.
> > > (I am running jackd by the way).
> > > I check with qjackctl whether there were any
> > > ports which I missed to connect...nothing.
> > 
> > If jackd is to do with alsa, then it could be the following.
> > 
> > Mozilla went pulse all the way:
> >  Require PulseAudio on Linux
> > https://bugzilla.mozilla.org/show_bug.cgi?id=1247056
> > See also:
> > Firefox nightly requires Pulse Audio
> > http://forums.debian.net/viewtopic.php?f=20&t=130028
> > 
> > > Hmmm...
> > > 
> > > Is there any fix for that?
> > Not familiar with jackd. But as far as alsa (which I stick to, like
> > other discontented users), I don't have sound since months ago.  The
> > only way to get it would be to compile alsa myself, I'm afraid. 
> > 
> > Regards!
> > -- 
> > Miroslav Rovis
> > Zagreb, Croatia
> > http://www.CroatiaFidelis.hr
> 
> Hi Miroslav,
> 
> THANKS A LOT ! :)
You may not thank me, if you read my view, and even remotely agree:
http://www.mail-archive.com/alsa-user@lists.sourceforge.net/msg31926.html
( and that is what I regret not having told you... I regret it because
you now may remain with that pulse spyware.. 

However, pls. note that in my first message to you I just said what the
reason was. I did not recommend pulse to you... )

> ...got it working...somehow...
> 
> I installed pulseaudio and used pactl to set the default sink
> and source to the one soundcard (onboard), which is connected
> to my loudspeakers.
> 
> Drawback: Setting the volume seems only to be tweakable via
> the volume slider of the HTML5 player in Firefox...and my alsa
> volume "app" of my taskbar doesn't work anymore.
> 
> Hopefully the rest of my sound stuff still works
> 

And now the question/query/my-asking-for-advice.

In that thred on alsa-user archive that I linked to, I got this link:

[linuxaudio.org] html5 in ff through jack
http://lists.linuxaudio.org/pipermail/linux-audio-user/2016-June/thread.html#105188

I'm gasping for free time to do various things, fixing audio in ff is
not of higest priority... Can not dedicate hours to this...

Anyone has a link for easy fixing of audio in Firefox the sans-pulse
way (and other poetterware excluded as well, of course)? With clear easy
steps, maybe?

Thanks in advance!

-- 
Miroslav Rovis
Zagreb, Croatia
http://www.CroatiaFidelis.hr


signature.asc
Description: Digital signature


[gentoo-user] split-elog setting

2016-11-18 Thread Harry Putnam
On gentoo `Portage log wiki' pages one is told:

 "In order to create per-category elog files, enable the split-elog
 Portage feature."

(If you want to create `category-based' subdir.)

It never gets around to explaining how split-elog is enabled.

There is no example in /usr/share/portage/config/make.conf.example

Can anyone post an example of how and where this is done?




Re: [gentoo-user] split-elog setting

2016-11-18 Thread Ian Bloss
FEATURES="split-elog" in make.conf

On Fri, Nov 18, 2016, 22:49 Harry Putnam  wrote:

> On gentoo `Portage log wiki' pages one is told:
>
>  "In order to create per-category elog files, enable the split-elog
>  Portage feature."
>
> (If you want to create `category-based' subdir.)
>
> It never gets around to explaining how split-elog is enabled.
>
> There is no example in /usr/share/portage/config/make.conf.example
>
> Can anyone post an example of how and where this is done?
>
>
>