You are not logged in.

#1 2008-10-07 22:43:57

FLCLFan
Member
Registered: 2008-07-21
Posts: 76
Website

Hard drive mounts on boot

Hey,

When I boot my computer I see that my other hard drive get mounted automatically. How do I stop this HDD from being auto mounted?

Thanks smile

Offline

#2 2008-10-07 22:50:49

SkonesMickLoud
Arch Linux f@h Team Member
From: The D of C
Registered: 2008-09-20
Posts: 178

Re: Hard drive mounts on boot

Edit your /etc/fstab, and add noauto to the "<options>" column of whatever drives you don't want mounted automatically.

Offline

#3 2008-10-07 23:49:05

FLCLFan
Member
Registered: 2008-07-21
Posts: 76
Website

Re: Hard drive mounts on boot

Tried it, and failed. I have never done this before so im new to this.

The drive is a NTFS drive that when mounted shows "fuseblk" as the type. Its auto mounted with HAL so theres no fstab entry for it. What would the entry look like?

Offline

#4 2008-10-08 07:23:21

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Hard drive mounts on boot

Offline

#5 2008-10-08 17:29:01

scrllock
Member
From: Michigan, USA
Registered: 2008-06-04
Posts: 19

Re: Hard drive mounts on boot

@FLCLFan:

Try something like:

/dev/sdb1    /media/usb_drive    ntfs-3g    noauto,rw,users    0 0


where /dev/sdb1 is the path to the partition (you can get this by typing mount at the CLI, and it'll show you the device path), /media/usb_drive is the path to mount point, and rw,users are the other options you might want (assuming you want to write to the drive, and for your normal user to mount/unmount it).

Offline

#6 2008-10-08 17:43:20

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: Hard drive mounts on boot

When I boot my computer I see that my other hard drive get mounted automatically. How do I stop this HDD from being auto mounted?

Assuming you run gnome, this isn't the first time this is covered;
http://bbs.archlinux.org/viewtopic.php?id=55876

EDIT: you need to supply more info when posting a topic such as this. It's easier to help when we know the variables involved.

Last edited by pelle.k (2008-10-08 17:45:29)


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#7 2008-10-12 06:41:09

FLCLFan
Member
Registered: 2008-07-21
Posts: 76
Website

Re: Hard drive mounts on boot

pelle.k wrote:

Well, arch never did automount partitions for me, other than those i specifically set up in /etc/fstab. What i think they are trying to tell you (hard to know since you didn't provide enough information), is that gnome-volume-manager is mounting those partitions during *login*.
If so, there's an easy way around that. Create /etc/hal/fdi/policy/preferences.fdi and in that file, paste this;

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->

<deviceinfo version="0.2">
<!-- 
  The following shows how to hint gnome-volume-manager and other programs 
  that honor the storage.automount_enabled_hint to not mount non-removable
  media.
-->

  <device>

    <match key="storage.hotpluggable" bool="false">
      <match key="storage.removable" bool="false">
        <merge key="storage.automount_enabled_hint" type="bool">false</merge>
      </match>
    </match>

  </device>

</deviceinfo>

Reboot (or restart services). Did that help?
http://wiki.archlinux.org/index.php/HAL … able_media

That fixed my problem big_smile

Thanks for the link!

Offline

Board footer

Powered by FluxBB