Re: [gentoo-user] Loading Issue

2020-03-07 Thread Michael
On Saturday, 7 March 2020 00:57:37 GMT Colleen Beamer wrote:
> On 2020-02-15 8:48 a.m., Alec Ten Harmsel wrote:
> > On Fri, Feb 14, 2020, at 15:03, Colleen Beamer wrote:
> >> Hi,
> >> 
> >> There seems to be a problem with loading MySQL.  During the boot process
> >> when it comes to the loading of MySQL it hangs.  Is there a way to
> >> bypass the loading of MySQL so the computer will complete booting and I
> >> can make sure I've gotten everything that I want off of it before I wipe
> >> it?> 
> > Probably the easiest way would be to download the gentoo boot CD or the
> > LiveCD of another Linux distro, boot the computer w/ the LiveCD, mount
> > the hard drive, and see if there's anything you need that way.
> > 
> > Once you're booted from a LiveCD, you could also chroot into your Gentoo
> > install and prevent MySQL starting on boot with OpenRC/systemd if you
> > wanted to reboot from Gentoo and look at your files from Gentoo.
> > 
> > Alec
> 
> I've downloaded the Gentoo Live CD and managed to mount the hard drive
> on my computer.  However, I can't figure out how to get any files that I
> want off the computer.  I put a blank CD in the drive, but it won't let
> me write to it.  I've also tried using a USB hard drive that I have, but
> it won't let me mount it.  I've never actually used a Live CD for
> recovery purposes so, I'm at a bit of a loss here.  The second
> suggestion would be okay, but I don't know how to do that.
> 
> Colleen

You don't mention what commands you tried and what was the output.

In any case, to mount a USB drive which is probably more versatile than the 
limited space of a CD:

1. Create a directory to mount your USB device under:

mkdir /mnt/myusb

2. Check dmesg to find out what the USB drive is recognised as, by the kernel.

dmesg | tail

3. Mount it (assuming it was recognised as '/dev/sdb1'):

mount /dev/sdb1 /mnt/myusb

4. Mount desired directories and copy stuff over, excluding any subdirectories 
you're not interested in, e.g.:

mount /dev/sda3 /mnt/gentoo/home/colleen

