Imagine que você está reparticionamento de um disco e quando você parar de escrever o fdisk automount nova tabela de partição tenta montar novas partições. Então, ao invés do disco atualizado pronto para newfs você receber esse 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 isso com /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 o automount permanentemente usar esse: 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 at 12:59 am
[...] 21, escreve a tabela de partição no disco. Você pode estar interessado em ler este post, bem como se você está enfrentando problemas com a escrita a tabela de partição para o [...]