Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #190456

Re: GRUB and boot partition

From Gary Dale <garydale@torfree.net>
Newsgroups linux.debian.user
Subject Re: GRUB and boot partition
Date 2017-12-29 23:30 +0100
Message-ID <v2bk5-60L-5@gated-at.bofh.it> (permalink)
References <v1REK-qL-11@gated-at.bofh.it> <v1ZLX-6wd-3@gated-at.bofh.it> <v21kJ-7tR-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2017-12-29 06:46 AM, Pascal Hambourg wrote:
> Le 29/12/2017 à 11:02, deloptes a écrit :
>> microsoft gaofei wrote:
>>
>>> I'm thinking about a question ,how my hard disk admits so much data 
>>> ? If
>>> /boot partition is encrypted , then how does my hard disk admit GRUB ?
>>>
>>> sudo fdisk /dev/sda , and press o to create a DOS partition table . 
>>> This
>>> software starts on sector 2048 by default . So how does the 2048 
>>> sectors
>>> admit GRUB to achieve encrypted /boot  ?
>
> FWIW, here is what I replied to the OP's private mail :
>
> GRUB core image embeds all the required modules to read /boot/grub, 
> including crypto modules when /boot/grub is encrypted.
>
> 2048 512-byte sectors is 1 MiB. GRUB BIOS core image does not need so 
> much space. GRUB BIOS was developed at a time when partition alignment 
> was based on "cylinders", so the first partition usually started at 
> sector 63. GRUB BIOS core image was initially designed to fit in that 
> 30 KiB space. It has grown a bit over time and is sometimes slightly 
> bigger than 30 KiB, but 1 MiB is still plenty of space.
>
> A copy of GRUB BIOS core image is kept in /boot/grub/i386-pc/core.img, 
> so you can see its size.
>
>> you don't encrypt boot
>
> Why not ?
>
There's a lot of (not so) old information about /boot. I still have one 
machine with a separate /boot partition because when I first set it up, 
it was still required when using an mdadm RAID array.

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: GRUB and boot partition microsoft gaofei <wangziheng@outlook.com> - 2017-12-29 02:30 +0100
  Re: GRUB and boot partition deloptes <deloptes@gmail.com> - 2017-12-29 11:10 +0100
    Re: GRUB and boot partition Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-12-29 12:50 +0100
      Re: GRUB and boot partition Gary Dale <garydale@torfree.net> - 2017-12-29 23:30 +0100

csiph-web