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


Groups > linux.debian.user > #236531

Re: Disklabel type

From Andrei POPESCU <andreimpopescu@gmail.com>
Newsgroups linux.debian.user
Subject Re: Disklabel type
Date 2021-06-27 14:10 +0200
Message-ID <CuBLP-38D-5@gated-at.bofh.it> (permalink)
References <CuAG6-2aZ-9@gated-at.bofh.it> <CuAG7-2aZ-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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

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


Thread

Re: Disklabel type Andrei POPESCU <andreimpopescu@gmail.com> - 2021-06-27 14:10 +0200

csiph-web