[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Disklabel type



On Sun, 27 Jun 2021 at 20:05, mick crane <mick.crane@gmail.com> wrote:
>
> I don't know what happened here.
> Can I change the Disklabel without messing things up or is it necessary
> ?
>
> root@pumpkin:~# fdisk /dev/sda
> Disk /dev/sda: 223.57 GiB, 240057409536 bytes, 468862128 sectors
> Disk model: KINGSTON SA400S3
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0x64b83d98
>
> Device     Boot  Start       End   Sectors   Size Id Type
> /dev/sda1  *      2048    499711    497664   243M 83 Linux
> /dev/sda2       501758 468860927 468359170 223.3G  5 Extended
> /dev/sda5       501760 468860927 468359168 223.3G 8e Linux LVM
>
>
> root@pumpkin:~# e2label /dev/sda
> e2label: Bad magic number in super-block while trying to open /dev/sda
> Found a dos partition table in /dev/sda

You're trying to apply a *filesystem* label to a block *device*.
That cannot work.

It's hard to know what your goal is there, but perhaps 'e2label /dev/sda1'
is what you actually want. The partition information above doesn't
suggest any other possibilites that would succeed.


Reply to: