can't fsck due to "/dev/sdc1 is in use"

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

can't fsck due to "/dev/sdc1 is in use"

Postby kronos » Sat Apr 12, 2014 4:53 pm

Previously never had this problem but just updated the system (via pacman) and dmesg tells me that it is time to fsck one of my attached usb hard drives (sdc1). I make sure the drive is not mounted and run fsck /dev/sdc1 and get the following:

fsck from util-linux 2.24.1
e2fsck 1.42.9 (28-Dec-2013)
/dev/sdc1 is in use.
e2fsck: Cannot continue, aborting.


I have tried restarting the system making sure the drive isn't auto mounted and always get that error. Can anyone provide any pointers. Thanks.
kronos
 
Posts: 14
Joined: Sat Oct 16, 2010 11:44 am

Re: can't fsck due to "/dev/sdc1 is in use"

Postby Geoff » Sat Apr 12, 2014 5:12 pm

I started having the same problem about a week ago. There's a kernel process accessing the partition, and this process doesn't go away as it used to after umount. Here's how you can find it:

$this->bbcode_second_pass_code('', 'lsof | grep ^jbd2/sd')
Geoff
 
Posts: 231
Joined: Wed Mar 09, 2011 5:14 pm

Re: can't fsck due to "/dev/sdc1 is in use"

Postby kronos » Sun Apr 13, 2014 10:26 am

Yes, I have that process running. I have tried killing it without success. Not sure what it is for so it may be lucky that I can't kill it. Have you had any success in getting rid of it?
kronos
 
Posts: 14
Joined: Sat Oct 16, 2010 11:44 am

Re: can't fsck due to "/dev/sdc1 is in use"

Postby kronos » Sun Apr 13, 2014 10:38 am

Just realised what I posted was stupid. For me the lsof output is:

lsof | grep ^jbd2/sd
jbd2/sdb1 116 root cwd DIR 8,1 4096 2 /
jbd2/sdb1 116 root rtd DIR 8,1 4096 2 /
jbd2/sdb1 116 root txt unknown /proc/116/exe


sdb1 is my mounted hard drive. sdc1 is the drive that when I unmount I still have the "in use" problem. lsof doesn't detect any processes using sdc1.
kronos
 
Posts: 14
Joined: Sat Oct 16, 2010 11:44 am


Return to ARMv5

Who is online

Users browsing this forum: No registered users and 13 guests