Re: [OT] Re: [gentoo-user] NAS and replacing with larger drives

2022-12-09 Thread Peter Humphrey
On Friday, 9 December 2022 14:38:14 GMT Frank Steinmetzger wrote:
> Am Fri, Dec 09, 2022 at 02:27:07PM + schrieb Peter Humphrey:
> > 1.  Mind you, UK TV adverts are nowhere near as gross as the screeching
> > horrors I was subjected to in Minneapolis 30 years ago.
> 
> I can only imagine.

Actually, I doubt you can unless you've experienced something like it - in 
which case I sympathise.   :)

-- 
Regards,
Peter.






Re: [gentoo-user] NAS and replacing with larger drives

2022-12-09 Thread Paul Colquhoun
On Friday, December 9, 2022 12:58:38 A.M. AEDT Dale wrote:


> I was thinking DAS was not a good option.  It seems like a feature
> removed and cheaper version of NAS. 

Maybe get the DAS, then connect it to the Rasberry Pi 4, to make a DIY NAS.

That way you get a propper encolsure for your drives, without needing to cobble 
something together.


-- 
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/
  Asking for technical help in newsgroups?  Read this first:
 http://catb.org/~esr/faqs/smart-questions.html#intro



Re: [gentoo-user] Duel boot - How to verify boot loader updates?

2022-12-09 Thread Mark Knecht
On Fri, Dec 9, 2022 at 10:57 AM Michael  wrote:
>
> On Friday, 9 December 2022 17:17:24 GMT Mark Knecht wrote:

> > It's not totally a thought experiment. One machine I have which
> > is dual boot recently complained that the original disk grub was
> > installed on had changed when in fact there hadn't been any
> > hardware changes and I had to carefully figure out how to
> > answer a couple of questions. After the fact I started to wonder
> > about this edge case.
> >
> > I think it comes down to reading what's on the disk with a
> > hex editor possibly but I know nothing about what to expect
> > there.
> >
> > Thanks,
> > Mark
>
> Before I venture a potentially wrong answer, could you please clarify if
we
> are talking about a UEFI MoBo, or a legacy BIOS MoBo.

The specific machine where this happened is UEFI.

Thanks


Re: [gentoo-user] Duel boot - How to verify boot loader updates?

2022-12-09 Thread Michael
On Friday, 9 December 2022 17:17:24 GMT Mark Knecht wrote:
> On Fri, Dec 9, 2022 at 4:07 AM Arve Barsnes  wrote:
> > On Fri, 9 Dec 2022 at 11:55, Michael  wrote:
> > > To check the GRUB version of the second OS without booting into it, you
> 
> can
> 
> > > grep for grub in its /var/log/emerge.log
> > 
> > Or see what version is named in the /usr/share/doc/grub-2.?? folder name.
> > 
> > On the other hand, if the question is *really* about knowing if
> > grub-install has been run on one of the machines, I don't know if
> > there is a way. Probably look at change dates on the files in
> > /boot/grub/?
> > 
> > Regards,
> > Arve
> 
> Thanks to both of you for your responses. I appreciate them, although I
> don't think they get as far down in the weeds as I was wondering about.
> 
> My understanding of the boot loader - and maybe I'm using the wrong
> terminology so if I am someone please correct me - is that at the start
> of boot BIOS tells the processor to read some part of the disk and it is
> the code read there that gets the whole process kicked off and
> out of BIOS's control.
> 
> I'm wondering about that first bit of code being written by installation
> #2's update into the initial section of installation #1's disk.
> 
> Rethink the picture a bit and make installation #1 Windows and
> installation #2 Linux. Assume that after updating each install, and
> further assume both installs made some very minor change to their
> own first bits of code on the disk, and assume everything still
> boots correctly, BUT assume that one of the updates actually
> wrote into the other install's initial boot code and replaced it with
> their own because it was confused about which disk it was
> supposed to put this on. How would I be able to determine that
> this happened?
> 
> It's not totally a thought experiment. One machine I have which
> is dual boot recently complained that the original disk grub was
> installed on had changed when in fact there hadn't been any
> hardware changes and I had to carefully figure out how to
> answer a couple of questions. After the fact I started to wonder
> about this edge case.
> 
> I think it comes down to reading what's on the disk with a
> hex editor possibly but I know nothing about what to expect
> there.
> 
> Thanks,
> Mark

Before I venture a potentially wrong answer, could you please clarify if we 
are talking about a UEFI MoBo, or a legacy BIOS MoBo.

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


Re: [gentoo-user] Duel boot - How to verify boot loader updates?

2022-12-09 Thread Mark Knecht
On Fri, Dec 9, 2022 at 4:07 AM Arve Barsnes  wrote:
>
> On Fri, 9 Dec 2022 at 11:55, Michael  wrote:
> > To check the GRUB version of the second OS without booting into it, you
can
> > grep for grub in its /var/log/emerge.log
>
> Or see what version is named in the /usr/share/doc/grub-2.?? folder name.
>
> On the other hand, if the question is *really* about knowing if
> grub-install has been run on one of the machines, I don't know if
> there is a way. Probably look at change dates on the files in
> /boot/grub/?
>
> Regards,
> Arve

Thanks to both of you for your responses. I appreciate them, although I
don't think they get as far down in the weeds as I was wondering about.

My understanding of the boot loader - and maybe I'm using the wrong
terminology so if I am someone please correct me - is that at the start
of boot BIOS tells the processor to read some part of the disk and it is
the code read there that gets the whole process kicked off and
out of BIOS's control.

I'm wondering about that first bit of code being written by installation
#2's update into the initial section of installation #1's disk.

Rethink the picture a bit and make installation #1 Windows and
installation #2 Linux. Assume that after updating each install, and
further assume both installs made some very minor change to their
own first bits of code on the disk, and assume everything still
boots correctly, BUT assume that one of the updates actually
wrote into the other install's initial boot code and replaced it with
their own because it was confused about which disk it was
supposed to put this on. How would I be able to determine that
this happened?

It's not totally a thought experiment. One machine I have which
is dual boot recently complained that the original disk grub was
installed on had changed when in fact there hadn't been any
hardware changes and I had to carefully figure out how to
answer a couple of questions. After the fact I started to wonder
about this edge case.

I think it comes down to reading what's on the disk with a
hex editor possibly but I know nothing about what to expect
there.

Thanks,
Mark


Re: [gentoo-user] NAS and replacing with larger drives

2022-12-09 Thread Dale
Frank Steinmetzger wrote:
> Am Fri, Dec 09, 2022 at 01:13:50PM + schrieb Michael:
>
>
> Good points. I am a big fan of having stuff locally as well, because I don’t
> want to be dependent on a company’s servers and a working Internet connection.
> But this mostly applies to my mobile device, because I don’t have a data plan
> for mobile Internet.
>
>

That is my reason.  I already have some videos that are no longer
available.  Even references to the video ever existing is hard to find. 
If I lose them, I may never get them again.  So, I try to keep copies
and hang onto them.  Plus, while I've been fortunate and have a good
stable internet connection, both with DSL and fibre, I don't know what
next year or even next month will bring.  You add in all the censorship
that is going on, it gets even worse.  I have many videos that I
downloaded from youtube that have been removed because of basically, a
political position.  The people running Youtube doesn't like the content
so it was removed.  Keep in mind, those videos were instructional and
nothing about illegal activity or anything.  They just don't like the
content.  It's also why other sites came along so people could post the
exact same type of content. 

I don't always save everything but when I find a video that might be
useful, whether it is about repairing my old washing machine, repairs to
a firearm, planting trees from seeds or just a funny cat video, I save
it if it has some future value.  The bad thing, some channels that have
been removed for a small amount of videos Youtube didn't like also had
other videos removed as well.  I've noticed entire channels disappear. 
I can't trust the people running video websites to allow content even
for short term.  Post something they don't like, true or not, they can
and often do remove content and often remove entire channels. 

I don't trust my data to be on just one set of hard drives either, it's
why I make backup copies.  If one of my main drives lets the smoke out,
I've got a backup to restore from.  I wouldn't mind having two sets of
backups and one day, I just may.  I may end up with two NAS boxes, each
a independent backup copy.  May on alternate weeks or something.  If
possible, I wouldn't mind having backups where I can even go back in
time a bit.  Just in case I need a file that I deleted and then was
deleted from the backups as well. 

If this Raspberry thing works and is fairly cheap, I may end up with two
NAS boxes as backups and a NAS box as the actual storage itself. 

