From: "Dan Cowsill" <danthehat@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [SOLVED] External hard disk doesn't mount on boot
Date: Thu, 20 Mar 2008 13:25:11 -0500 [thread overview]
Message-ID: <4ef07b8c0803201125u1bc3d60ai703c2f10d31511da@mail.gmail.com> (raw)
In-Reply-To: <4ef07b8c0803201113y2fb5e168p5ba0d483af6c2e50@mail.gmail.com>
On Thu, Mar 20, 2008 at 1:13 PM, Dan Cowsill <danthehat@gmail.com> wrote:
>
> 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
>
Yeh, I wasn't being specific enough with my rule. This rule (revised)
works perfectly:
KERNEL=="sda1", RUN+="/bin/mount -t ntfs-3g /dev/sda1 /home/dcowsill/usb"
Thanks Alan, for putting me on the right track. Also, much
appreciation goes to Greg Kroah-Hartman, who wrote udevtest!
Cheers
--
Dan Cowsill
http://www.danthehat.net
--
gentoo-user@lists.gentoo.org mailing list
prev parent reply other threads:[~2008-03-20 18:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-20 14:22 [gentoo-user] External hard disk doesn't mount on boot Dan Cowsill
2008-03-20 16:01 ` Alan McKinnon
2008-03-20 17:21 ` Dan Cowsill
2008-03-20 17:22 ` Dan Cowsill
2008-03-20 17:49 ` Alan McKinnon
2008-03-20 18:13 ` Dan Cowsill
2008-03-20 18:22 ` Mark Knecht
2008-03-20 18:27 ` [gentoo-user] [SOLVED] " Dan Cowsill
2008-03-20 18:25 ` Dan Cowsill [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ef07b8c0803201125u1bc3d60ai703c2f10d31511da@mail.gmail.com \
--to=danthehat@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox