I tried creating a new partition on a disk. After the partition table was written, I got a message about the kernel still using the old partition table. How do I get whatever system to register the new partition short of rebooting the box?
On Thu, 2006-11-23 at 23:48 +0800, Feizhou wrote:> I tried creating a new partition on a disk. > > After the partition table was written, I got a message about the kernel > still using the old partition table. > > How do I get whatever system to register the new partition short of > rebooting the box? > _______________________________________________Got to reboot if you change the partition that contains / mount or if the partition can not be locked for writing. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20061123/5db89260/attachment-0002.sig>
On Thursday 23 November 2006 16:48, Feizhou wrote:> I tried creating a new partition on a disk. > > After the partition table was written, I got a message about the kernel > still using the old partition table. > > How do I get whatever system to register the new partition short of > rebooting the box?partprobe /dev/XXX usually does the trick (assuming centos-4) /Peter -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20061124/830c1a93/attachment-0002.sig>
Johnny Hughes wrote:> On Thu, 2006-11-23 at 23:48 +0800, Feizhou wrote: >> I tried creating a new partition on a disk. >> >> After the partition table was written, I got a message about the kernel >> still using the old partition table. >> >> How do I get whatever system to register the new partition short of >> rebooting the box? >> _______________________________________________ > > Got to reboot if you change the partition that contains / mount or if > the partition can not be locked for writing.So only the partition table on the disk that contains / will suffer from not kicking sysfs/udev/hald. Thanks.
Peter Kjellstrom wrote:> On Thursday 23 November 2006 16:48, Feizhou wrote: >> I tried creating a new partition on a disk. >> >> After the partition table was written, I got a message about the kernel >> still using the old partition table. >> >> How do I get whatever system to register the new partition short of >> rebooting the box? > > partprobe /dev/XXX > > usually does the trick (assuming centos-4) >Thanks, I will give that a shot.
On Thu, 2006-11-23 at 09:56 -0600, Johnny Hughes wrote:> On Thu, 2006-11-23 at 23:48 +0800, Feizhou wrote: > > I tried creating a new partition on a disk. > > > > After the partition table was written, I got a message about the kernel > > still using the old partition table. > > > > How do I get whatever system to register the new partition short of > > rebooting the box? > > _______________________________________________ > > Got to reboot if you change the partition that contains / mount or if > the partition can not be locked for writing.sfdisk -R ... Used to do the trick. I can't remember if the device is needed. Man sfdisk will fill in the details.> <snip sif stuff>-- Bill