Since I can't trust people who run websites, I have to trust myself. 
Keep local copies, back those up just in case. 

Dale

:-)  :-) 

P. S.  Seamonkey still doesn't automatically fetch emails.  It's really
annoying.  :/



Re: [OT] Re: [gentoo-user] NAS and replacing with larger drives

2022-12-09 Thread Frank Steinmetzger
Am Fri, Dec 09, 2022 at 02:27:07PM + schrieb Peter Humphrey:
> On Friday, 9 December 2022 13:38:32 GMT Frank Steinmetzger wrote:
>
> > ...I never really bothered with live TV recordings in recent years. These
> > days, if I find something interesting, I download the show form the TV
> > channel’s website (called Mediathek in Germany, a word play on Bibliothek,
> > meaning library). Interestingly though, the picture quality is noticably
> > worse than what I receive via DVB-T.
>
> I do nearly the opposite: I record every TV programme I want to watch, then
> watch it at my leisure.

This summer I bought my first TV ever since I live on my own – after about
20 years of not having one. I haven’t missed TV and still don’t (just wanted
a bigger screen for movies played from the PC and to relax on the couch in
the evening).

> That way I can skip through all the adverts, which I loathe [1].

Who doesn’t? With my little antenna, I get all the public stations with good
quality and no ads, but I don’t care for the encrypted private, ad-financed
channels for which I need to pay a yearly fee these days (on top of the
mandatory public TV “tax”).

> Freesat in the UK allows recording of radio series as well, which Sky
> cannot do, so it's easy to capture late-night series and listen to them at
> my convenience. I have something like 600 radio programmes on my satellite
> box.

Ooof, I listen to podcasts and can barely keep up, time-wise. To have a
conneciton to the original topic: I still have lots of movies and series on
the NAS which I haven’t even started to watch.

> 1.  Mind you, UK TV adverts are nowhere near as gross as the screeching
> horrors I was subjected to in Minneapolis 30 years ago.

I can only imagine.

-- 
Grüße | Greetings | Salut | Qapla’
Please do not share anything from, with or about me on any social network.

Bees aren’t at all hard working, they just can’t fly any slower.


signature.asc
Description: PGP signature


[OT] Re: [gentoo-user] NAS and replacing with larger drives

2022-12-09 Thread Peter Humphrey
On Friday, 9 December 2022 13:38:32 GMT Frank Steinmetzger wrote:

> ...I never really bothered with live TV recordings in recent years. These
> days, if I find something interesting, I download the show form the TV
> channel’s website (called Mediathek in Germany, a word play on Bibliothek,
> meaning library). Interestingly though, the picture quality is noticably
> worse than what I receive via DVB-T.

I do nearly the opposite: I record every TV programme I want to watch, then 
watch it at my leisure. That way I can skip through all the adverts, which I 
loathe [1]. Freesat in the UK allows recording of radio series as well, which 
Sky cannot do, so it's easy to capture late-night series and listen to them at 
my convenience. I have something like 600 radio programmes on my satellite 
box.

1.  Mind you, UK TV adverts are nowhere near as gross as the screeching 
horrors I was subjected to in Minneapolis 30 years ago.

-- 
Regards,
Peter.






Re: [gentoo-user] NAS and replacing with larger drives

2022-12-09 Thread Rich Freeman
On Fri, Dec 9, 2022 at 8:13 AM Michael  wrote:
>
> Actually this had me thinking what is the need to back up the ... Internet?

I'm sure the NSA knows the answer to this.  Based on discussions I've
had with people who are into such things they basically have their own
Wayback machine, except it obviously doesn't respect robots.txt or
takedown requests.

I kind of wish the NSA sold IT services to the general public.  I just
assume they probably have root on all my devices and their own backups
of everything on them.  It would be nice if I had a disaster if I
could just pay them to buy back a copy of my data, instead of having
to have my own completely redundant backups.

I'm personally using duplicity for encrypted cloud backups of the
stuff that is most critical (documents, recent photos, etc), AWS
Glacier for stuff I want long-term backups of (older photos mostly),
and then bacula to store local copies of everything I have any
interest in because that is easier than trying to restore it all off
of Amazon if I lose an array or whatever.  AWS Glacier is actually
pretty cheap for backup, but be prepared to pay a fair bit for
restoration.  I'd only need to go to them in a serious disaster like a
house fire, so having to pay $100 or whatever to get them to mail me a
hard drive with my data isn't really that big of a deal.  My backups
are generally one-way affairs.

