You are not logged in.

#1 2011-03-27 18:21:34

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

[SOLVED] fdisk identifies ext2 as HPFS/NTFS

Hi,

The topic pretty much says it all. I had a win7 NTFS partition as /dev/sda1 (with boot flag set) and arch on /dev/sda{3-10}.
So, lately win7 got borked and I finally decided to nuke it smile Thus, I created an ext2 filesystem on /dev/sda1 using mkfs -t ext2 /dev/sda1, and also toggled the boot flags off with fdisk. However, fdisk -l still shows /dev/sda1 as HPFS/NTFS partition. At the same time, parted correctly identifies it as ext2, and so does mount.

Any ideas what I am missing here?

Thanks.

Last edited by Leonid.I (2011-04-04 00:04:38)


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#2 2011-03-27 18:32:20

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: [SOLVED] fdisk identifies ext2 as HPFS/NTFS

if you change the partition type with fdisk to 83 (linux) doesn't help?

Offline

#3 2011-03-27 21:39:24

lives2evil
Member
From: GMT+7
Registered: 2010-03-21
Posts: 244

Re: [SOLVED] fdisk identifies ext2 as HPFS/NTFS

Just ignore it. I used to format my harddrive to GPT and then switch back to MBR but fdisk always display a warning it can't work on a GPT drive even though I can still use it as usuall smile

Last edited by lives2evil (2011-03-27 21:39:44)


tsujeruplive, tnarongisi... ... ... ... ɥsılƃuǝ sı sıɥʇ

Offline

#4 2011-03-27 21:56:37

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: [SOLVED] fdisk identifies ext2 as HPFS/NTFS

"gdisk -z device" is what you want. sometimes I wonder why nobody read the manual.

man gdisk

z      Zap  (destroy) the GPT data structures and exit. Use this option if you want to repartition a GPT disk using fdisk or some
              other GPT-unaware program.  You'll be given the choice of preserving the existing MBR, in case it's a hybrid MBR with sal‐
              vageable partitions or if you've already created new MBR partitions and want to erase the remnants of your GPT partitions.
              If you've already created new MBR partitions, it's conceivable that this option will damage the first and/or last MBR par‐
              titions! Such an event is unlikely, but could occur if your new MBR partitions overlap the old GPT data structures.

Offline

#5 2011-03-27 22:09:03

lives2evil
Member
From: GMT+7
Registered: 2010-03-21
Posts: 244

Re: [SOLVED] fdisk identifies ext2 as HPFS/NTFS

Please, I mean I reformated my disk to MBR but fdisk still complaining with reason (gparted recognized it correctly). I knew what I was doing or I wouldn't even be here.
By the way, I didn't have gdisk when I formated my disk anyway and I don't think it's necessary to have gdisk just to destroy my GPT partitioning scheme.
Would you read a TV's manual if you want to destroy it? big_smile

Last edited by lives2evil (2011-03-27 22:23:30)


tsujeruplive, tnarongisi... ... ... ... ɥsılƃuǝ sı sıɥʇ

Offline

#6 2011-03-28 04:47:43

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [SOLVED] fdisk identifies ext2 as HPFS/NTFS

Thanks for replies, everyone smile

JokerBoy wrote:

if you change the partition type with fdisk to 83 (linux) doesn't help?

It does, thank you. I had no idea that IDs are user adjustable -- I always thought they are automatically set up depending on FS type...


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

Board footer

Powered by FluxBB