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


Groups > linux.debian.user > #236531 > unrolled thread

Re: Disklabel type

Started byAndrei POPESCU <andreimpopescu@gmail.com>
First post2021-06-27 14:10 +0200
Last post2021-06-27 14:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.user

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#236531 — Re: Disklabel type

FromAndrei POPESCU <andreimpopescu@gmail.com>
Date2021-06-27 14:10 +0200
SubjectRe: Disklabel type
Message-ID<CuBLP-38D-5@gated-at.bofh.it>

[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

[toc] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web