Re: Mapping disks to fixed mountpoints

From: Trond S Trondsen <trondsen_at_phys.ucalgary.ca>
Date: Fri 12 Mar 2004 - 17:12:57 CET
Message-Id: <20821A51-7440-11D8-A1ED-000A95A745E4@phys.ucalgary.ca>

I need to mount my external firewire harddisc during boot, for several
reasons. So, I put the correct LABEL line in /etc/fstab, and in
rc.sysconfig I put my "rescan-scsi-bus"... but during the boot process
I get a [FAILED] on the rescan, because the "scsi subsystem is not yet
active". Yet, I need to do this early enough in the boot sequence for
my /etc/fstab entry to "take". So, it's kind of a Catch 22 - how do
people get around this? Have a good weekend. --Trond

On 11-Mar-04, at 11:04 PM, Melinda Taylor wrote:

> 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

-------------------------------------------------------
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 17:38:47 2004

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