WETEK Play

We are looking for a person who can help us with writing articles and texts for our website. If you are familiar with OpenELEC and Kodi and you like writing articles (in english) please contact sraue via PM or via our IRC chat.

Welcome, Guest
Username: Password: Remember me

TOPIC: Unmount disk so I can fsck or mkfs it?

Unmount disk so I can fsck or mkfs it? 2 years 10 months ago #1

  • Mehuge
  • Mehuge's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
How do I stop automatic re-mounting of a usb disk so that I can either fsck or mkfs it?

Every time I unmount the disk, the blasted OS remounts it again.
The administrator has disabled public write access.

Re: Unmount disk so I can fsck or mkfs it? 2 years 10 months ago #2

  • lrusak
  • lrusak's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4127
  • Thank you received: 656
  • Karma: 583
kill xbmc perhaps?

you can do something like this from SSH
touch /var/lock/xbmc.disabled
killall -9 xbmc.bin
then after you're done copying or whatever.
rm /var/lock/xbmc.disabled
<-- Hit me with some karma if I've helped you out :)

The administrator has disabled public write access.
The following user(s) said Thank You: chrisnofneur

Re: Unmount disk so I can fsck or mkfs it? 2 years 10 months ago #3

  • Mehuge
  • Mehuge's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Thanks for the tip, I will give it a try :)

btw (unix tip), kill -9 is evil, as it does not allow a process to close down properly. kill -1 (SIGHUP) or kill -15 (SIGTERM) are the correct ways to terminate a process.

-1 works for xmbc I have found (-15 didnt when I tried it). Only use -9 as a last resort if a process is stuck and won't respond to the other signals.

As for the re-mounting behaviour, its a bug and has been fixed in a recent patch. It was supposed to only re-mount optical disks but was being done to all media.
Last Edit: 2 years 10 months ago by Mehuge.
The administrator has disabled public write access.

Re: Unmount disk so I can fsck or mkfs it? 2 years 10 months ago #4

  • lrusak
  • lrusak's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4127
  • Thank you received: 656
  • Karma: 583
yea it's fine
<-- Hit me with some karma if I've helped you out :)

The administrator has disabled public write access.
Moderators: lrusak