From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.54)
	id 1FPXJh-0006TY-0i
	for garchives@archives.gentoo.org; Sat, 01 Apr 2006 04:02:25 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k3141op4021675;
	Sat, 1 Apr 2006 04:01:50 GMT
Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.188])
	by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k313vDxY011763
	for <gentoo-user@lists.gentoo.org>; Sat, 1 Apr 2006 03:57:14 GMT
Received: by nproxy.gmail.com with SMTP id n29so741726nfc
        for <gentoo-user@lists.gentoo.org>; Fri, 31 Mar 2006 19:57:13 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=iFccZ9fjmqfafBohMvOUxsVHPLCZA+ZnjPPQhfkLqysfchcdgzhT0oTUWyqoJObmt2pGye1BD9N7FBsXi+heS0xuksSa8GLS/6qThemul2MzseecyEVYmAc8vhkQvw96YdCGROmvJWbu2n4UMHxQMd2No3ysrvg6CTGvIUhhgfs=
Received: by 10.48.246.8 with SMTP id t8mr776233nfh;
        Fri, 31 Mar 2006 19:57:13 -0800 (PST)
Received: by 10.48.254.1 with HTTP; Fri, 31 Mar 2006 19:57:13 -0800 (PST)
Message-ID: <ac49f3900603311957v31ea68b5r46aa88028115ff84@mail.gmail.com>
Date: Sat, 1 Apr 2006 12:57:13 +0900
From: Mait <mattengi@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Mounting USB Flash Drive
In-Reply-To: <e5a3e9ac0603311834i3f2e69d9ye688d0ee71c6dadb@mail.gmail.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Disposition: inline
References: <e5a3e9ac0603311559l547b0000kdde777a07de5619c@mail.gmail.com>
	 <442DE779.3080108@gmail.com>
	 <e5a3e9ac0603311642iba50b5fy5c60d79fbebdb506@mail.gmail.com>
	 <442DEED3.9070306@gmail.com>
	 <e5a3e9ac0603311834i3f2e69d9ye688d0ee71c6dadb@mail.gmail.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by robin.gentoo.org id k313vDxY011763
X-Archives-Salt: 24e2b14d-51fc-415b-9761-6303a1a97a6a
X-Archives-Hash: 2075d91e328477097540dd0c0493412c

basic method :
$ mount [-t fstype...] [-o options...] /dev/sda1 /mountpoint
$ ls /mountpoint

convenient way :
add entry in /etc/fstab,
/dev/sda1    /mountpoint    fstype...    options....

then, you can mount this way
$ mount /dev/sda1
or,
$ mount /mountpoint

more convenient, modern way :
udev, hotplug, hald, dbus, gnome-volume-manager(or similiar thing in KDE) ...

just plug in USB drive, and that will appear in your
desktop(background, places menu, file-manager...)

http://www.gentoo.org/doc/en/udev-guide.xml
http://gentoo-wiki.com/HOWTO_Customizing_UDEV#Terminology
http://gentoo-wiki.com/HOWTO_gnome-volume-manager
http://gentoo-wiki.com/HOWTO_D-BUS%2C_HAL%2C_KDE_media:/

Hey! don,t hurry relax ~ : )

It's also useful in traditional way
$ man mount
$ man fstab

--
Mait

2006/4/1, Lord Sauron <lordsauronthegreat@gmail.com>:
> On 3/31/06, b.n. <brullonulla@gmail.com> wrote:
> > > I can just nano /etc/fstab and add /dev/sda1?
> >
> > Not only you can: you actually have to! :)
> > Check the Gentoo handbook for details. When I did install Gentoo (in
> > december 2004), I had to write *all* my fstab by hand, I don't know if
> > now it's different.
>
> Well, the automated installer did most of it for me, so I never got
> the exposure to it.
>
> > > I thought fstab was
> > > generated by the machine or something, and that it isn't a terribly
> > > good idea to edit it.
> >
> > A fstab file is ususally generated by the operating system installer,
> > but, being it a plain text configuration file, it is thought to be
> > editable by root. It has a pretty straightforward syntaxis.
>
> Yeah, didn't take too long for me to figure out how to word what I
> wanted.  Only a few tries and one reboot (don't ask).
>
> > The machine-generated thing you shouldn't touch, instead, is /etc/mtab.
> > This one contains the *current* state of mounted devices.
>
> Okay.  That makes sense.
>
> > > I don't have a /mnt directory.  Should I just create one?
> >
> > Well, you have to create an empty directory to use as a mountpoint. I
> > create them inside a /mnt directory, but that's just "historical habit".
> > Many distro I see around now use /media as a root directory for
> > removable media mountpoints. Nothing stops you from using
> > /home/sauron/whatever, although I feel symlinks are a cleaner way to
> > access mount points from your home...
>
> I made /mnt/sda1, 'cuz that's what I used about 4 years ago on a Red
> Hat Linux box.  It was really messing me up with all this /media stuff
> when I used Kubuntu.
>
> > > No, I had to manually create a mount point via the GUI and then enable
> > > the thing and all this stuff.  Then KDE just looked at /media and
> > > slapped that on my desktop.  I mounted my windows partition (back when
> > > I had one) on /media so that I could have that on my desktop too.
> >
> > That's the same of writing on the fstab, but managed by a gui instead of
> > done by hand (editing fstab is really easy once you manage the logic of it).
>
> Yeah, I can now see what the GUI did.  From my experience with Qt I
> can safely say it was harder to make the GUI than to do it by hand.
>
> --
> ========== GCv3.12 ==========
> GCS d-(++) s+: a? C++ UL+>++++ P+
> L++ E--- W+(+++) N++ o? K? w--- O? M+
> V? PS- PE+ Y-(--) PGP- t+++ 5? X R tv-- b+
>                 DI+++ D+ G e* h- !r !y
> ========= END GCv3.12 ========
>
> --
> gentoo-user@gentoo.org mailing list
>
>

-- 
gentoo-user@gentoo.org mailing list