Re: [PLUG] Untangling partitions in external drive [UNTANGLED]

2024-01-10 Thread Michael Ewan
I have an LVM2 RAID5 array running as my tertiary in house backup, it has been running on old reclamed 1TB drives for a couple of months now. I will report back if I see any problems. On Wed, Jan 10, 2024 at 3:40 PM Rich Shepard wrote: > On Wed, 10 Jan 2024, Michael Ewan wrote: > > > Curious.

Re: [PLUG] mailx questions

2024-01-10 Thread Rich Shepard
On Wed, 10 Jan 2024, Michael Ewan wrote: Just make sure you do error checking. Nothing says professional like getting an email that has Hello Michael, Sure enough. Pulling out the SED book. Will create examples and send them to a local mailbox. Thanks, Rich

Re: [PLUG] Untangling partitions in external drive [UNTANGLED]

2024-01-10 Thread Rich Shepard
On Wed, 10 Jan 2024, Michael Ewan wrote: Curious. I have never had an LVM2 failure that was not caused by an underlying hardware issue. Did you try creating a mirrored LV? Michael, No. Rich

Re: [PLUG] mailx questions

2024-01-10 Thread Michael Ewan
Just make sure you do error checking. Nothing says professional like getting an email that has Hello On Wed, Jan 10, 2024 at 12:38 PM Rich Shepard wrote: > On Wed, 10 Jan 2024, Michael Ewan wrote: > > > Adding a salutation could be done with sed in your pipeline and a > > placeholder token in

Re: [PLUG] Untangling partitions in external drive [UNTANGLED]

2024-01-10 Thread Michael Ewan
Curious. I have never had an LVM2 failure that was not caused by an underlying hardware issue. Did you try creating a mirrored LV? On Wed, Jan 10, 2024 at 12:37 PM Rich Shepard wrote: > On Wed, 10 Jan 2024, Michael Ewan wrote: > > > This is why I use LVM2 for everything related to mounted driv

Re: [PLUG] Untangling partitions in external drive

2024-01-10 Thread Rich Shepard
On Wed, 10 Jan 2024, Tomas Kuchta wrote: LABLE --> LABEL Tomas, Yep, caught that one on the first cast. Thanks, Rich

Re: [PLUG] Untangling partitions in external drive

2024-01-10 Thread Tomas Kuchta
LABLE --> LABEL On Wed, Jan 10, 2024, 11:08 Rich Shepard wrote: > Yesterday afternoon there was a momentary power glitch, so brief I almost > didn't notice it. But, I missed seeing that it shut down the external > MediaSonic Probox. > > Before I logged in the console this morning it showed a bu

Re: [PLUG] mailx questions

2024-01-10 Thread Rich Shepard
On Wed, 10 Jan 2024, Michael Ewan wrote: Adding a salutation could be done with sed in your pipeline and a placeholder token in the mail message. Michael, I wondered about doing something like this. I'll look into doing so. Thanks, Rich

Re: [PLUG] Untangling partitions in external drive [UNTANGLED]

2024-01-10 Thread Rich Shepard
On Wed, 10 Jan 2024, Michael Ewan wrote: This is why I use LVM2 for everything related to mounted drives and file systems. Physical volumes (PV) have a UUID (customizable), but unnecessary in normal use since PV's are contained in Volume Groups (VG) and file systems are created on Logical Volume

Re: [PLUG] Replacing filesystem on partitioned/formatted hdd

2024-01-10 Thread Rich Shepard
On Wed, 10 Jan 2024, Robert Citek wrote: I second what Michael wrote. My only change would be to not use the '*' or replace it with a "." In that way any hidden files ( i.e. file beginning with a dot ) will be included in the rsync. That is, it would look like this: ... rsync -av /media/bkup

Re: [PLUG] Replacing filesystem on partitioned/formatted hdd

