Util-linux-ng nitpicks

Bruce Dubbs bruce.dubbs at gmail.com
Tue Oct 7 14:57:38 PDT 2008


Randy McMurchy wrote:
> Matthew Burgess wrote:
> 
>> I've done a search of the LSB-Core-Generic-3.2 and LSB-Core-IA32-3.2 PDFs
>> and didn't find any mention of 'addpart', 'delpart' or 'partx'.
>> 
>> Looking at the man pages for each, I'm having a hard time understanding the
>> use-cases for each of these programs.  Why would one need to tell Linux
>> about partitions if no changes have been made?  Likewise, if one is making
>> changes to partition tables, why would the program that is making those
>> changes not inform Linux about those changes?
> 
> Wish I could help, Matt. But I simply don't know anything about the part*
> stuff. I simply saw that over in CBLFS, there was a mention about it. But you
> never know about what is over there, anyone can update a page on that Wiki,
> be it good information or bad.
> 
> My question to the community, is should this be added to LFS? I really don't
> know about the part* stuff. I don't think Joe C. is subscribed any longer,
> but if someone wanted to send him a private email, he may have insight.

Just a couple of data points:

# which partx
/sbin/partx
# uname -a
Linux alamo 2.6.9-11.EL #1 Fri May 20 18:17:57 EDT 2005 i686 athlon i386 GNU/Linux

# which partx
/sbin/partx
# uname -a
Linux xxx 2.6.18-53.1.14.el5_lustre.1.6.5.1smp #1 SMP Wed Jun 18 19:45:15 EDT
2008 x86_64 x86_64 x86_64 GNU/Linux

----------
PARTX(8)                                                              PARTX(8)

NAME
        partx - telling the kernel about presence and numbering of on-disk
partitions.

SYNOPSIS
        partx [-a|-d|-l] [--type TYPE] [--nr M-N] [partition] disk

DESCRIPTION
        Given a block device ( disk ) and a partition table type , try to parse
the partition table, and list the contents. Optionally add or remove partitions.

        This is not an fdisk - adding and removing partitions is not a change  of
  the  disk, but just telling the kernel about presence and numbering of on-disk
partitions.
----------
PARTPROBE(8)                   GNU Parted Manual                  PARTPROBE(8)

NAME
        partprobe - inform the OS of partition table changes

SYNOPSIS
        partprobe [-d] [-s] [devices...]

DESCRIPTION
        partprobe  is  a  program that informs the operating system kernel of 
partition table changes, by requesting that the operating system re-read the 
partition table.
------------

It seems they both do about the same thing.  I'm not sure why we'd need both, 
but I prefer adding it as it is a part of a package we are already installing.

   -- Bruce






More information about the lfs-dev mailing list