[Eisfair] E1 LILO Duplicated Volume ID

Thomas Bork tom at eisfair.org
Fr Jun 20 21:11:21 CEST 2014


Am 19.06.2014 23:19, schrieb Jürgen Witt:

> sorgt denn nicht der Eisfair-Installer für eindeutige Volume-IDs. Die
> Platten waren "frisch aus der Tüte" und noch nirgendwo vorher von mir
> verbaut worden. Muß ich mit Problemen rechnen?

Ein Test:

Ausgangslage:
=============
1 Sata-Platte.

sata # lilo -T vol-ID


   BIOS     Volume ID

   0x80     56D16105

Volume ID's are all unique.


sata #


Einbau einer 2. leeren Sata-Platte:
===================================
sata # lilo -T vol-ID


   BIOS     Volume ID

   0x80     56D16105
   0x81     00000000 -

Volume ID's are all unique.
    '-' marks an invalid Volume ID which will be automatically updated
         the next time  /sbin/lilo  is executed.



Clonen der 1. Sata-Platte auf die 2. Sata-Platte:
=================================================
Die erste Sata-Platte ist GPT-partitioniert.

sata # sgdisk -R=/dev/sdb /dev/sda
The operation has completed successfully.

sata # sgdisk -p /dev/sda
Disk /dev/sda: 8388608 sectors, 4.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 9E0003A7-B75C-418E-B288-0BF52B51211D
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 8388574
Partitions will be aligned on 2048-sector boundaries
Total free space is 22494 sectors (11.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
    1            2048          100351   48.0 MiB    8300  boot
    2          100352          362495   128.0 MiB   8200  swap
    3          362496         8368094   3.8 GiB     8300  root
sata # sgdisk -p /dev/sdb
Disk /dev/sdb: 8388608 sectors, 4.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 9E0003A7-B75C-418E-B288-0BF52B51211D
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 8388574
Partitions will be aligned on 2048-sector boundaries
Total free space is 22494 sectors (11.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
    1            2048          100351   48.0 MiB    8300  boot
    2          100352          362495   128.0 MiB   8200  swap
    3          362496         8368094   3.8 GiB     8300  root

Wie man hier schön sieht, ist die GUID der Platten identisch.

sata # lilo -T vol-ID


   BIOS     Volume ID

   0x80     56D16105
   0x81     00000000 -

Volume ID's are all unique.
    '-' marks an invalid Volume ID which will be automatically updated
         the next time  /sbin/lilo  is executed.


sata #

Um die GUID einzigartig zu machen:

sata # sgdisk -G /dev/sdb
The operation has completed successfully.
sata #
sata # sgdisk -p /dev/sda
Disk /dev/sda: 8388608 sectors, 4.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 9E0003A7-B75C-418E-B288-0BF52B51211D
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 8388574
Partitions will be aligned on 2048-sector boundaries
Total free space is 22494 sectors (11.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
    1            2048          100351   48.0 MiB    8300  boot
    2          100352          362495   128.0 MiB   8200  swap
    3          362496         8368094   3.8 GiB     8300  root
sata # sgdisk -p /dev/sdb
Disk /dev/sdb: 8388608 sectors, 4.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 8B40B540-9CFB-40FF-88EC-07D40B714A84
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 8388574
Partitions will be aligned on 2048-sector boundaries
Total free space is 22494 sectors (11.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
    1            2048          100351   48.0 MiB    8300  boot
    2          100352          362495   128.0 MiB   8200  swap
    3          362496         8368094   3.8 GiB     8300  root
sata # lilo -T vol-ID


   BIOS     Volume ID

   0x80     56D16105
   0x81     00000000 -

Volume ID's are all unique.
    '-' marks an invalid Volume ID which will be automatically updated
         the next time  /sbin/lilo  is executed.


sata # lilo -v
LILO version 23.2 eisfair-1 (released 09-Apr-2011)
   * Copyright (C) 1992-1998 Werner Almesberger  (until v20)
   * Copyright (C) 1999-2007 John Coffman  (until v22)
   * Copyright (C) 2009-2011 Joachim Wiedorn  (since v23)
This program comes with ABSOLUTELY NO WARRANTY. This is free software
distributed under the BSD License (3-clause). Details can be found in
the file COPYING, which is distributed with this software.
Compiled at 14:19:35 on Feb  3 2013

Reading boot sector from /dev/sda
Backup copy of master disk volume ID record in /boot/boot.0810
Using MENU secondary loader
Calling map_insert_data

Boot image: /boot/kernel
Mapping RAM disk /boot/initrd.gz
The initial RAM disk will be loaded in the high memory above 16M.
Added eis  +  *

Writing boot sector.
/boot/boot.0800 exists - no boot sector backup copy made.

Es wurde ein Backup des master disk volume ID record gemacht.

sata # lilo -T vol-ID


   BIOS     Volume ID

   0x80     56D16105
   0x81     00000000 -

Volume ID's are all unique.
    '-' marks an invalid Volume ID which will be automatically updated
         the next time  /sbin/lilo  is executed.


sata #

Keine Veränderung, da lediglich partitioniert aber nicht formatiert?

sata # mkfs.ext4 /dev/sdb1
mke2fs 1.42.8 (20-Jun-2013)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
12288 inodes, 49152 blocks
2457 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=50331648
6 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks:
         8193, 24577, 40961

Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

sata # lilo -T vol-ID


   BIOS     Volume ID

   0x80     56D16105
   0x81     00000000 -

Volume ID's are all unique.
    '-' marks an invalid Volume ID which will be automatically updated
         the next time  /sbin/lilo  is executed.


sata # lilo
Added eis  +  *
sata # lilo -T vol-ID


   BIOS     Volume ID

   0x80     56D16105
   0x81     00000000 -

Volume ID's are all unique.
    '-' marks an invalid Volume ID which will be automatically updated
         the next time  /sbin/lilo  is executed.


sata #

Mmh, lilo fasst die volume id der 2. Sata-Platte nicht an.

-- 
der tom
[eisfair-team]


Mehr Informationen über die Mailingliste Eisfair