Imagine que você está reparticionar um disco e quando sair do fdisk escrever o automount nova tabela de partição tenta montar uma nova partição. Assim em vez de disco atualizados prontos para newfs você receber este aviso: 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 boot.
Então você pode esquecer newfs por algum tempo. O que você faz? Basta reiniciar? E se você necessitar de reparticionar mais de um disco? Aqui está a solução ...
A solução é desativar o automount temporariamente. Você pode facilmente fazer com que /etc/init.d/autofs stop /etc/init.d/haldaemon stop #umount the device you're trying to fdisk - it might be already mounted
A segunda linha é menos trivial, em seguida, o primeiro, não é? Para desativar permanentemente automount usar este: chkconfig autofs off chkconfig haldaemon off /etc/init.d/autofs stop /etc/init.d/haldaemon stop #umount the device you're trying to fdisk - it might be already mounted
Este post foi publicado em How To, Linux. |
12 de fevereiro de 2008 às 12:59
[...] 21, escreve a tabela de partição no disco. Você pode estar interessado em ler este post, bem como se você estiver enfrentando problemas com a escrita da tabela de partição para o [...]