You are not logged in.

#1 2010-06-02 05:59:34

cyberius
Member
From: Germany
Registered: 2008-08-30
Posts: 97

Mount all devices automatically at boot - how to do it?

Hello,

* I use compiz as standalone window manager and start it with

exec ck-launch-session fusion-icon

* I'm in the groups

lp wheel hal video audio optical storage power users

* my rc.conf loads those daemons

DAEMONS=(syslog-ng network hal netfs crond alsa)

* I read http://wiki.archlinux.org/index.php/Udev and copied those rules from there to /etc/udev/rules.d/

Mount under /media; use partition label if present (File: /etc/udev/rules.d/11-media-by-label-auto-mount.rules)
Mount under /media; use partition label if present; ntfs-3g (File: /etc/udev/rules.d/10-my-media-automount.rules)
Mount SD cards (File: /etc/udev/rules.d/11-sd-cards-auto-mount.rules)

Problem: I have those windows partitions:

ls /dev/sd*
/dev/sda  /dev/sda1  /dev/sda2  /dev/sdb  /dev/sdb1  /dev/sdb2  /dev/sdb3

I can mount them manually with e.g.

sudo mount -t ntfs-3g /dev/sdb1 /mnt/dl/

But i want all my partitions to be mounted allready when I log in, so I can acess them with every file manager I want. This doesn't work! (Nothing in /media or /mnt on boot, Why?) Also every usb-harddrive I attach should mount automaticelly.

Why doesn't it work? Do you need more info? Thanks

Offline

#2 2010-06-02 07:06:02

benob
Member
Registered: 2008-11-11
Posts: 187

Re: Mount all devices automatically at boot - how to do it?

I don't know why it doesn't work, but to mount them at boot time, I'd put them in /etc/fstab. It would look like this:

/dev/sda1              /media/windows1       ntfs-3g    defaults                0      1

You may need to change "defaults" to something more appropriate, and add the module for ntfs to your rc.conf

Offline

#3 2010-06-02 12:07:47

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Mount all devices automatically at boot - how to do it?

Search the wiki for 'Hal' and then read the entire article especially the Troubleshooting part. The information is out there.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#4 2010-06-02 14:27:35

andonuts_388
Member
Registered: 2010-05-23
Posts: 15

Re: Mount all devices automatically at boot - how to do it?

Edit your /etc/fstab and add those devices. You can automatically do this for ntfs partitions by first installing ntfs-3g if you already haven't:

pacman -S ntfs-3g

then installing ntfs-config which is available from the AUR

Run ntfs-config and configure the ntfs drives detected.

Offline

Board footer

Powered by FluxBB