Re: [PLUG] Looking For Advice - mount --bind or symbolic link?

2022-07-24 Thread King Beowulf
On 7/24/22 09:22, Rich Shepard wrote:
> On Sun, 24 Jul 2022, Mark Phillips wrote:
>
>> My apologies for not being clear. What you describe is exactly what I have
>> and want to accomplish.
>> * 1 TB drive just for OS  - currently a fresh install of Ubuntu 20.04 with
>> nothing in /home/mark
>> * 4TB drive holds the back up of home/mark - i.e. all "my stuff"  (about
>> 2.1 TB). I want to just keep adding to this backup of my old /home/mark
>> directory.
>

Hello Mark and Rich

You are both making this more difficult that is has to be.  You don't
need "bind" or symlink...yadda yadda.  From what I am to understand Mark
as 2 drives:

/dev/sda1  with the new Linux OS
/dev/sdb1  with the old Linux OS and the old /home/mark with all the
important data.

First, clear out all the kruft on sda2 you no longer need: old OS files,
configs etc. Be aware that /dev/sda1/home/mark is NOT empty after you
installed the new OS. This is were all the new user specific stuff is
for the user you created during the install and for the GUI desktop
stuff.  Clear out all the old OS stuff on /dev/sdb1 you no longer need.
Then mount /dev/sdb1 to a temporary location, 'mv /home/mark  /mark'. 
Now bring over the new OS .config and .local (and whatever else Ubuntu
uses) to this /mark.  Now, you do NOT need to specify /home/mark since
/home already exists on sda1 after it is mounted.

You then simply need this in /etc/fstab to change the temporary sda2
mount to the already existing /home

/dev/sda1   /    ext4    defaults 1   1  # the
new Ubuntu OS
/dev/sda2   /home    ext4    defaults 1   2  # a big
empty drive with just 'mark' folder and all your stuff.

Replace "ext4" with the file system you are using, and look up whatever
'defaults' Ubuntu uses. [Aside: I use a more "pure" Linux distro that
has not been mangled by Canonical]

Also, UNbntu may used UUID or PARTUUID device naming.  I'll leave that
as an exercise for the reader.  On boot, you system will read /etc/fstab
and mount accordingly.  You don't put "mount" in fstab nor need the bind
option to mount a directory on a directory (which can have some weird
side effects in some cases).

Remember, in linux and unix "everything is file".   Here is a crazy
example from one of my systems.  Note how I mount on old 500 GB spinning
rust drive partitian as /tmp to ease wear and tear on my MVMe SSDs. (And
yes, I have WAY too many games...).

$ lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda   8:0    1 465.8G  0 disk
├─sda1    8:1    1   256G  0 part /tmp
└─sda2    8:2    1 209.8G  0 part [SWAP]
sdb   8:16   1 931.5G  0 disk
└─sdb1    8:17   1 931.5G  0 part /games2
sdc   8:32   1 931.5G  0 disk
└─sdc1    8:33   1 931.5G  0 part /games
sdd   8:48   1 931.5G  0 disk
└─sdd1    8:49   1 931.5G  0 part /data2
sde   8:64   1 931.5G  0 disk
├─sde1    8:65   1 465.8G  0 part /HD_images
└─sde2    8:66   1 465.8G  0 part /HD_images/ISO_img
nvme1n1 259:0    0 931.5G  0 disk
└─nvme1n1p1 259:2    0 931.5G  0 part /library
nvme0n1 259:1    0 931.5G  0 disk
├─nvme0n1p1 259:3    0   100M  0 part /boot/efi
├─nvme0n1p2 259:4    0   100G  0 part /
└─nvme0n1p3 259:5    0 831.4G  0 part /home

-Ed.





Re: [PLUG] rent large storage space

2022-07-24 Thread Keith Lofstrom


On Fri, Jul 22, 2022 at 11:56 PM Thomas Groman 
wrote:

> Does anybody know of anybody whom I could rent a large (15TB) SSD or
> tape drive from for a few days? I have a large amount of data I need to
> backup while I reconfigure the topology of a raid array, and if I used
> cloud storage it'd take me over a month to upload everything and
> download everything back, Which isn't doable.

On Sun, Jul 24, 2022 at 12:05:24PM -0400, Daniel Ortiz wrote:
> The website may contain what you are looking for, but maybe it helps you.
> https://www.leaseville.com/computers-tablets/computer-components/hard-drive.html?p=1

That's a cool website, worth considering in the future.
Useful for "try before you buy", though the Samsung QVO
on the first page reminds me that first impressions are
poor indicators of long-term reliability.

Another issue is "wipe after use".  Large sophisticated
storage systems swap replacement sectors - the QVO does
this internally and frequently.  The replaced sectors may
no longer be evident, but they may retain most of the
data written on them.  What if that data is a copy of
/etc/passwd?  When you return your leased drives, wiped
to the best of your ability, what might a clever future
user extract from one of them?



