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

Re: Disklabel type



On Du, 27 iun 21, 11:04:54, mick crane wrote:
> I don't know what happened here.
> Can I change the Disklabel without messing things up or is it necessary ?

Careful, 'Disklabel' below is a synonym for 'Partition table' (of type 
'dos' in this particular case). 
 
> 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

Fortunately `e2label` is smart enough to recognize your drive is 
partitioned and leave it alone[1], otherwise you might be in serious 
trouble now.

What do you actually want to achieve?


[1] as far as I know it's possible to format a drive directly, without 
any partition table, but this is generally not recommended and should be 
avoided.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

Attachment: signature.asc
Description: PGP signature


Reply to: