From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-77263-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1JcPGO-0001E4-5H
	for garchives@archives.gentoo.org; Thu, 20 Mar 2008 18:13:16 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 738D3E0CB7;
	Thu, 20 Mar 2008 18:13:14 +0000 (UTC)
Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.189])
	by pigeon.gentoo.org (Postfix) with ESMTP id 436B8E0CB7
	for <gentoo-user@lists.gentoo.org>; Thu, 20 Mar 2008 18:13:14 +0000 (UTC)
Received: by rv-out-0910.google.com with SMTP id b22so507700rvf.46
        for <gentoo-user@lists.gentoo.org>; Thu, 20 Mar 2008 11:13:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=beta;
        h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        bh=478ggkDJCccO9e2WLfyvoAgc//EDo93yRPbf091cNOY=;
        b=A5pr2RwqRUb8vL407ODXETXj1HvaPm+/8VfBguM8HEkHvFiXXoDq5DH3kblOxi3NsO9fW0WuqGn9UmwyMFA/zQLBIwlvo5DRqYmURg5/KYi5h+iNssnaftYt8hdpMvo1onzOfGLjJ6NF77ah691O1rd/KS1Hrkl+7s3Vr55y458=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=n2gkb6s6Zm9tV/pzDEvJutaELI4G5GrRn+QR2qjFWe5zNNCvOH5bcuLc8s8QfJ4EydNl0uu0vymnTvMDkJzKXEG1dvsKdnkFJkxKwzG85zqiqoHlvF998v2vlSSzhM1qfQa/i6DHzd/kgQdb0ss030TAdL5kdSF5c6dFwBtFlCc=
Received: by 10.141.97.5 with SMTP id z5mr958422rvl.197.1206036792906;
        Thu, 20 Mar 2008 11:13:12 -0700 (PDT)
Received: by 10.141.212.16 with HTTP; Thu, 20 Mar 2008 11:13:12 -0700 (PDT)
Message-ID: <4ef07b8c0803201113y2fb5e168p5ba0d483af6c2e50@mail.gmail.com>
Date: Thu, 20 Mar 2008 13:13:12 -0500
From: "Dan Cowsill" <danthehat@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] External hard disk doesn't mount on boot
In-Reply-To: <4ef07b8c0803201022o7b824251p7826f22497ab1a54@mail.gmail.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <4ef07b8c0803200722o2bea74c5wa253efaf78e2d708@mail.gmail.com>
	 <200803201801.25992.alan.mckinnon@gmail.com>
	 <4ef07b8c0803201022o7b824251p7826f22497ab1a54@mail.gmail.com>
X-Archives-Salt: 5561f05a-944b-4ce7-addd-4b990927d4b5
X-Archives-Hash: a61a4db925064c5f1b5fd5bef354f5a7

On Thu, Mar 20, 2008 at 12:22 PM, Dan Cowsill <danthehat@gmail.com> wrote:
> On Thu, Mar 20, 2008 at 11:01 AM, Alan McKinnon <alan.mckinnon@gmail.com> wrote:
>  >
>
>
> > On Thursday 20 March 2008, Dan Cowsill wrote:
>  >  > Right, so I have an external USB hard drive always hooked up to my
>  >  > machine.  I've a listing in /etc/fstab to mount it at boot.
>  >  > Unfortunately, the drive does not boot because localmount can't find
>  >  > /dev/sda1.  Now, after the boot process I can find /dev/sda1 and
>  >  > mount the drive just fine, leading me to believe that localmount
>  >  > tries to mount the drive without populating /dev with USB devices.
>  >  >
>  >  > How could I resolve this?
>  >
>  >  The canonical way is of course to use udev to run a mount script as soon
>  >  as the usb drive's device is created. This is hard and requires much
>  >  googling.
>  >
>  >  The hackish, kludgy, totally not recommended method that always works is
>  >  to put a call to 'mount -a' in /etc/local.d/local.start
>  >
>  >  :-)
>  >
>  >
>  >  --
>  >  Alan McKinnon
>  >  alan dot mckinnon at gmail dot com
>  >
>  >  --
>  >  gentoo-user@lists.gentoo.org mailing list
>  >
>  >

Okay, so I wrote a new rule into rules.d that goes like this:

KERNEL=="sda", RUN+="/bin/mount -t ntfs-3g /dev/sda1 /home/dcowsill/usb"

Now, this works (sort of).  If I were to run udevstart, udev would
happily execute mount on the usb drive and all would be well.  If the
system is restarted or the device is plugged in, no joy.

So why is this only executing when I use udevstart?

-- 
Dan Cowsill
http://www.danthehat.net
-- 
gentoo-user@lists.gentoo.org mailing list