• Page:
  • 1

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

Unmount disk so I can fsck or mkfs it? 2 years 5 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 5 months ago #2

  • lrusak
  • lrusak's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3354
  • Thank you received: 514
  • Karma: 471
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 5 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 5 months ago by Mehuge.
The administrator has disabled public write access.

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

  • lrusak
  • lrusak's Avatar
  • OFFLINE
  • Administrator
  • Posts: 3354
  • Thank you received: 514
  • Karma: 471
yea it's fine
<-- Hit me with some karma if I've helped you out :)
The administrator has disabled public write access.
  • Page:
  • 1

Our Sponsors & Partners

 

arctic_logo
at-visions   SolNet   ThePiHut