~ overflow ~

fsck on a partittion in use?

by z3n on May.13, 2009, under Linux Happyness Português

Problema:

Você precisa rodar o fsck, porém, a partição em questão está em uso e é impossível desmontar pois é onde todos os arquivos criticos do linux estão.

Solução:

Você precisa iniciar no modo single-user, usando o GRUB é assim que se faz:

o GRUB irá esperar 3 segundos antes de iniciar o boot, aperte enter e selecione a opção do linux (e), edite a linha em que está o kernel, coloque single no final dela, de enter e aperte b
para dar boot e pronto, o linux irá iniciar no modo mínimo em que você será capaz de desmontar quaisquer unidades e finalmente rodar o fsck.

Comandos Relacionados:

umount -f /dev/… (força um dispositivo a desmontar)

fsck -pyvf /dev/… (para verificar um dispositivo, arrumar, sim para todas as perguntas, modo verbose, e forçar verificação em sistemas marcados como limpos)

Fontes:

RedHat Manual

Unix.com

Problem:

You need to run fsck, however, the partittion in question is in use and you can umount it cuz it’s the same partittion of the critical linux files are.

Solution:

You need to boot into single-user mode, I’m using GRUB so that’s how you do:

GRUB will wait 3 seconds before booting, press enter and edit the linux entry (e) you will see a line that theres a kernel on it, edit this one (e) and in the end, put single

press b to boot and done, linux will boot on a minimal resource mode, wich will allow you to umount anything, then finally run the fsck.

Related commands:

umount -f /dev/… (to forcefully umount a device)

fsck -pyvf /dev/… (to check a device, fix, yes to all queries, verbose mode and force even on clean devices)

Sources:

RedHat Manual

Unix.com

:, , , , ,


No comments for this entry yet...

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!