Subject: Re: USB drive input / output error
To: Shadi Ammouri <ammouris@gmail.com>
From: David Young <dyoung@pobox.com>
List: netbsd-users
Date: 07/17/2007 11:21:40
On Tue, Jul 17, 2007 at 09:24:04AM +0300, Shadi Ammouri wrote:
> Hi,
> 
> I'm running NetBSD-current on an ARM based system.
> 
> I have a problem after disconnecting a USB drive while a write
> operation is active.
> 
> I do the following:
> - mount the USB drive. (mount /dev/sd0c /mnt/disk")
> - run dd to write some file to the disk. (dd if=/dev/zero
> of=/mnt/disk/test_file")
> - disconnect the disk while the write operation is in progress.
> 
> >From that point, I cannot unmount the drive, or remount it.
> I get the following error: "umount: /mnt/disk: Input/output error".

Does umount -f work?

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933 ext 24