-- 
Rich



Re: [gentoo-user] NAS and replacing with larger drives

2022-12-09 Thread Dale
Dale wrote:
> Howdy,
>
> <<>>
>
> Path two, I've researched building a NAS using a Raspberry Pi 4 8GB as
> another option.  They come as parts, cases too, but the newer and faster
> models of Raspberry Pi 4 with more ram seem to work pretty well.  The
> old slower models with small amounts of ram don't fair as well.  While I
> want a descent speed, I'm not looking for or expecting it to be
> blazingly fast.  I just wonder, if from a upgrade and expansion point of
> view, if building a NAS would be better.  I've also noticed, it seems
> all Raspberry things come with a display port.  That means I could hook
> up a monitor and mouse/keyboard when needed.  That could be a bonus. 
> Heck, I may can even put some sort of Gentoo on that thing.  :-D
>
> <<>>
>
> Thoughts?  Info to share?  Ideas on a best path forward?  Buy already
> built or build?
>
> Thanks.
>
> Dale
>
> :-)  :-) 
>


For those interested, I'm pretty sure this video is about this thing. 
It was new and not released to the general public at the time so it does
mention some bugs and missing drivers.  I suspect those are fixed or
included by now.  Also, the case I saw appears to be newer and not
something that requires all the assembly shown in the video. 

https://www.youtube.com/watch?v=ahrdx3TYxZc

That same channel has another video that was a pretty insane build cost
wise.  It had huge SSD drives.  Bonus video for anyone bored to tears. lol

https://www.youtube.com/watch?v=G_px298IF2k

This is the case I'm looking at.  Pretty sure the card, CPU board and
drives goes into this.  Plus I think they added a display too. 

https://shop.allnetchina.cn/collections/sata-hat/products/quad-sata-kit-for-raspberry-pi-4-case-only

As I mentioned earlier, I plan to research that seller more.  I want to
make sure they stand behind their sales.  Most likely do but I don't
know that.  ;-)

It seems that people are working on making a really nice Raspberry Pi
device for use as a NAS.  It may not be perfect but even what is in the
1st video would likely work fine for me.  Storage wise.  I like the case
I linked to better tho. 

Dale

:-)  :-) 



Re: [gentoo-user] NAS and replacing with larger drives

2022-12-09 Thread Frank Steinmetzger
Am Fri, Dec 09, 2022 at 01:13:50PM + schrieb Michael:

> > > I get the impression Dale isn't actually PLANNING his disk storage. It's
> > > just a case of "help I'm downloading all this stuff where do I put it!!!"
> >
> > Haha, thanks for the laugh.
>
> Actually this had me thinking what is the need to back up the ... Internet?
> […]
>
> I appreciate some of these video files may be rare finds, or there may be a
> risk some of these may be taken off the interwebs sooner or later.  This
> should leave a rather small subset of all downloads, which may merit a local
> backup, just in case.  I'd thought the availability of higher fiber download
> speeds negates the need for local backups, of readily downloadable media.

Good points. I am a big fan of having stuff locally as well, because I don’t
want to be dependent on a company’s servers and a working Internet connection.
But this mostly applies to my mobile device, because I don’t have a data plan
for mobile Internet.

> > Well, ts uses mpeg2 encoding, just like old video DVDs, which is very
> > inefficient when compared with modern h264/h265. Modern digital TV broadcast
> > uses h264 by now.
>
> Depending on the PVR make/model I've seen 1080p resolution recordings with
> .m2ts and .ts file extensions, while the codecs inside them are the same.

I wasn’t aware that ts could contain h264. But then again—I never really
bothered with live TV recordings in recent years. These days, if I find
something interesting, I download the show form the TV channel’s website
(called Mediathek in Germany, a word play on Bibliothek, meaning library).
Interestingly though, the picture quality is noticably worse than what I
receive via DVB-T.

