Jak preformatovat disk bez restartu, jde to? The kernel still uses the old table.

Oqak node.ch na centrum.cz
Sobota Říjen 1 10:11:25 CEST 2005


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.

Po kontrole $ fdisk -l
Disk /dev/scsi/host0/bus0/target0/lun0/disc: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
                                 Device Boot    Start       End    Blocks 
Id  System
/dev/scsi/host0/bus0/target0/lun0/part1               1        9900 
79521718+  83  Linux
/dev/scsi/host0/bus0/target0/lun0/part2            9901        9964 
514080   82  Linux swap

Coz jsou parametry stareho disku, ten novy ma 300G :-(((


Takze finalni otazka zni, jak prinutim kernel (bez rebootu, hraju si na 
uptime), aby mi dovolil naporcovat novy disk!

Diky. 




Další informace o konferenci Linux