Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #236523 > unrolled thread
| Started by | David <bouncingcats@gmail.com> |
|---|---|
| First post | 2021-06-27 13:00 +0200 |
| Last post | 2021-06-27 13:10 +0200 |
| Articles | 2 — 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.
Re: Disklabel type David <bouncingcats@gmail.com> - 2021-06-27 13:00 +0200
Re: Disklabel type David <bouncingcats@gmail.com> - 2021-06-27 13:10 +0200
| From | David <bouncingcats@gmail.com> |
|---|---|
| Date | 2021-06-27 13:00 +0200 |
| Subject | Re: Disklabel type |
| Message-ID | <CuAG6-2aZ-7@gated-at.bofh.it> |
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.
[toc] | [next] | [standalone]
| From | David <bouncingcats@gmail.com> |
|---|---|
| Date | 2021-06-27 13:10 +0200 |
| Message-ID | <CuAPL-2uV-1@gated-at.bofh.it> |
| In reply to | #236523 |
On Sun, 27 Jun 2021 at 20:51, David <bouncingcats@gmail.com> wrote: > You're trying to apply a *filesystem* label to a block *device*. > That cannot work. Not the best wording, sorry, I'll try to be a bit clearer. Your command failed because it tried to apply a *filesystem* label to a partitioned block device /dev/sda. That cannot work because /dev/sda is currently not an extN filesystem. /dev/sda rather contains a partition table and partitions. And in this case, as is very common, it is the partition that likely contains an extN filesystem. The only partition that you show that does contain a extN filesystem is /dev/sda1. /dev/sda2 contains an extended msdos partition, which is not a extN filesystem. /dev/sda5 is a logical partition inside /dev/sda2, and it is being used by LVM, so the device /dev/sda5 also is not an extN filesystem. Although some of the LVM devices inside it may well be extN filesystems providing your root and home.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web