Re: [CentOS] Anaconda : MBR vs. GPT

2020-11-28 Thread Nicolas Kovacs
Le 28/11/2020 à 18:58, Simon Matter a écrit :
> I haven't a lot of experience here but I always thought the general rule
> for boot disks is: classic BIOS -> MBR and UEFI -> GPT.

After some more research, I think I found the definitive answer to the problem.
It's a little bit more complicated.

UEFI -> GPT

BIOS -> MBR

BIOS with disk > 2^32 sectores (2 TiB) -> GPT

And searching for this, I stumbled over docs.centos.org, whose existence I
ignored. Must be relatively new:

https://docs.centos.org/en-US/centos/install-guide/StorageSpoke-x86/

See section "MBR and GPT considerations".

Cheers,

Niki

-- 
Microlinux - Solutions informatiques durables
7, place de l'église - 30730 Montpezat
Site : https://www.microlinux.fr
Blog : https://blog.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
Mob. : 06 51 80 12 12
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Anaconda : MBR vs. GPT

2020-11-28 Thread Simon Matter
> Hi,
>
> I've always been a bit puzzled by the fact that Anaconda provides no
> option to
> manually create a partition table and specify if it's MBR or GPT.
>
> From what I can tell - at least under CentOS 7.x - Anaconda will default
> to
> MBR, even if I specify a BIOS Boot partition. Maybe it switches
> automatically
> to GPT if the disk size requires it ( > 2 TB IIRC) though I don't have any
> corresponding hardware here to test it.

I haven't a lot of experience here but I always thought the general rule
for boot disks is: classic BIOS -> MBR and UEFI -> GPT.

Regards,
Simon

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Anaconda : MBR vs. GPT

2020-11-28 Thread Nicolas Kovacs
Hi,

I've always been a bit puzzled by the fact that Anaconda provides no option to
manually create a partition table and specify if it's MBR or GPT.

From what I can tell - at least under CentOS 7.x - Anaconda will default to
MBR, even if I specify a BIOS Boot partition. Maybe it switches automatically
to GPT if the disk size requires it ( > 2 TB IIRC) though I don't have any
corresponding hardware here to test it.

Is this documented somewhere? Or is there a nifty little trick to tell Anaconda
to prefer GPT partition tables?

Cheers,

Niki
-- 
Microlinux - Solutions informatiques durables
7, place de l'église - 30730 Montpezat
Site : https://www.microlinux.fr
Blog : https://blog.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
Mob. : 06 51 80 12 12
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Emulate Ghost4Linux with standard Linux commands?

2020-11-28 Thread Valeri Galtsev


> On Nov 28, 2020, at 7:12 AM, Nicolas Kovacs  wrote:
> 
> Le 28/11/2020 à 08:13, Nicolas Kovacs a écrit :
>> Now here's the question. From within my live system, how could I compress
>> my system into a compact image and then send it to a distant FTP server?
> 
> I'll answer this myself, since I just experimented and found a strikingly
> simple solution using dd and SSH (better than FTP).
> 
> Backup the server over the network from a live rescue session:
> 
> # dd if=/dev/sda status=progress | gzip --fast - | \
>  ssh microli...@backup.microlinux.fr \
>  dd of=centos-7.9-server-image.gz
> 
> Restore this image from a live rescue session:
> 
> # ssh microli...@backup.microlinux.fr \
>  dd if=centos-7.9-server-image.gz | \
>  gunzip --fast - | dd of=/dev/sda status=progress
> 

As you mention “compress” in your question, you could also add -C flag to ssh 
command (to turn on compression)

Valeri


> Why didn't I think of this before ?
> 
> :o)
> 
> Niki
> 
> -- 
> Microlinux - Solutions informatiques durables
> 7, place de l'église - 30730 Montpezat
> Site : https://www.microlinux.fr
> Blog : https://blog.microlinux.fr
> Mail : i...@microlinux.fr
> Tél. : 04 66 63 10 32
> Mob. : 06 51 80 12 12
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Emulate Ghost4Linux with standard Linux commands?

2020-11-28 Thread Nicolas Kovacs
Le 28/11/2020 à 08:13, Nicolas Kovacs a écrit :
> Now here's the question. From within my live system, how could I compress
> my system into a compact image and then send it to a distant FTP server?

I'll answer this myself, since I just experimented and found a strikingly
simple solution using dd and SSH (better than FTP).

Backup the server over the network from a live rescue session:

# dd if=/dev/sda status=progress | gzip --fast - | \
  ssh microli...@backup.microlinux.fr \
  dd of=centos-7.9-server-image.gz

Restore this image from a live rescue session:

# ssh microli...@backup.microlinux.fr \
  dd if=centos-7.9-server-image.gz | \
  gunzip --fast - | dd of=/dev/sda status=progress

Why didn't I think of this before ?

:o)

Niki

-- 
Microlinux - Solutions informatiques durables
7, place de l'église - 30730 Montpezat
Site : https://www.microlinux.fr
Blog : https://blog.microlinux.fr
Mail : i...@microlinux.fr
Tél. : 04 66 63 10 32
Mob. : 06 51 80 12 12
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos