What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

How to unmount entware temporarily?

mobileman88

Regular Contributor
Hi, I would like to unmount the entware USB temporarily to perform e2fsck on it, but I keep getting filesystem busy. Upon restart I am getting "EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended" . I suspect this is due to a power trip that happened at home.
 
Nevermind. I installed "lsof" found all the processes which was keeping the partition mounted, killed them, umounted and ran e2fsck. Have a good weekend
 
Hi, I trie to do the same.

lsof | grep entware > files

where entware is the mount point of my stick

then I did

cat files | awk '{print "kill " $2}' > ent.sh

./ent.sh to kill all pids linking to entware files.

but still cannot umount because it says resource is busy

am I missing something?

Thanks a lot
 
Install and use fuser:
Code:
# fuser -mv /tmp/mnt/VERBATIM
                     USER        PID ACCESS COMMAND
/tmp/mnt/VERBATIM:   admin    kernel mount /tmp/mnt/VERBATIM
                     admin      1367 F.... smbd
 
Install and use fuser:
Code:
# fuser -mv /tmp/mnt/VERBATIM
                     USER        PID ACCESS COMMAND
/tmp/mnt/VERBATIM:   admin    kernel mount /tmp/mnt/VERBATIM
                     admin      1367 F.... smbd
Where to find fuser? It is not listed as a package in entware repo ...
 
Install and use fuser:
Code:
# fuser -mv /tmp/mnt/VERBATIM
                     USER        PID ACCESS COMMAND
/tmp/mnt/VERBATIM:   admin    kernel mount /tmp/mnt/VERBATIM
                     admin      1367 F.... smbd

Thanks a lot. That perfectly worked!

Running:
>fuser -mv /tmp/mnt/entware
it reported:

/tmp/mnt/entware:
makksi kernel swap /tmp/mnt/entware/swap
makksi kernel mount /tmp/mnt/entware
makksi 1254 F..e. lighttpd
makksi 1255 ..ce. php-fcgi
makksi 1261 ...e. transmission-da
makksi 1275 ..ce. php-fcgi
makksi 1276 ..ce. php-fcgi
makksi 1953 F.... minidlna
makksi 1955 F.... minidlna
makksi 1956 F.... minidlna

Then I used -to kill all the related processes-:
>fuser -mkv /tmp/mnt/entware

Running again fuser -mv...

>fuser -mv /tmp/mnt/entware
it reported:

/tmp/mnt/entware:
makksi kernel swap /tmp/mnt/entware/swap
makksi kernel mount /tmp/mnt/entware

Then I had to do:

>swapoff /tmp/mnt/entware

Only at this point I had correctly unmount entware partition using

>umount /tmp/mnt/entware


Thanks again!
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top