However, the larger question about during-upgrade
storage space is "where is the backup"? 

Redundant RAID protects against random hardware failure,
but not "sudo rm -rf /",
mistakenly typed when you had instead planned to type
"sudo rm -rf /..."

Before migrating stored data, I would make sure everything
is backed up locally.  I would test the backups, and use
the migration to test the restore process.

Rule #1: "If you don't have two copies, you will soon have
zero copies".

Given my frequent typing mistaeks, I aim for four copies,
with one copy in a bank vault, miles away.

Keith

-- 
Keith Lofstrom  kei...@keithl.com


Re: [PLUG] Did PLUG Mailman change?

2022-07-24 Thread Paul Heinlein

On Fri, 22 Jul 2022, wes wrote:


it's complicated, but the short version is that I would call it
intentional, yes.


Thank you for the confirmation!

 - Paul



-wes

On Fri, Jul 22, 2022 at 3:09 PM Paul Heinlein  wrote:


I'm seeing new List-Id headers in the PLUG-TALK traffic. They were
 and have become
. Was that change planned?

I only ask because I key on those headers for shuffling PLUG messages
to a certain inbox.

--
Paul Heinlein
heinl...@madboa.com
45°22'48" N, 122°35'36" W






Re: [PLUG] rent large storage space

2022-07-24 Thread Daniel Ortiz
Edit: may not contain

On Sun, Jul 24, 2022 at 12:05 PM Daniel Ortiz 
wrote:

> The website may contain what you are looking for, but maybe it helps you.
>
> https://www.leaseville.com/computers-tablets/computer-components/hard-drive.html?p=1
>
> On Fri, Jul 22, 2022 at 11:56 PM Thomas Groman 
> wrote:
>
>> Hello,
>>
>> Does anybody know of anybody whom I could rent a large (15TB) SSD or
>> tape drive from for a few days? I have a large amount of data I need to
>> backup while I reconfigure the topology of a raid array, and if I used
>> cloud storage it'd take me over a month to upload everything and
>> download everything back, Which isn't doable.
>>
>> --
>>  
>> / The antonym of hyponym is antonym. \
>> | While hyponyms of hyponyms are |
>> | symolies, not all symolies are   |
>> \ hyponyms.  /
>>  
>>  \ ,-.  .-,
>>   \|-.\ __ /.-|
>>\   \  ``  /
>> /_ _ \
>>   <  _`q  p _  >
>>   <.._=/  \=_. >
>>  {`\()/`}`\
>>  {  }  \
>>  |{}\
>>  \ '--'   .- \
>>  |-  /\
>>  | | | | | ;
>>  | | |.;.,..__ |
>>.-"";` `|
>>   /|   /
>>   `-../,..---'`
>>
>


Re: [PLUG] Looking For Advice - mount --bind or symbolic link?

2022-07-24 Thread Rich Shepard

On Sun, 24 Jul 2022, Mark Phillips wrote:


My apologies for not being clear. What you describe is exactly what I have
and want to accomplish.
* 1 TB drive just for OS  - currently a fresh install of Ubuntu 20.04 with
nothing in /home/mark
* 4TB drive holds the back up of home/mark - i.e. all "my stuff"  (about
2.1 TB). I want to just keep adding to this backup of my old /home/mark
directory.


Mark,

You have room on the 4TB drive. I suggest you make a partion on it called,
for example, /media/old4t. (And mount that in /etc/fstab.)

Then 'cp -R ...' 2.1TB contents to /media/old4t. After it compies with no
errors, delete the contents of the orginal 4TB drive, leaving everything in
/media/old4t.

Now you have about 1.9TB free on that drive, set up directories such as
/home, /deveopment, /documents, /video, and whatever you need.

Then move from /media/old4t all the files into your new directory structure.
When that's done and confirmed good, delete /media/old4t and you now have
room for all your non-OS stuff on the 4TB drive with plenty of space to add
new files.

HTH,

Rich



Re: [PLUG] rent large storage space

2022-07-24 Thread Daniel Ortiz
The website may contain what you are looking for, but maybe it helps you.
https://www.leaseville.com/computers-tablets/computer-components/hard-drive.html?p=1

On Fri, Jul 22, 2022 at 11:56 PM Thomas Groman 
wrote:

> Hello,
>
> Does anybody know of anybody whom I could rent a large (15TB) SSD or
> tape drive from for a few days? I have a large amount of data I need to
> backup while I reconfigure the topology of a raid array, and if I used
> cloud storage it'd take me over a month to upload everything and
> download everything back, Which isn't doable.
>
> --
>  
> / The antonym of hyponym is antonym. \
> | While hyponyms of hyponyms are |
> | symolies, not all symolies are   |
> \ hyponyms.  /
>  
>  \ ,-.  .-,
>   \|-.\ __ /.-|
>\   \  ``  /
> /_ _ \
>   <  _`q  p _  >
>   <.._=/  \=_. >
>  {`\()/`}`\
>  {  }  \
>  |{}\
>  \ '--'   .- \
>  |-  /\
>  | | | | | ;
>  | | |.;.,..__ |
>.-"";` `|
>   /|   /
>   `-../,..---'`
>


