linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: grantksupport@operamail.com
Cc: linux-ext4@vger.kernel.org
Subject: Re: gdisk-created Bios Boot Partition created with NO fs, reports fs TYPE=ext4.  Bug/why?
Date: Mon, 16 Feb 2015 10:38:49 -0800	[thread overview]
Message-ID: <20150216183849.GA11031@birch.djwong.org> (raw)
In-Reply-To: <1424025536.1061731.227795501.40064DE9@webmail.messagingengine.com>

On Sun, Feb 15, 2015 at 10:38:56AM -0800, grantksupport@operamail.com wrote:
> I'm not entirely sure this is the right list for this question, but it IS ext4 'involved'.  So ...
> 
> I create a GPT Bios Boot Partition on a clean disk
> 
> 	sgdisk -z /dev/sdc
> 	sgdisk -o /dev/sdc
> 	sgdisk -n 1:2048:+1M    -t 1:ef02  -c 1:"BIOS Boot"           /dev/sdc
> 
> IIUC, at this point, the partition should exist with NO filesystem.
> 
> But, if I check with blkid
> 
> 	blkid /dev/sdc1
> 		/dev/sdc1: LABEL="RAID_BOOT" UUID="8a828baa-f315-4456-88d2-ff14849eb705" TYPE="ext4" PARTLABEL="BIOS Boot" PARTUUID="2b3b10b1-a458-481e-872c-bada7d244b13" 
> 
> Note that it IDs the filesystem type as
> 
> 	TYPE="ext4"
> 
> Why?

Wiping the partition table doesn't erase filesystem superblocks, so if there
previously was an sdc1 with an ext4 partition and the new sdc1 starts at the
same offset, the old fs is still accessible.

> Bios Boot Partition should have NO filesystem.
> 
> Is blkid correct?  Is there, or isn't there a fs on that partition?
> 
> if there isn't, what's causint the 'false' report?
> 
> If there IS, how do I make sure there isn't?

wipefs.

--D
> 
> grant
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2015-02-16 18:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-15 18:38 gdisk-created Bios Boot Partition created with NO fs, reports fs TYPE=ext4. Bug/why? grantksupport
2015-02-16 18:38 ` Darrick J. Wong [this message]
2015-02-17 20:34   ` grantksupport

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150216183849.GA11031@birch.djwong.org \
    --to=darrick.wong@oracle.com \
    --cc=grantksupport@operamail.com \
    --cc=linux-ext4@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).