rsync -av --progress --safe-links --exclude={".cache/*",".gvfs/*",".local/
share/gvfs-metadata/*","/lost+found"} /mnt/gentoo/home/colleen/ /mnt/myusb


Check you've copied over successfully what you wanted, then unmount the USB 
and shutdown the PC (unless you want to wipe its hard drive first).

5. sync && umount /dev/sdb1

An alternative approach would be to set a root user passwd, start sshd, then 
copy the files over the LAN to another PC using rsync, or scp.

If you get any problems please be more specific on what action you took and 
what was the error printed out.

HTH.

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Loading Issue

2020-03-06 Thread Colleen Beamer



On 2020-02-15 8:48 a.m., Alec Ten Harmsel wrote:

On Fri, Feb 14, 2020, at 15:03, Colleen Beamer wrote:

Hi,

There seems to be a problem with loading MySQL.  During the boot process
when it comes to the loading of MySQL it hangs.  Is there a way to
bypass the loading of MySQL so the computer will complete booting and I
can make sure I've gotten everything that I want off of it before I wipe it?


Probably the easiest way would be to download the gentoo boot CD or the LiveCD 
of another Linux distro, boot the computer w/ the LiveCD, mount the hard drive, 
and see if there's anything you need that way.

Once you're booted from a LiveCD, you could also chroot into your Gentoo 
install and prevent MySQL starting on boot with OpenRC/systemd if you wanted to 
reboot from Gentoo and look at your files from Gentoo.

Alec


I've downloaded the Gentoo Live CD and managed to mount the hard drive 
on my computer.  However, I can't figure out how to get any files that I 
want off the computer.  I put a blank CD in the drive, but it won't let 
me write to it.  I've also tried using a USB hard drive that I have, but 
it won't let me mount it.  I've never actually used a Live CD for 
recovery purposes so, I'm at a bit of a loss here.  The second 
suggestion would be okay, but I don't know how to do that.


Colleen




Re: [gentoo-user] Loading Issue

2020-02-23 Thread Peter Humphrey
On Saturday, 22 February 2020 18:14:04 GMT Jack wrote:
> On 2020.02.22 04:14, Roger J. H. Welsh wrote:
> [snip ]
> 
> > On another note, I don't see the "keymaps" rc-service when I use
> > rc-status. Is there any chance it is loaded before the other
> > services? Or alternatively, is there any way to set it as the first
> > service that starts? Does anyone listening know?
> 
> It seems that by default, rc-status does not show boot or sysinit
> runlevels.  You can try "rc-status --all".   For me, keymaps is in the
> boot runlevel.  There might also be services not explicitly in any
> runlevel, but started because they are a required for some other
> service.

Or you can just 'ls -l /etc/runlevels/*/keymaps'.

-- 
Regards,
Peter.






Re: [gentoo-user] Loading Issue

2020-02-22 Thread Jack

On 2020.02.22 04:14, Roger J. H. Welsh wrote:
[snip ]
On another note, I don't see the "keymaps" rc-service when I use  
rc-status. Is there any chance it is loaded before the other  
services? Or alternatively, is there any way to set it as the first  
service that starts? Does anyone listening know?
It seems that by default, rc-status does not show boot or sysinit  
runlevels.  You can try "rc-status --all".   For me, keymaps is in the  
boot runlevel.  There might also be services not explicitly in any  
runlevel, but started because they are a required for some other  
service.


Jack


Re: [gentoo-user] Loading Issue

2020-02-22 Thread Roger J. H. Welsh
MIME-Version: 1.0
Content-Type: text/plain; format=flowed

Dr Rainer,

Dr Rainer Woitok  writes:
> So instead of pressing the "1" key umpteen times (plus one time 
> too oft-
> en, ARGH :-) it's probably really easier to boot from a live CD.
I certainly agree with you on this, I was really just posing a 
quick fix
for OP. I actually have a sysrescue disk in my boot partition, 
which I
can choose from the GRUB menu when things break at home.

> And the privileged shell offered here  is also restricted  in 
> that it is
> only usable for the  minority of 330 million people  using a US 
> keyboard
> layout,  while the vast  majority of  7.4 billion people  NOT 
> using a US
> keyboard layout will most probably not even manage  to enter 
> their pass-
> word :-(
Personally, if I was debugging my openrc, I would probably try out 
rc_interactive
for options 1, 2 and 3; if I was thinking of doing anything like 
4, I would rather drop
to a LiveCD.

When things go bad, go with what you know works. ;)

On another note, I don't see the "keymaps" rc-service when I use
rc-status. Is there any chance it is loaded before the other 
services?
Or alternatively, is there any way to set it as the first service 
that
starts? Does anyone listening know?

I'm just curious now.

--
Regards,

Roger Welsh



Re: [gentoo-user] Loading Issue

2020-02-19 Thread Dr Rainer Woitok
Roger,

On Wednesday, 2020-02-19 09:51:20 +1300, you wrote:

> ...
> rc_interactive means I can press "I" or "i" during boot and 
> INTERRUPT
> the boot process; *otherwise* it will boot as per normal.
> 
> Is that not the behaviour you are seeking?

Speaking not for the original poster but only for me:

In a mathematical sense it surely is,  because the interactive interface
you are confronted with allows you not to start any services you're dis-
liking.  In a practical sense it surely requires more than patience, be-
cause for each and every service available  the user will be prompted to
enter a number:

   1. Start this sevice.
   2. Skip this service.
   3. Start all remaining services.
   4. Start a privileged shell.

So instead of pressing the "1" key umpteen times (plus one time too oft-
en, ARGH :-) it's probably really easier to boot from a live CD.

And the privileged shell offered here  is also restricted  in that it is
only usable for the  minority of 330 million people  using a US keyboard
layout,  while the vast  majority of  7.4 billion people  NOT using a US
keyboard layout will most probably not even manage  to enter their pass-
word :-(

Sincerely,
  Rainer



Re: [gentoo-user] Loading Issue

2020-02-18 Thread Jack

On 2020.02.18 15:51, Roger J. H. Welsh wrote:

Hi Jack,

I just looked at the comments in my /etc/rc.conf.
`less /etc/rc.conf`

Jack  writes:
I'm not the OP, but I recently had a similar situation - total  
freeze early during the boot process.  What I wanted was a way to  
get that rc_interactive="YES" behavior - but by doing something at  
boot time.


rc_interactive means I can press "I" or "i" during boot and INTERRUPT  
the boot process; *otherwise* it will boot as per normal.


Is that not the behaviour you are seeking? OR is that not the  
behaviour you get?
I'm not sure if you got my point.  Most of the time, I don't need that  
option.  When I do need it, I discover that fact because the system  
won't boot into a usable state.  I can boot into a live CD, edit  
rc.conf, then reboot again.  My desire is to be able to get that  
interactive boot by doing something at boot time, so I don't have to  
reboot twice.  However, on reading that explanation again, and more  
slowly, and more carefully, and actually absorbing it, I finally see  
that setting rc_interactive="YES" won't really have any effect on  
normal boot, but only if I press i or I at boot time - so I will have  
to try that.  Thanks for poking me in the right direction.


Also to note:

rc_parallel="yes" may cause the boot process to lock up.
(I wonder if that has been causing some of these boot freezes.)
I hadn't considered that, and it might well be relevant, but in all my  
own cases, I was able to find a single service which was causing the  
problem.


rc_interactive="yes" is DISABLED (automatically), if rc_parallel is  
set to "yes".


--
Best of luck
Roger

Thanks,
Jack


Re: [gentoo-user] Loading Issue

2020-02-18 Thread Roger J. H. Welsh
MIME-Version: 1.0
Content-Type: text/plain; format=flowed

Hi Jack,

I just looked at the comments in my /etc/rc.conf.
`less /etc/rc.conf`

Jack  writes:

> I'm not the OP, but I recently had a similar situation - total 
> freeze
> early during the boot process.  What I wanted was a way to get 
> that
> rc_interactive="YES" behavior - but by doing something at boot 
> time.

rc_interactive means I can press "I" or "i" during boot and 
INTERRUPT
the boot process; *otherwise* it will boot as per normal.

Is that not the behaviour you are seeking?
OR is that not the behaviour you get?

Also to note:

rc_parallel="yes" may cause the boot process to lock up.
(I wonder if that has been causing some of these boot freezes.)

rc_interactive="yes" is DISABLED (automatically), if rc_parallel 
is set
to "yes".

--
Best of luck
Roger



Re: [gentoo-user] Loading Issue

2020-02-18 Thread Jack

On 2020.02.15 14:16, Peter Humphrey wrote:

On Friday, 14 February 2020 20:03:00 GMT Colleen Beamer wrote:

I have an older computer with Gentoo on it.  I haven't updated it in  
quite a while because it necessitates a full reinstall and up until  
recently, I haven't had the time to devote to this.  It is mostly  
backuped up on an external hard drive so, it what I'm asking can't  
be done, that's okay.

>
There seems to be a problem with loading MySQL.  During the boot  
process when it comes to the loading of MySQL it hangs.  Is there a  
way to bypass the loading of MySQL so the computer will complete  
booting and I can make sure I've gotten everything that I want off  
of it before I wipe it?


Have you tried setting rc_interactive="YES" in /etc/rc.conf? Then you  
can interrupt the boot process, and learn of several scripts that you  
didn't know were run.


I'm assuming an openrc system, of course.


I'm not the OP, but I recently had a similar situation - total freeze  
early during the boot process.  What I wanted was a way to get that  
rc_interactive="YES" behavior - but by doing something at boot time.   
Otherwise, I needed to boot a live CD/DVD/thumb, edit rc.conf, and  
reboot.  I was able to boot adding init=/bin/bash to the kernel command  
line, but then even though I could do "openrc sysinit" then "openrc  
boot" and then start "default" services individually, it took longer,  
since I had to try to figure out in what order services would have been  
started.


I wonder if booting with init=/bin/bash, editing rc.conf, and then  
doing "exec /sbin/init" would then put  the system in a state (with  
proc 1 being init) as if it had booted normally, but with an  
interactive startup?


Jack


Re: [gentoo-user] Loading Issue

2020-02-15 Thread Peter Humphrey
On Friday, 14 February 2020 20:03:00 GMT Colleen Beamer wrote:

> I have an older computer with Gentoo on it.  I haven't updated it in
> quite a while because it necessitates a full reinstall and up until
> recently, I haven't had the time to devote to this.  It is mostly
> backuped up on an external hard drive so, it what I'm asking can't be
> done, that's okay.
> 
> There seems to be a problem with loading MySQL.  During the boot process
> when it comes to the loading of MySQL it hangs.  Is there a way to
> bypass the loading of MySQL so the computer will complete booting and I
> can make sure I've gotten everything that I want off of it before I wipe it?

Have you tried setting rc_interactive="YES" in /etc/rc.conf? Then you can 
interrupt the boot process, and learn of several scripts that you didn't know 
were run.

I'm assuming an openrc system, of course.

-- 
Regards,
Peter.






Re: [gentoo-user] Loading Issue

2020-02-15 Thread Alec Ten Harmsel
On Fri, Feb 14, 2020, at 15:03, Colleen Beamer wrote:
> Hi,
> 
> There seems to be a problem with loading MySQL.  During the boot process 
> when it comes to the loading of MySQL it hangs.  Is there a way to 
> bypass the loading of MySQL so the computer will complete booting and I 
> can make sure I've gotten everything that I want off of it before I wipe it?
> 

Probably the easiest way would be to download the gentoo boot CD or the LiveCD 
of another Linux distro, boot the computer w/ the LiveCD, mount the hard drive, 
and see if there's anything you need that way.

Once you're booted from a LiveCD, you could also chroot into your Gentoo 
install and prevent MySQL starting on boot with OpenRC/systemd if you wanted to 
reboot from Gentoo and look at your files from Gentoo.

Alec



Re: [gentoo-user] Loading Issue

2020-02-14 Thread Roger Welsh
Hi Colleen,

Which bootloader and init system do you use?

If it is grub, you can try adding a ' 1' OR ' real_init=single' to the 
bootline. 
If LILO, you can try adding ' append="1" ' to the bootline.
If you use OpenRC, you can try adding ' softlevel=boot'

This should tell your system to boot in single-user mode and hopefully not 
start the mysql service.

Otherwise, any compatible Linux LiveCD is your friend.

Good luck

--
Roger Welsh

[gentoo-user] Loading Issue

2020-02-14 Thread Colleen Beamer

Hi,

I have an older computer with Gentoo on it.  I haven't updated it in 
quite a while because it necessitates a full reinstall and up until 
recently, I haven't had the time to devote to this.  It is mostly 
backuped up on an external hard drive so, it what I'm asking can't be 
done, that's okay.


There seems to be a problem with loading MySQL.  During the boot process 
when it comes to the loading of MySQL it hangs.  Is there a way to 
bypass the loading of MySQL so the computer will complete booting and I 
can make sure I've gotten everything that I want off of it before I wipe it?


Thanks in advance,

Colleen Beamer