Author Topic: Disabling autofs for usb drives  (Read 5920 times)

ranpow

  • Regular Poster
  • **
  • Posts: 21
    • View Profile
Disabling autofs for usb drives
« on: December 20, 2012, 08:09:46 pm »
Is there any simple way to disable the automatic automaounting of external usb drives,
I have issue installing external USB drive. After playing with it for an hour no luck
So i guees its not 100% stable thus will need some hacking
I guess it will need mysql updating but then noticed the pnp functions so its rather tricky

I know. Its big, its complicated,its working :) but its not working for me.

Any insight on that would be great.


SBCC

  • Guru
  • ****
  • Posts: 164
    • View Profile
Re: Disabling autofs for usb drives
« Reply #1 on: December 21, 2012, 02:24:54 am »
ranpow

When you are asked if you want to use the device just answer no never. Device will be ignored from then on.

ranpow

  • Regular Poster
  • **
  • Posts: 21
    • View Profile
Re: Disabling autofs for usb drives
« Reply #2 on: December 21, 2012, 09:20:11 am »
Ignored is not exactly good. i actualy need to use it(to have movies etc..) but just mount it directly
Maybee even create the needed symbloic link to /home/video....

Tnx,

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Disabling autofs for usb drives
« Reply #3 on: December 21, 2012, 01:18:33 pm »
That's exactly what should happen when you stick USB stick in.

ranpow

  • Regular Poster
  • **
  • Posts: 21
    • View Profile
Re: Disabling autofs for usb drives
« Reply #4 on: December 21, 2012, 02:12:24 pm »
I suppose, but in my case it didnt, it added the drive cuase i found it on the list of devices but the mount was broekn
and the mounted folder is not accesible it just stack when you try to access it
so i thought of disabling this, but it doesnt matter anymore
I fixed that by deleting the ntfs partition and then it created ext3 whice working ok

tnx,

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Disabling autofs for usb drives
« Reply #5 on: December 21, 2012, 07:00:56 pm »
Patches to the pluto storage devices layer to better handle NTFS are always welcome.

-Thom

ranpow

  • Regular Poster
  • **
  • Posts: 21
    • View Profile
Re: Disabling autofs for usb drives
« Reply #6 on: December 22, 2012, 10:37:20 am »
Hi, im thinking -o force will solve that(if its running normal mount ntfs-3g ..)
I had once similar issues on my ubuntu with usb/ntfs -o force fixed it, i guess its not very helthy
to the disc cause it didnt mount for a resone :)


 

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: Disabling autofs for usb drives
« Reply #7 on: December 22, 2012, 05:26:12 pm »
It just sounds like the ntfs/fat drive is not clean. I would stick it in a windows machine and fix that.
I never quit... I just ping out.

ranpow

  • Regular Poster
  • **
  • Posts: 21
    • View Profile
Re: Disabling autofs for usb drives
« Reply #8 on: December 25, 2012, 05:34:22 pm »
I tried that and at the end i end up converting the FS to EXT3 but then other issue came up
It discover a new drive every hour or so even when its allready installed
Then noticed it installed two volumes for sdb and sdb1
Very not stable this thing ill lock it up later maybbe ill find something
What langauge its in(the automount script)?

Tnx,

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Disabling autofs for usb drives
« Reply #9 on: December 26, 2012, 12:13:29 am »
It is a shell script, located at /etc/auto.plutoStorageDevices

-Thom