Author Topic: Disabling auto-mount for a sick usb drive  (Read 739 times)

Offline Village Idiot

  • Hero Member
  • *****
  • Posts: 2345
  • Have A Nice Day.
Disabling auto-mount for a sick usb drive
« on: June 29, 2011, 12:55:43 AM »
Hi.

I found this as a method to prevent auto-mounting, but I believe it is for kde.
http://www.pclinuxos.com/forum/index.php/topic,73248.0.html


I am using lxde (latest, full) and I have someone's drive that contains an injured ext3 or ext4 FS. I want to plug it in without it mounting so I can get to fixing it. Tired of booting a live cd just to accomplish this.

 :)
$ fortune
No Microsoft products were used in any way for the creation of this message.
If you are using a Microsoft product to view it, BEWARE! - I'm not
responsible for any harm you might encounter as a result.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Disabling auto-mount for a sick usb drive
« Reply #1 on: June 29, 2011, 01:12:49 AM »
PCManFM is set to not automount by default in 2011.06. For earlier versions, PCManFM > Edit > Preferences > Volume Management tab > untick "Mount mountable volumes automatically on program startup."


Offline Village Idiot

  • Hero Member
  • *****
  • Posts: 2345
  • Have A Nice Day.
Re: Disabling auto-mount for a sick usb drive
« Reply #2 on: June 29, 2011, 01:40:29 AM »
Hi Neal.

Thanks. That seems to have done it. I think though the option below that one "mount removable media when inserted" is the one I want. Anyhow I unchecked all three options for good measure.

Thanks again, maestro!

 :)

$ fortune
No Microsoft products were used in any way for the creation of this message.
If you are using a Microsoft product to view it, BEWARE! - I'm not
responsible for any harm you might encounter as a result.

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Disabling auto-mount for a sick usb drive
« Reply #3 on: June 29, 2011, 01:50:29 AM »
Even if it does automount when plugged in, you can unmount it via one click in PCManFM.

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Disabling auto-mount for a sick usb drive
« Reply #4 on: June 29, 2011, 01:53:23 AM »
Yep. Or right click the drive's entry in the left side menu and choose Unmout from the drop menu. Easy.

edited for clarity
« Last Edit: June 29, 2011, 02:01:06 AM by Neal »

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Disabling auto-mount for a sick usb drive
« Reply #5 on: June 29, 2011, 01:58:12 AM »
I just click the upwards pointing icon shown in the lower right corner.


Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Village Idiot

  • Hero Member
  • *****
  • Posts: 2345
  • Have A Nice Day.
Re: Disabling auto-mount for a sick usb drive
« Reply #6 on: June 29, 2011, 02:30:05 AM »
Even if it does automount when plugged in, you can unmount it via one click in PCManFM.



Yes of course. And normally I don't mind the automount feature esp if I bother to change the partition's label because that is what is mounted on /media/label rather than the super cryptic /media/disk-x  ::)

I wanted this disabled so that the file system was not messed around with in any way before I got a chance to fsck it.

 :)

Thanks guys!

$ fortune
No Microsoft products were used in any way for the creation of this message.
If you are using a Microsoft product to view it, BEWARE! - I'm not
responsible for any harm you might encounter as a result.