Re: [PLUG] Looking For Advice - mount --bind or symbolic link?

2022-07-24 Thread Mark Phillips
Rich,

My apologies for not being clear. What you describe is exactly what I have
and want to accomplish.
* 1 TB drive just for OS  - currently a fresh install of Ubuntu 20.04 with
nothing in /home/mark
* 4TB drive holds the back up of home/mark - i.e. all "my stuff"  (about
2.1 TB). I want to just keep adding to this backup of my old /home/mark
directory. I only have the old OS stuff on the 4 TB drive to get the
configuration files as needed.  For example, I moved the etc/hosts file
from the 4TB drive to the 1 TB drive so I have all my remote and local
connections working. As I add more applications (e.g mysql) to my new OS
drive, I want the old config files around to see what mods I made over the
years. There are also scripts I wrote over time to automate some of my
tasks, and I want to have access to them as I slowly "rebuild" my system.

My old system had the 1 TB drive and a 2 TB drive in a lvm (because I had
more than 2 TB of stuff I was working on), so when the upgrade failed, I
arrived at this point in time. Plus, I was running out of space in the 3 TB
lvm, and Amazon had a reasonable sale price on a 4 TB SSD. ;)

The point of my question was to get opinions on which is better and why,
* mounting the home/mark directory on the 4 TB drive using bind to
/home/mark on the 1 TB drive
* or sym-link home/mark on the 4 TB drive to /home/mark on the 1 TB drive.

I hope that clarifies it!

Mark


On Sun, Jul 24, 2022 at 5:42 AM Rich Shepard 
wrote:

> On Sat, 23 Jul 2022, Mark Phillips wrote:
>
> > I tried to upgrade my computer from Ubuntu 18.04 to 20.04, and
> > something messed up. No worries, I had a backup, so I wiped out the old
> > 18.04 and installed 20.04. I have 2 drives in the system: 1 TB and 4TB.
> The
> > 1 TB has 20.04 installed and the 4 TB has the backup from the old 18.04
> > system. I mounted the 4TB drive at /4TB.
> >
> > I think I have 2 options:
> > * In /etc/fstab: mount  /4TB/backup/home/mark /home/mark none bind
> > * create a symbolic link from /home/mark to /4TB/backup/home/mark
> (assuming
> > /home/mark is empty)
> >
> > Which would you recommend?
>
> Mark,
>
> I'm not as knowledgeable as most folks here, yet I'll offer a comment or
> two.
>
> My interpretation of what you wrote is that your 1TB drive holds the OS as
> well as /home and all other user partitions. And the 4TB drive holds the
> old
> OS version as well as /home and all other user partitions. Is this correct?
>
> Why not keep the OS on the 1TB drive and put /home, all your python, java,
> video editing, writing, and data on the 4 TB drive? Then /etc/fstab on the
> system (1 TB drive) is the only one changed when you upgrade OS versions
> and
> all your applications, data, and other non-OS stuff lives on the 4TB and
> stays the same from OS version-to-version?
>
> Rich
>
>


Re: [PLUG] Looking For Advice - mount --bind or symbolic link?

2022-07-24 Thread Rich Shepard

On Sat, 23 Jul 2022, Mark Phillips wrote:


I tried to upgrade my computer from Ubuntu 18.04 to 20.04, and
something messed up. No worries, I had a backup, so I wiped out the old
18.04 and installed 20.04. I have 2 drives in the system: 1 TB and 4TB. The
1 TB has 20.04 installed and the 4 TB has the backup from the old 18.04
system. I mounted the 4TB drive at /4TB.

I think I have 2 options:
* In /etc/fstab: mount  /4TB/backup/home/mark /home/mark none bind
* create a symbolic link from /home/mark to /4TB/backup/home/mark (assuming
/home/mark is empty)

Which would you recommend?


Mark,

I'm not as knowledgeable as most folks here, yet I'll offer a comment or
two.

My interpretation of what you wrote is that your 1TB drive holds the OS as
well as /home and all other user partitions. And the 4TB drive holds the old
OS version as well as /home and all other user partitions. Is this correct?

Why not keep the OS on the 1TB drive and put /home, all your python, java,
video editing, writing, and data on the 4 TB drive? Then /etc/fstab on the
system (1 TB drive) is the only one changed when you upgrade OS versions and
all your applications, data, and other non-OS stuff lives on the 4TB and
stays the same from OS version-to-version?

Rich