public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: Bob Slawson <bslawson@frontiernet.net>
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64] [OT] Drive asignments for sata drives
Date: Mon, 12 Mar 2007 13:42:08 -0400	[thread overview]
Message-ID: <45F590F0.1020409@frontiernet.net> (raw)
In-Reply-To: <45F5823D.2080708@singnet.com.sg>

P.V.Anthony wrote:
> Is there a way to fix the drive assignment for sata drives?
>
> Currently in the fstab the boot and root partitions are set and 
> working great. Once a new sata drive connected, the drive assignments 
> change. Initially the / (root) is /dev/sda2. Once another sata drive 
> is added the / (root) becomes say /dev/sdb2.
>
> Is there any way that this can be fixed even when more drives are 
> added or removed?
Use disk labels to symbolically name partitions so that you don't need 
to use explicit special device names.

`tune2fs -L <label name>' adds a disk label to a partition (at least for 
ext2/3 file systems).

Then in /etc/fstab use entries along these lines (assuming you've 
labeled the boot partition 'BOOT' and the root partition 'ROOT'...) :

#------------------- (example) -----------------

LABEL=BOOT        /boot    ext2    defaults    0 2
LABEL=ROOT        /        ext3    defaults    0 1

LABEL=fortknox    /precious_data   ext3   defaults,ro   0 1

# use LABELs for pluggable media since the special devices may change
# MS DOS disk labels must be 11 characters and all upper case
LABEL=Backup            /mnt/Backup             auto    
defaults,users,noauto   0 0

#------------------ (/example) -----------------


I'd guess that there are ways to add labels to non-ext2/3 file systems 
(reiserfs, xfs, ...) but I haven't tried.

As always: read `man tune2fs' and `man mount'.

BobS

PS. This isn't an amd64 issue.


-- 
gentoo-amd64@gentoo.org mailing list



  parent reply	other threads:[~2007-03-12 17:44 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-12 16:39 [gentoo-amd64] Drive asignments for sata drives P.V.Anthony
2007-03-12 16:52 ` Olivier Crête
2007-03-12 17:00 ` Bob Sanders
2007-03-12 17:11   ` Marcus D. Hanwell
2007-03-12 17:21     ` dustin
2007-03-12 18:16       ` Marcus D. Hanwell
2007-03-12 17:53     ` [gentoo-amd64] " Bernhard Auzinger
2007-03-13  9:08       ` P.V.Anthony
2007-03-13 14:06         ` dustin
2007-03-13 17:31           ` Peter Humphrey
2007-03-13 18:33             ` dustin
2007-03-13 18:45             ` Duncan
2007-03-13 19:48               ` ducasse.isidore
2007-03-13 20:07                 ` Thomas Rösner
2007-03-15  1:35                 ` Florian D.
2007-03-15  2:18                   ` ducasse.isidore
2007-03-13 19:53               ` ducasse.isidore
2007-03-13 19:59                 ` dustin
2007-03-13 20:04                   ` David Pyke
2007-03-12 17:42 ` Bob Slawson [this message]
2007-03-12 17:50   ` [gentoo-amd64] [OT] " Bob Sanders

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=45F590F0.1020409@frontiernet.net \
    --to=bslawson@frontiernet.net \
    --cc=gentoo-amd64@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