> > ¹ I do have several external USB disks, plus the big NAS. All of which don’t
> > run very often. And I don’t want to turn them on just to look for a certain
> > file. That’s why I have another little script. ;-) It uses the `tree`
> > command to save the complete content listing of a directory into a text
> > file and names the file automatically by the name of the directory it
> > crawls. So if I want to find a file, I just need to grep through my text
> > files.
>
> Backup scripts utilising rsync, tar, etc. can output a log file which contains
> (some) details of all the backed up files.  Nothing as sophisticated as
> Frank's script, but it allows for a quick search against the name of the file
> or directory, before extraction.

Naturally, I just discovered two bugs in the script while I was re-reading
my mail. One of them broke the creation of the symlink which points to the
most recent version of a script output. The other prevented normal operation
if only gzip was available amongst the used compressors.

-- 
Grüße | Greetings | Salut | Qapla’
Please do not share anything from, with or about me on any social network.

We promise nothing, but that we keep.
#!/usr/bin/env bash

# history
# 2018-02-10 initial version
# 2020-06-10 added -a option
# -??-?? gzip result
# 2021-03-22 put current date into output filename
# 2021-04-06 code refactoring with more functions and input sanitisation
# 2021-12-22 prefer zstd over gzip
# 2022-01-23 don't create symlink if there is no previous file
# 2022-01-30 added xz to compressors
# 2022-12-08 some cleanup, added -C and -K options
# 2022-12-09 bug fixes

die() {
echo "${@}" > /dev/stderr
exit 1
}

usage() {
cat <<-EOF
Usage: $(basename "$0") [-o NAME] [DIR]
A wrapper to tree, it writes the content of DIR into a text file.
The file is named after DIR and the current date, and symlink to the
most recent version is set. The file is automatically compressed to
zstd, xz or gzip, whichever is available in that order.

Options:
  -aaccess attributes: owner, group, permissions
  -Cdo not compress result file
  -Kdo not keep backup of existing file in case of overwriting
  -oThe destination where to write the trees.
Default: .
If it is a directory: write in there
If it is a filename: use that as base. If not,
use the name of the directory as name base.
EOF
}

test_writable() {
touch "$1" 2>/dev/null || die "Cannot create file in $(dirname "$1")."
}

