On Fri, 2008-05-30 at 15:18 +0100, UDP 514 wrote: > I have a server with hot swap disks. > > I'd like to be able to swap out a non-system disk , eg /dev/sdd and > put in a new > disk, partition it in fdisk, then mount those partitions. This all > works fine, I can partition it, > but the linux kernel hangs on to the old disk partitions in memory, > so I can't mke2fs or > mount the newly created partitions, without doing a reboot. > > > Is there a way to force the kernel re-read the partition tables on a > non-system disk?
hdparm -z /device/here Looks like it should do what you want. -davidc -- gpg-key: http://www.zettazebra.com/files/key.gpg
signature.asc
Description: This is a digitally signed message part