Go to file
Karel Zak d0a870c5b3 fdisk: don't care about partition type
fdisk allows to overwrite existing partition if the partition has
partition type set to zero (very unusual, but possible).

This is incorrect because such partition is pretty valid (and Linux
kernel does not care about the type at all). For example:

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048       22527       10240   83  Linux
/dev/sdb2           22528      227327      102400    0  Empty
                    ^^^^^                            ^^^^^^^^

Command (m for help): n
Partition type:
   p   primary (1 primary, 0 extended, 3 free)
   e   extended
Select (default p):
Using default response p
Partition number (3,4, default 3):
First sector (22528-1228799, default 22528):
                                    ^^^^^^^

.. if user follows the default then the result are overlapping
partitions:

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048       22527       10240   83  Linux
/dev/sdb2           22528      227327      102400    0  Empty
/dev/sdb3           22528     1228799      603136   83  Linux
                    ^^^^^

... and if you call "mkfs /dev/sdb3" then you lost data on sdb2. Sad
thing.

Reported-by: Marc MERLIN <marc@merlins.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-25 12:00:55 +01:00
Documentation docs: update links to http://git.kernel.org/ web repository views 2013-11-12 11:47:57 +01:00
bash-completion cal: added -w|--week for showing week numbers 2013-10-22 10:27:03 +02:00
config build-sys: inform gtk-doc about __ul_attribute__ 2013-03-15 14:58:08 +01:00
disk-utils fsck: add ext4 to list of filesystems with progress bars in fsck man page 2013-11-19 14:46:27 +01:00
fdisks fdisk: fix usage(), -l [<disk>] 2013-11-19 18:30:40 +01:00
include docs: update links to http://git.kernel.org/ web repository views 2013-11-12 11:47:57 +01:00
lib textual: standardize some "cannot read" and "seek failed" error messages 2013-10-09 11:37:38 +02:00
libblkid libblkid: fix memory leak in blkid_parse_tag_string() 2013-11-19 17:52:56 +01:00
libfdisk fdisk: don't care about partition type 2013-11-25 12:00:55 +01:00
libmount libmount: add mnt_tag_is_valid() 2013-11-19 17:41:28 +01:00
libuuid COPYING: fix grammar of referring phrase, and indicate location better 2013-10-08 15:38:39 +02:00
login-utils sulogin: use dirent->d_type when scans /dev 2013-11-12 12:26:13 +01:00
m4 build-sys: improbe UL_CONFLICT_BUILD macro 2013-08-12 12:59:22 +02:00
misc-utils lsblk: fix -D segfault 2013-11-18 11:27:35 +01:00
mount-deprecated docs: standardize the phrases for --help and --version in all man pages 2013-10-15 10:28:30 +02:00
po po: merge changes 2013-10-21 13:20:53 +02:00
schedutils docs: standardize the phrases for --help and --version in all man pages 2013-10-15 10:28:30 +02:00
sys-utils umount: fix umount by tag for non-roots 2013-11-19 17:55:12 +01:00
term-utils script: restore errno in signal handler 2013-11-14 14:42:23 +01:00
tests tests: fix fdisk GPT test 2013-11-14 20:01:30 +01:00
text-utils hexdump: catch memory leaks 2013-11-08 14:16:29 +01:00
tools build-sys: add --with-smack to config-gen.d 2013-11-12 15:48:42 +01:00
.gitignore nologin: add new command 2013-09-30 13:36:26 +02:00
AUTHORS docs: update AUTHORS file 2013-10-11 13:03:13 +02:00
COPYING docs: corrections to FSF license files, and postal address 2012-02-24 14:13:35 +01:00
ChangeLog build-sys: use AUTOMAKE_OPTIONS = gnu 2011-05-26 15:04:01 +02:00
Makefile.am build-sys: install pylibmount into 2013-08-19 15:24:33 +02:00
NEWS build-sys: release++ (v2.24) 2013-10-21 14:46:27 +02:00
README docs: update links to http://git.kernel.org/ web repository views 2013-11-12 11:47:57 +01:00
README.licensing COPYING: fix grammar of referring phrase, and indicate location better 2013-10-08 15:38:39 +02:00
autogen.sh build-sys: remove unnecessary environment variable 2013-08-23 10:58:34 +02:00
configure.ac libmount: remove smackfs* option when SMACK not enabled 2013-11-12 15:07:12 +01:00

README

                                  util-linux

              util-linux is a random collection of Linux utilities

     Note that in years 2006-2010 this project used the name "util-linux-ng".

MAILING LIST:

      E-MAIL: util-linux@vger.kernel.org
      URL:    http://vger.kernel.org/vger-lists.html#util-linux


DOWNLOAD:

      ftp://ftp.kernel.org/pub/linux/utils/util-linux/


SOURCE CODE:

      Web interface:
          http://git.kernel.org/cgit/utils/util-linux/util-linux.git
          https://github.com/karelzak/util-linux
      Checkout:
          git clone git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git util-linux


NLS (PO TRANSLATIONS):

      PO files are maintained by:
          http://translationproject.org/domain/util-linux.html


VERSION SCHEMA:

      Standard releases:

          <major>.<minor>[.<maint>[.<bugfix>]]

             major = fatal and deep changes
             minor = typical release with new features
             maint = maintenance releases; bug fixes only
             bugfix = unplanned releases for critical/security bugs

      Development releases:

         <major>.<minor>-rc<N>