FSCK on sda2 "couldn't unmount"

84 views
Skip to first unread message

Daniel

unread,
Feb 24, 2015, 3:15:32 AM2/24/15
to al...@googlegroups.com
Hi there,

I have a problem with fsck on my sda2 drive. I keep getting the error message "Couldn't unmount /mnt/sda2 for checking it. Please stop services first."

I did the stopp all services command in sytem -> utilities and the rcall status gives the following info:

rcall status
root: user stopped.
root: ffp stopped
root: minidlna stopped
root: vsftpd stopped
root: dropbear running
root: smbd stopped
root: rpc.statd stopped
root: nfsd stopped
root: lighttpd stopped
root: inadyn-mt stopped
root: ntpd stopped
root: dnsmasq stopped
root: stunnel stopped
root: inetd running
root: portmap stopped
root: news stopped
root: cleanup stopped
root: backup stopped
root: mdadm stopped
root: smartd stopped
root: atd stopped
root: crond stopped
root: sysctrl stopped
root: No modules loaded
root: urandom stopped
root: sslcert stopped.
root: syslogd stopped

Still no luck, is there a way to force fsck on reboot?

Thanks
Daniel

João Cardoso

unread,
Feb 24, 2015, 10:48:42 AM2/24/15
to al...@googlegroups.com


On Tuesday, February 24, 2015 at 8:15:32 AM UTC, Daniel wrote:
Hi there,

I have a problem with fsck on my sda2 drive. I keep getting the error message "Couldn't unmount /mnt/sda2 for checking it. Please stop services first."

That's 'aufs' that is using sda2. You have Alt-F packages installed there, right? Unfortunately it is not always possible to unmount aufs.

From the command line (using telnet or dropbear, *not* openssh), after stopping all services , try 'aufs.sh -u'. If it succeeds, you can now fsck. If it doesn't work, try doing the above right after a reboot.



I did the stopp all services command in sytem -> utilities and the rcall status gives the following info:

rcall status
root: user stopped.
... 
root: syslogd stopped

Still no luck, is there a way to force fsck on reboot?

Unfortunately no. I've been thinking on that during lunch and...

-Add a 'fsck on reboot' button at System->Utilities, which saves fsckonreboot=yes on /etc/misc.conf
-At boot, after reading settings, if fsckonreboot exists create /tmp/fschonreboot and remove it from misc.conf
-hot_aux sees if /tmp/fsckonrebbot exists and proceeds accordingly

Can you please add this to the Features Requests Ticket?

rcS loads settings

Thanks
Daniel

Daniel

unread,
Feb 25, 2015, 4:29:15 AM2/25/15
to al...@googlegroups.com
Hi,

...
From the command line (using telnet or dropbear, *not* openssh), after stopping all services , try 'aufs.sh -u'. If it succeeds, you can now fsck. If it doesn't work, try doing the above right after a reboot.
...

Worked like a charm :-)

I also created that featurerequest you mentioned.

Thanks for the help

Daniel
Reply all
Reply to author
Forward
0 new messages