# run tree and redirect output to destination file
call_to_tree() {
WHICH="$1"
OUTPATH="$2-$1"
shift 2

declare TREE_ARGS
TREE_ARGS+=("$@")
TREE_ARGS+=("-o")
TREE_ARGS+=("$DATED_PATH")

local DATED_PATH="$OUTPATH-$TODAY"
local EXT
local PACK
local CREATE_SYMLINK=no

if [ "$COMPRESS" = "no" ]; then
0
elif command -v zstd > /dev/null; then
PACK="zstd --rm -q -13"
EXT=".zst"
elif command -v xz > /dev/null; then
PACK="xz"
EXT=".xz"
else
PACK="gzip"
EXT=".gz"
fi

ls "$OUTPATH-"* > /dev/null 2>&1 && CREATE_SYMLINK=yes

# pack yet unpacked file

Re: [gentoo-user] NAS and replacing with larger drives

2022-12-09 Thread Michael
On Thursday, 8 December 2022 20:44:56 GMT Frank Steinmetzger wrote:
> Am Thu, Dec 08, 2022 at 06:36:14PM + schrieb Wols Lists:
> > >  > I've pretty much reached a limit on my backups.  I'm up to a 16TB
> > >  > hard
> > >  > drive for one and even that won't last long.  Larger drives are much
> > >  > more costly.  A must have NAS is quickly approaching.  I've been
> > >  > searching around and find some things confusing.  I'm hoping someone
> > >  > can
> > >  > clear up that confusion.  I'm also debating what path to travel down.
> > >  > I'd also like to keep costs down as well.  That said, I don't mind
> > >  > paying a little more for one that would offer a much better option.
> > >  > 
> > >  > Path one, buy a NAS, possibly used, that has no drives.  If possible,
> > >  > I
> > >  > may even replace the OS that comes on it or upgrade if I can.  I'm
> > >  > not
> > >  > looking for fancy, or even RAID.  Just looking for a two bay NAS that
> > >  > will work.  First, what is a DAS?  Is that totally different than a
> > >  > NAS?  From what I've found, a DAS is not what I'm looking for since I
> > >  > want a ethernet connection and the ability to control things over the
> > >  > network.  It seems DAS lacks that feature but not real sure.  I'm not
> > >  > sure I can upgrade the software/OS on a DAS either.
> > >  > […]
> > > 
> > > DAS is direct-attached-storage. I don't think you want that.
> > 
> > Depends. If it fits in the safe, and can be connected using one of these
> > eSATA thingy connectors, it might be a very good choice.
> > 
> > […]
> > 
> > I get the impression Dale isn't actually PLANNING his disk storage. It's
> > just a case of "help I'm downloading all this stuff where do I put it!!!"
> 
> Haha, thanks for the laugh.

Actually this had me thinking what is the need to back up the ... Internet?  
If all this never-ending and recently accelerated download activity by Dale 
will continue and most of these video/audio files are available on some 
streaming server on the Internet, WHY do they need to be backed up locally?

I appreciate some of these video files may be rare finds, or there may be a 
risk some of these may be taken off the interwebs sooner or later.  This 
should leave a rather small subset of all downloads, which may merit a local 
backup, just in case.  I'd thought the availability of higher fiber download 
speeds negates the need for local backups, of readily downloadable media.

Of course, with personal and private data, plus configuration files, the 
backup need is clearer and the strategy simpler.

Perhaps the whole backup strategy for files downloaded from the Internet, Vs 
personal files, needs some critical (re)thinking.


> > Get yourself a basic 4-way DAS/JBOD setup, PLAN where you're putting all
> > this stuff, and plug in and remove drives as required. You don't need all
> > these huge drives if you think about what you're going to do with it all.
> 
> That’s actually a good idea. Either use a hot swap frame for an internal 5¼″
> PC bay, a desktop dock for bare drives or a multi-bay enclosure. The market
> is big, you have lots of choices. USB (with or without integrated hub),
> eSATA, one or two bays, etc: https://skinflint.co.uk/?cat=hddocks
> 
> Advantages:
> - no separate system to maintain just for storage: save $$$, time and power
> - very flexible: no chassis limitation on number of disks
> - no bulky external enclosures, each using a different power brick and cable
> - minimum volume to put into a safe (just get or make a bulk storage case)
> 
> Disadvantages:
> - not as “fancy” as a NAS
> - possibly not all disks can be used at the same time
> - physical handling of naked disks takes more care
> - LVM is not practical, so use each disk separately
> - you gotta remember which files are where¹
> - SATA connectors aren’t made for very many insertion cycles (I think the
>   spec says 50?), which doesn’t mean they endure much more, but still …
> 
> > (And while it takes time and hammers the system, I regularly record off
> > the
> > TV getting a 2GB .ts file, convert it to mp4 - same resolution - and
> > reduce
> > the size by an order of magnitude - maybe more.
> 
> Well, ts uses mpeg2 encoding, just like old video DVDs, which is very
> inefficient when compared with modern h264/h265. Modern digital TV broadcast
> uses h264 by now.

Depending on the PVR make/model I've seen 1080p resolution recordings with 
.m2ts and .ts file extensions, while the codecs inside them are the same.  
Here's the ffprob

Re: [gentoo-user] Duel boot - How to verify boot loader updates?

2022-12-09 Thread Arve Barsnes
On Fri, 9 Dec 2022 at 11:55, Michael  wrote:
> To check the GRUB version of the second OS without booting into it, you can
> grep for grub in its /var/log/emerge.log

Or see what version is named in the /usr/share/doc/grub-2.?? folder name.

On the other hand, if the question is *really* about knowing if
grub-install has been run on one of the machines, I don't know if
there is a way. Probably look at change dates on the files in
/boot/grub/?

Regards,
Arve



Re: [gentoo-user] Duel boot - How to verify boot loader updates?

2022-12-09 Thread Michael
On Thursday, 8 December 2022 20:55:30 GMT Mark Knecht wrote:
> Hi,
>This is a bit of a conceptual question, simplified but based on a
> machine I do own, from someone who knows very little about boot loader
> implementations. (I.e. - me) Thanks in advance for any pointers you can
> provide.
> 
>Assume a machine with two separate M.2 SSDs. The M.2 devices are
> identical in size and from the same manufacturer. For the sake of
> discussion they are partitioned identically and they both have the same
> distro installed. One is stable, the other is bleeding edge. For simplicity
> there are no other disk drives involved in either installation. Both
> installs have the same boot loader, grub2 I guess, and both have
> configurations that boot themselves by default but offer the other drive as
> a second option.
> 
>Assume the bleeding edge system (or the other - it doesn't matter to me)
> gets a grub2 update, and further assume the update is either automatic or
> done by someone other than yourself. Whoever did the updates 'tests' the
> machine by booting into both versions, and both versions are tested as
> default in BIOS so that no matter what everything appears to be working.
> 
>THE QUESTION: After the fact, if I wanted to look at the two
> installations in detail, how would I determine that the grub update was
> done to the installation doing the update and not done to the other
> (nearly) identical installation?
> 
> Thanks in advance,
> Mark

Once booted into one of the OSs you could run something like 'eix -l grub' or 
'emerge --search grub' to see which version has been installed.  I don't 
recall there being a GRUB filesystem specific pointer as to what version it is 
when just looking at the installed GRUB files.

To check the GRUB version of the second OS without booting into it, you can 
grep for grub in its /var/log/emerge.log

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


Re: [gentoo-user] NAS and replacing with larger drives

2022-12-09 Thread Peter Humphrey
On Friday, 9 December 2022 08:27:18 GMT Wol wrote:
> On 09/12/2022 00:45, Dale wrote:
> > I even remember when 512KBs of ram was a big deal.  I also remember
> > having expansion cards that would add a few MBs of ram.  Jeez I'm
> > getting old.  o_O  We talk about TBs like they are nothing.  My first
> > puter was a old Vic-20.  4Kbs of ram it had.  I played music on that
> > thing and freaked my Dad out.  ROFL
> 
> I remember those things. About 16 MB per platter. I remember my work
> buying a 300MB drive (19 platters in a disk pack, the size of a washing
> machine) for our multi-user mini that served the entire company with
> 256KB of ram ...

Latest in the willy-waving contest: in the 1970s the national grid was 
monitored and analysed with a Ferranti Argus 500 machine with 24KB RAM and a 
2MB disk. It was common for American visitors to believe that was just driving 
the control engineers' displays, and where was the main computer?

24-bit assembler code. Those were the days - some of my very best. No concept 
of a file or a file-system.

-- 
Regards,
Peter.






Re: [gentoo-user] Ruby, Ragel, and Colm

2022-12-09 Thread Matthias Hanft
Matt Connell wrote:
> 
> Do you have any packages (or the global) keyword ~amd64?  Portage,
> fresh off of a sync, emerged ragel at 7.0.4 and col at 0.14.7 which are
> both lower than the versions you mentioned.

No ~amd64 (except dev-db/firebird because there is no stable
version at all).

(NEW) n ~ # eshowkw colm
Keywords for dev-util/colm:
 |   |   u   |
 | a   a p s r   a l |   n   |
 | m   r h   p p   i i s l o m m | e u s | r
 | d a m p p c a x a s 3 p o 6 i | a s l | e
 | 6 r 6 p p 6 r 8 6 c 9 h n 8 p | p e o | p
 | 4 m 4 a c 4 c 6 4 v 0 a g k s | i d t | o
-+---+---+---
 0.13.0.7| + + + + + + + + ~ o ~ ~ o o o | 7 # 0 | gentoo
   0.14.7| + + + + + + + ~ ~ ~ ~ ~ o o ~ | 7 o   | gentoo
   0.14.7-r1 | ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ o ~ | 8 #   | gentoo
[I]0.14.7-r2 | + ~ + ~ ~ + + + ~ ~ ~ ~ ~ o ~ | 8 o   | gentoo
(NEW) n ~ # eshowkw ragel
Keywords for dev-util/ragel:
|   |   u   |
| a   a p s r   a l |   n   |
| m   r h   p p   i i s l o m m | e u s | r
| d a m p p c a x a s 3 p o 6 i | a s l | e
| 6 r 6 p p 6 r 8 6 c 9 h n 8 p | p e o | p
| 4 m 4 a c 4 c 6 4 v 0 a g k s | i d t | o
+---+---+---
6.10| + + + + + + + + ~ ~ ~ ~ o o ~ | 7 # 0 | gentoo
7.0.0.12| + + + + + + + + ~ o ~ ~ o o o | 7 o   | gentoo
   7.0.4| + + + + + + + ~ ~ ~ ~ ~ o o ~ | 7 o   | gentoo
   7.0.4-r1 | ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ o o ~ | 8 #   | gentoo
[I]7.0.4-r2 | ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ o ~ | 8 o   | gentoo

colm-0.14.7-r2 is marked stable; with ragel-7.0.4, I get the
error desscribed. ~ragel-7.0.4-r2 does work; didn't try
~ragel-7.0.4-r1.

But "works for me" now :-)

-Matt



Re: [gentoo-user] NAS and replacing with larger drives

2022-12-09 Thread Dale
Wol wrote:
> On 09/12/2022 01:15, Dale wrote:
>> Given the size of one of the directories I have, it takes two drives, or
>> soon will, and the use of LVM or something similar.  I can't do that as
>> it is now.  I've even wondered if I hooked two eSATA drives up and gave
>> both plenty of time to spin up if LVM would see them both and me be able
>> to use two drives as one that way.  Thing is, I don't know how LVM
>> reacts if the two drives become available at separate times, maybe even
>> many seconds or a minute or so apart.
>
> If you're using LVM to link them together, it will wait until they
> become available. Okay, not quite the same, but I run raid over
> dm-integrity, and it always unnerves me when systemd fires up this job
> and it says "waiting for lvm/home". But the system just sits there
> while dm-integrity checks its drives, makes them available, raid spots
> and loads them, and then the raid is there, lvm spots it, makes
> lvm/home available, and the system is up and running ...

Really?  Oh that just may start something.  I could easily setup two
drives and use LVM on them.  I just didn't know that it would work.  One
added benefit, they are encrypted with cryptsetup which puts everything
on top of LVM.  So, the data isn't available until I type in the
password and then mount it.  It doesn't try to mount automatically or
anything because of that.  Oh, this could be the start of something. 

>
> Cheers,
> Wol
>
>

Dale

:-)  :-) 