2024-01-10 Thread Rich Shepard
On Wed, 10 Jan 2024, Michael Ewan wrote: In my experience cp(1) is fragile, which is why I use rsync(1) for anything more than one or two files. The following should work, rsync -av /media/bkup1/* /mnt/usb1tb Michael, Thanks. I forgot that rsync has advantages over cp. Good advice and I'm t

Re: [PLUG] Replacing filesystem on partitioned/formatted hdd

2024-01-10 Thread Robert Citek
I second what Michael wrote. My only change would be to not use the '*' or replace it with a "." In that way any hidden files ( i.e. file beginning with a dot ) will be included in the rsync. That is, it would look like this: rsync -av /media/bkup1/ /mnt/usb1tb or this: rsync -av /media/bkup

Re: [PLUG] Untangling partitions in external drive [UNTANGLED]

2024-01-10 Thread Michael Ewan
This is why I use LVM2 for everything related to mounted drives and file systems. Physical volumes (PV) have a UUID (customizable), but unnecessary in normal use since PV's are contained in Volume Groups (VG) and file systems are created on Logical Volumes (LV), both of which have arbitrary names,

Re: [PLUG] mailx questions

2024-01-10 Thread Michael Ewan
Adding a salutation could be done with sed in your pipeline and a placeholder token in the mail message. On Wed, Jan 10, 2024 at 11:40 AM Rich Shepard wrote: > On Wed, 10 Jan 2024, Michael Ewan wrote: > > > Use -a twice. > > Thanks, Michael. > > Any thoughts on adding a salutation? (Not critical

Re: [PLUG] Replacing filesystem on partitioned/formatted hdd

2024-01-10 Thread Michael Ewan
In my experience cp(1) is fragile, which is why I use rsync(1) for anything more than one or two files. The following should work, rsync -av /media/bkup1/* /mnt/usb1tb This will create all the subdirectories from /media/bkup1 and copy all the files onto the mounted USB drive. Rsync is re-entrant,

Re: [PLUG] mailx questions

2024-01-10 Thread Rich Shepard
On Wed, 10 Jan 2024, Michael Ewan wrote: Use -a twice. Thanks, Michael. Any thoughts on adding a salutation? (Not critical, but good if possible.) Regards, Rich

Re: [PLUG] mailx questions

2024-01-10 Thread Michael Ewan
Use -a twice. On Wed, Jan 10, 2024 at 11:05 AM Rich Shepard wrote: > I've used mailx to send newsletters to clients and prospects using this > script: > #!/bin/sh > > cd /home/rshepard/marketing/notifications/ > > for ADR in $(cat mailing-addr.list) > do >cat msg | mailx -s "subject_name" $A

[PLUG] Replacing filesystem on partitioned/formatted hdd

2024-01-10 Thread Rich Shepard
In my MediaSonic Probox the backup1 drive is still formatted with xfs. Since XFS throws an error now and then requiring me to umount the drive, run xfs_repair, and remount it I want to replace the filesystem with ext4. Currently, the drive holds 644GB. When I've tried to `cp -R /media/bkup1' to a

[PLUG] mailx questions

2024-01-10 Thread Rich Shepard
I've used mailx to send newsletters to clients and prospects using this script: #!/bin/sh cd /home/rshepard/marketing/notifications/ for ADR in $(cat mailing-addr.list) do cat msg | mailx -s "subject_name" $ADR done Now I want to add their first name as a salutation and attachments. I know th

Re: [PLUG] Untangling partitions in external drive [UNTANGLED]

2024-01-10 Thread Rich Shepard
Have I missed anything? Yep. I learned that Slackware does not have e2label, but does have tune2fs. By trial-and-error I learned that the label name is double quoted so I used tune2fs -L "label" device-name and added lables to the two data storage drives in the Probox. Also learned that wh

[PLUG] Untangling partitions in external drive

2024-01-10 Thread Rich Shepard
Yesterday afternoon there was a momentary power glitch, so brief I almost didn't notice it. But, I missed seeing that it shut down the external MediaSonic Probox. Before I logged in the console this morning it showed a bunch of errors for /dev/sde1 (mounted as /media/bkup1) which is still formatt

Re: [PLUG] Entering accented characters from keyboard

2024-01-10 Thread David Fleck
How does this work in real life? My PopOS (based on Ubuntu, based on Gnome) has this exact mechanism, and the Compose key is set to the left Alt key. The Settings page even gives this handy bit of help: "compose key followed by C and 0 will enter ©". But when I bring up a terminal and hit those