Hi,
On Mon, 2 Apr 2007, Udrescu Gabriel sau G@By wrote:
> 2 days ago I hade some power failure and my ubuntu dapper drake box
> rebooted. I use a ntfs formatted partition and after the problems were
> solved i've switched on my PC again. But surprize, the partition that is
> mounted via ntfs-3g was read-only. i've tried to remount it, but i couldn't,
> because i've recived some nasty errors =>
>
> root@pc1:/media/magazie/Downloads# umount /dev/hda5
> umount: /media/magazie: device is busy
> umount: /media/magazie: device is busy
This is not nasty but totally normal if files are in use from the disk.
Use fuser or lsof to find out what softwares are using the volume (file
managers and shells most typically).
> root@pc1:/media/magazie/Downloads# fusermount -u /dev/hda5
> fusermount: entry for /dev/hda5 not found in /etc/mtab
> (even if there is an entry of /dev/hda5 in /etc/mtab, you can see below)
fusermount is buggy, just forget it completely. It will be removed from the
FUSE package in the future.
> root@pc1:/var/log# cat syslog|grep ntfs
> Apr 1 21:27:48 pc1 ntfs-3g[3472]: Mft record 0xa4 was marked unused in mft
> bitmap but is marked used itself. Corrupt filesystem or library bug! Run
> chkdsk immediately!
> Apr 1 21:27:48 pc1 ntfs-3g[3472]: Could not allocate new MFT record
This is a consequence of the power failure. It's repeated in your log
whenever you wanted to create a new file.
> trying to fix this problem with "chkdsk", i've recived this message :
> root@pc1:/var/log# chkdsk
> bash: chkdsk: command not found
> isn't chkdsk included in ntfs-3g? or it's under a different name ?
Chkdsk is the Windows file system checker:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/chkdsk.mspx
But I very seriously suggest to make a full backup of you ntfs partition
with your favourite backup software or ntfsclone first before you would use
it.
> It might be useful for you if I tell you I'm not using the latest ntfs-3g
> version, but the older 1.0 release. I'm a bit afraid to uninstall this
> version and install the newest release (on March 31, 2007) because of that
> problems.
These issues are file system independent. If you have a power failure then
you always lose data if write was ongoing. Some file system can restore a
consistent state (not the data of course, only the fs consistency), some
don't.
> Really I have important data on the ntfs partition and I don't want to
> loose them
It's maybe late. You must always keep backups if you value your data,
especially if power outages are expected without a well configured UPS.
Plenty disks die every seconds in the world and only those believe it won't
happen with them who never lost data -- but only until they do (hardware
problem, software bug, user error, etc).
Regards,
Szaka
|