Jak preformatovat disk bez restartu, jde to? The kernel still uses the old table.
Karel Zak
kzak na redhat.com
Sobota Říjen 1 19:19:44 CEST 2005
On Sat, 2005-10-01 at 14:54 +0200, Dalibor Straka wrote:
> On Sat, Oct 01, 2005 at 10:11:25AM +0200, Oqak wrote:
> > Jak preformatovat disk bez restartu, jde to?
> >
> > Nemohu prijit na to, jak killnu vsechny procesy a po vymene USB disku
> > (samozrejme to je datovy, nikoliv systemovy bootovaci disk) bez restartu
> > stroje preformatuju.
> >
> > Pouzil jsem fdisk: nakonec mi napsal:
> >
> > The partition table has been altered!
> > Calling ioctl() to re-read partition table.
> > WARNING: Re-reading the partition table failed with error 16: Device or
> > resource busy.
> > The kernel still uses the old table.
> > The new table will be used at the next reboot.
> > Syncing disks.
> >
>
> No to je jasne, zabit vsechno podle lsof a aby jsi nemusel
> poustet porad fdisk zkus todle:
man partprobe
Karel
> if (ioctl(fd, BLKRRPART) < 0)
--
Karel Zak <kzak na redhat.com>
Další informace o konferenci Linux