util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fdisk Ctrl+C
@ 2019-01-09 18:01 Jonny Grant
  2019-01-10 11:22 ` Karel Zak
  0 siblings, 1 reply; 3+ messages in thread
From: Jonny Grant @ 2019-01-09 18:01 UTC (permalink / raw)
  To: util-linux; +Cc: Karel Zak

Hello!

A few questions, ideas

1. Could Ctrl+C be added to get out of changing a partition type?

2 Could the partition code check that it is hex. At the moment if I type 
'q' I get partition type 0.

3.
For partition type 0, which is called "Empty" probably this message 
should say "Empty" and not 'unknown' ?

=======
Changed type of partition 'W95 FAT32 (LBA)' to 'unknown'.
=======

Would a patch be accepted for this?


NB. See log below for more info.

Regards, Jonny




$ fdisk --version
fdisk from util-linux 2.31.1


# fdisk /dev/sdb

Welcome to fdisk (util-linux 2.31.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p
Disk /dev/sdb: 114.6 GiB, 123010547712 bytes, 240254976 sectors
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: 0x00000000

Device     Boot Start       End   Sectors   Size Id Type
/dev/sdb1          32 240254975 240254944 114.6G  c W95 FAT32 (LBA)

Command (m for help): t
Selected partition 1
Hex code (type L to list all codes): ^CHex code (type L to list all codes):


Hex code (type L to list all codes): q
Type 0 means free space to many systems. Having partitions of type 0 is 
probably unwise.

Changed type of partition 'W95 FAT32 (LBA)' to 'unknown'.

Command (m for help):


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-10 12:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-09 18:01 fdisk Ctrl+C Jonny Grant
2019-01-10 11:22 ` Karel Zak
2019-01-10 12:22   ` Jonny Grant

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).