Go to file
Karel Zak 81dc64f8c0 fdisk: offer aligned first sector
Typical "new partition" dialog looks like:

     Partition number (1-4): 1
     First sector (4-818687, default 4):
                             ^^^^^^^^^

The range (e.g. 4-818687) depends on fdisk mode (DOS/non-DOS), but the
default value should be always aligned.

For example RAID5 device in the DOS mode:

   Disk /dev/md0: 419 MB, 419168256 bytes
   2 heads, 4 sectors/track, 102336 cylinders, total 818688 sectors
   Units = sectors of 1 * 512 = 512 bytes
   Sector size (logical/physical): 512 bytes / 65536 bytes
   Disk identifier: 0x081479c3

   ....

   Command (m for help): n
   Command action
      e   extended
      p   primary partition (1-4)
   p
   Partition number (1-4): 1
   First sector (4-818687, default 128):    <---- !!!
   Using default value 128
   Last sector, +sectors or +size{K,M,G} (128-818687, default 818687): +10M

   Command (m for help): p

   ....

       Device Boot      Start         End      Blocks   Id  System
   /dev/md0p1             128       20607       10240   83  Linux

For non-DOS mode the range will be:

   First sector (128-818687, default 128):

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-11-18 11:25:10 +01:00
config build-sys: clean up gtk-doc stuff 2009-11-06 23:43:46 +01:00
disk-utils build-sys: cleanup AM_CFLAGS usage 2009-11-09 16:45:50 +01:00
docs docs: update v2.16 ReleaseNotes 2009-07-16 01:14:29 +02:00
example.files uuidd: move uuidd.rc to misc-utils directory 2009-06-30 15:04:49 +02:00
fdisk fdisk: offer aligned first sector 2009-11-18 11:25:10 +01:00
fsck build-sys: cleanup AM_CFLAGS usage 2009-11-09 16:45:50 +01:00
getopt getopt.1: formatting 2009-08-17 12:11:13 +02:00
hwclock hwclock: use c.h 2009-10-16 01:37:09 +02:00
include mount: and libblkid: covert /dev/dm-N to /dev/mapper/<name> 2009-10-26 13:33:03 +01:00
lib build-sys: add HAVE_LIBBLKID_INTERNAL 2009-10-27 12:11:37 +01:00
licenses Imported from util-linux-2.9v tarball. 2006-12-07 00:25:39 +01:00
login-utils initctl: fix strict-aliasing bugs 2009-10-17 00:19:23 +02:00
m4 Revert "build-sys: check for gtk-doc by default" 2009-11-06 23:59:54 +01:00
misc-utils blkid: add ID_FS_AMBIVALENT for udev output 2009-11-11 17:21:36 +01:00
mount build-sys: cleanup AM_CFLAGS usage 2009-11-09 16:45:50 +01:00
partx partx: use c.h 2009-10-16 01:35:55 +02:00
po po: update pl.po (from translationproject.org) 2009-11-10 22:08:25 +01:00
schedutils chrt: use c.h 2009-10-16 01:01:48 +02:00
shlibs libblkid: fix NTFS non-ASCII labels 2009-11-13 00:10:48 +01:00
sys-utils dmesg: fix typo in man page 2009-10-19 22:22:18 +02:00
tests fdisk: print info and recommendations about alignment 2009-11-18 11:25:10 +01:00
text-utils more: limited line buffer length results in corrupted UTF-8 text 2009-11-16 15:52:45 +01:00
tools fdisk: rename ENABLE_CMDTAGQ macro 2008-11-26 14:24:52 +01:00
.gitignore build-sys: clean up gtk-doc usage 2009-10-12 15:20:27 +02:00
AUTHORS docs: add 'unshare' and 'wipefs' to AUTHORS 2009-10-19 11:26:12 +02:00
COPYING Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
DEPRECATED raw: undeprecate raw 2009-07-02 13:39:28 +02:00
INSTALL Imported from util-linux-2.13-pre1 tarball. 2006-12-07 00:26:54 +01:00
Makefile.am build-sys: remove obsolete --with-fsprobe from distcheck flags 2009-11-05 23:37:15 +01:00
NEWS build-sys: release++ (v2.16) 2009-07-16 01:16:28 +02:00
README docs: README width and language correction 2009-09-07 12:52:33 +02:00
README.devel docs: update "The Perfect Patch" URL 2009-07-21 15:43:29 +02:00
README.licensing lscpu: new command 2008-07-18 03:01:49 +02:00
TODO docs: update TODO 2009-11-07 00:20:55 +01:00
autogen.sh build-sys: remove gtkdocize from autogen.sh 2009-11-07 00:06:53 +01:00
configure.ac build-sys: add HAVE_LIBBLKID_INTERNAL 2009-10-27 12:11:37 +01:00

README

                          util-linux-ng
           (fork of util-linux, based on version 2.13-pre7)

         util-linux is a random collection of Linux utilities

WEB PAGE:

     http://kernel.org/~kzak/util-linux-ng/


MAILING LIST:

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


DOWNLOAD:

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


SOURCE CODE:

      Web interface:
          http://git.kernel.org/?p=utils/util-linux-ng/util-linux-ng.git
      Checkout:
          git clone git://git.kernel.org/pub/scm/utils/util-linux-ng/util-linux-ng.git util-linux-ng

NLS (PO TRANSLATIONS):

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

NEUTRALITY:

      The stuff in util-linux-ng should be rather distribution-neutral.
      No RPMs/DEBs/... are provided - get yours from your distributor.


VERSION SCHEMA:

      Standard releases:

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

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

      Development releases:

         <major>.<minor><suffix>

             suffix = "devel" or "-rc<N>"


COMPILATION:

      See the INSTALL file for more details.

      Notes:
            * use SUID_CFLAGS and SUID_LDFLAGS when you want to define special
              compiler options for typical suid programs, for example:

                  ./configure SUID_CFLAGS="-fpie" SUID_LDFLAGS="-pie"

              This feature is currently supported for chfn, chsh, newgrp,
              write, mount, and umount.


STATIC LINKING:

      Use --enable-static-programs[=LIST] configure option when you want to use
      statically linked programs.

      Note, mount(8) uses get{pw,gr}nam() and getpwuid() functions for
      translation from username and groupname to UID and GID. These functions
      could be implemented by dynamically loaded independent modules (NSS) in
      your libc (e.g. glibc). These modules are not statically linked to
      mount(8) and mount.static is still using dlopen() like dynamically
      linked version.

      The translation won't work in environment where NSS modules are
      not installed.

      For example normal system (NSS modules are available):

              # ./mount.static -v -f -n -ouid=kzak /mnt/foo
              LABEL=/mnt/foo on /mnt/foo type vfat (rw,uid=500)
                                                       ^^^^^^^
      and without NSS modules:

              # chroot . ./mount.static -v -f -n -ouid=kzak /mnt/win
              LABEL=/mnt/win on /mnt/win type vfat (rw,uid=kzak)
                                                       ^^^^^^^^