Re: Mapping disks to fixed mountpoints

From: Melinda Taylor <melinda_at_phys.unsw.edu.au>
Date: Fri 12 Mar 2004 - 07:04:47 CET
Message-ID: <405152FF.9050404@phys.unsw.edu.au>

Hi Raimund,

I believe, at least in redhat, you can just give each disk a label using
the "e2label"
command and then set the mount point in /etc/fstab using that label.
That was it doesn't matter if the device changes from /dev/sda tio /dev/sdd
as the mountpoint is controlled by the ext2 label.

ie On my system my raid disk (/dev/sdg1) is mounted via labels :

        [root@astro melinda]# e2label /dev/sdf1
        /data0
        [root@astro melinda]# e2label /dev/sdf2
        /data1

 in /etc/fstab I have lines like:

LABEL=/data0 /data0 ext3 defaults 1 2
LABEL=/data1 /data1 ext3 defaults 1 2

to mount the disks and it doesn't matter if I remove devices further up
in my scsi chain.

Hope that helps,

melinda

Raimund Eimann wrote:

>Hi,
>
>when I connect several FireWire disks, they're available through
>
>/dev/sda
>/dev/sdb
>...
>
>where sda is the disk connected first, sdb the disk I connected second and so
>on. Is there a way to identify the disks in a way so that certain disks are
>always available through a previously specified device? F.i., on of my disks
>should always be accessible through /dev/sdd, no matter if I connected three
>other disks before...
>
>Would appreciate a short description of how to do that (I'm sure it's possible
>somehow) or a pointer to the appropriate docs...
>
>Thanks,
>Raimund
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: IBM Linux Tutorials
>Free Linux tutorial presented by Daniel Robbins, President and CEO of
>GenToo technologies. Learn everything from fundamentals to system
>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
>_______________________________________________
>mailing list Linux1394-user@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/linux1394-user
>
>

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
mailing list Linux1394-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux1394-user
Received on Fri Mar 12 07:09:27 2004

This archive was generated by hypermail 2.1.8 : Mon 02 May 2005 - 09:16:47 CEST