["solved"] Re: [gentoo-user] NetworkManager service is in inactive state

2022-12-09 Thread pat

On 2022-11-25 13:08, p...@xvalheru.org wrote:

Hi,

after packages full update NetworkManager is in inactive state
(rc-status). The NM version is 1.40.2. I've search web but without
luck. Can someone give me a hint how to fix it?

Thanks

Pat


Hi,

Sorry for this post. It turns out that it was caused by slowly dying 
wifi router. It was dying for 3 weeks; I was able to see and use the 
network from Ubuntu laptop but not from Gentoo one, thus I've panicked. 
Now the router is finally dead.


Pat


Freehosting PIPNI - http://www.pipni.cz/




Re: [gentoo-user] NAS and replacing with larger drives

2022-12-09 Thread Wol

On 09/12/2022 00:45, Dale wrote:

Peter Humphrey wrote:

On Friday, 9 December 2022 00:03:29 GMT Dale wrote:


I think back sometimes, I started out with a 30GB hard drive wy back
in 2003.  I thought I had problems then.

Then you won't want to know that I paid extra in 1990 for an 85MB drive in my
first PC. No, not GB: MB.



I worked at a puter place in the late 80's.  They had old hard drives
that were only a few MBs and had 14" platters.  Yes, 14" platters.
Funny thing is, you could replace the platters in those.  You open the
drive, replace platter, reassemble drive, turn on fan which had a hefty
filter on the intake.  Once it ran long enough to have clean air inside,
spin up the drive and go back to work.

I even remember when 512KBs of ram was a big deal.  I also remember
having expansion cards that would add a few MBs of ram.  Jeez I'm
getting old.  o_O  We talk about TBs like they are nothing.  My first
puter was a old Vic-20.  4Kbs of ram it had.  I played music on that
thing and freaked my Dad out.  ROFL

I remember those things. About 16 MB per platter. I remember my work 
buying a 300MB drive (19 platters in a disk pack, the size of a washing 
machine) for our multi-user mini that served the entire company with 
256KB of ram ...


Cheers,
Wol



Re: [gentoo-user] NAS and replacing with larger drives

2022-12-09 Thread Wol

On 09/12/2022 00:03, Dale wrote:

I think back sometimes, I started out with a 30GB hard drive wy back
in 2003.  I thought I had problems then.  O_O


The first drive I bought was - iirc - a 2GB 5.1/4" Bigfoot.

For a Pentium system where the mobo took chips with a max capacity of 32MB.

That was about ten years before you ...

:-)

Wol