Re: size from df -kh vs size from fdisk -l

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2009-04-22 at 11:08 +0930, Tim wrote:
> On Tue, 2009-04-21 at 09:13 -0700, Aldo Foot wrote:
> > After using fdisk or parted, one must do "partprobe" at the CLI to
> > record the changes. Both the OS and the Kernel need to know the
> > changes.
> 
> I don't recall having to do that.  The last time I repartitioned a
> drive, there was an automatic "syncing the system" stage when I exited
> the partitioning program.

The need to use partprobe depends on whether any partitions on the
device were in use (mounted or opened exclusively) when you ran the
partitioning tool.

The fdisk program uses an ioctl that tells the kernel to refresh the
whole table for that device (BLKRRPART). This fails entirely if any
partitions are busy. Partprobe uses a different ioctl (BLKPG) that
allows it to add and remove individual partitions as long as they aren't
busy. This means it can still add or change partitions on a device that
has busy partitions (as long as there are no overlaps or other
conflicts).

Regards,
Bryn.


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux