FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 05-24-2008, 11:05 AM
"Paul F. Johnson"
 
Default Mounting drives by label

Hi,

I've labelled my drives using e2label and they're now being recognised as
home_drive, audio_drive and devel_drive. I can only sometimes mount them
using fstab as it looks like the labels aren't being used, but the last /dev/
sd* is (for example, /dev/sde1 might be audio_drive, but then on the next
boot, /dev/sdf1 is audio_drive but then the system fails on booting with the
error that /dev/sde1 is mounted).

There is nothing in /etc/mtab, but the problem seems to occur when the system
is rebooted after the shutdown procedure didn't work correctly.

Any ideas on this or what I should file it under with BZ?

TTFN

Paul

--
Programmer, GirlGamer
www.girlgamer.com

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 05-24-2008, 11:19 AM
"Ahmed Kamal"
 
Default Mounting drives by label

I think sata drives are not meant to be persistent. Replace /dev/sdX in your fastab, with LABEL=audio_drive or so. This will mount the drives by label
Regards

On Sat, May 24, 2008 at 2:05 PM, Paul F. Johnson <paul@all-the-johnsons.co.uk> wrote:

Hi,



I've labelled my drives using e2label and they're now being recognised as

home_drive, audio_drive and devel_drive. I can only sometimes mount them

using fstab as it looks like the labels aren't being used, but the last /dev/

sd* is (for example, /dev/sde1 might be audio_drive, but then on the next

boot, /dev/sdf1 is audio_drive but then the system fails on booting with the

error that /dev/sde1 is mounted).



There is nothing in /etc/mtab, but the problem seems to occur when the system

is rebooted after the shutdown procedure didn't work correctly.



Any ideas on this or what I should file it under with BZ?



TTFN



Paul



--

Programmer, GirlGamer

www.girlgamer.com



--

fedora-devel-list mailing list

fedora-devel-list@redhat.com

https://www.redhat.com/mailman/listinfo/fedora-devel-list



--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 05-24-2008, 12:38 PM
Harald Hoyer
 
Default Mounting drives by label

Ahmed Kamal wrote:
I think sata drives are not meant to be persistent. Replace /dev/sdX in
your fastab, with LABEL=audio_drive or so. This will mount the drives by
label

Regards

On Sat, May 24, 2008 at 2:05 PM, Paul F. Johnson
<paul@all-the-johnsons.co.uk <mailtoaul@all-the-johnsons.co.uk>> wrote:


Hi,

I've labelled my drives using e2label and they're now being
recognised as
home_drive, audio_drive and devel_drive. I can only sometimes mount them
using fstab as it looks like the labels aren't being used, but the
last /dev/
sd* is (for example, /dev/sde1 might be audio_drive, but then on the
next
boot, /dev/sdf1 is audio_drive but then the system fails on booting
with the
error that /dev/sde1 is mounted).

There is nothing in /etc/mtab, but the problem seems to occur when
the system
is rebooted after the shutdown procedure didn't work correctly.

Any ideas on this or what I should file it under with BZ?

TTFN

Paul

--
Programmer, GirlGamer
www.girlgamer.com <http://www.girlgamer.com>

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com <mailto:fedora-devel-list@redhat.com>
https://www.redhat.com/mailman/listinfo/fedora-devel-list




/dev/disk

$ find /dev/disk
/dev/disk
/dev/disk/by-label
/dev/disk/by-label/Recoveryx20Partition
/dev/disk/by-label/VAIO
/dev/disk/by-label/x2fboot
/dev/disk/by-uuid
/dev/disk/by-uuid/FC30-3DA9
/dev/disk/by-uuid/dc173540-b6c2-40cd-b167-aad6fd6f3668
/dev/disk/by-uuid/9ECCDDF0CCDDC327
/dev/disk/by-uuid/4C54A5A254A58EF0
/dev/disk/by-uuid/a11cd600-3f6b-4c3d-96bf-3e12f16f6e5f
/dev/disk/by-id
/dev/disk/by-id/usb-Sony_PRS-505.UC:SD_080046100067D048-0:2-part1
/dev/disk/by-id/usb-Sony_PRS-505.UC:SD_080046100067D048-0:2
/dev/disk/by-id/usb-Sony_PRS-505.UC:MS_080046100067D048-0:1
/dev/disk/by-id/usb-Sony_PRS-505.UC_080046100067D048-0:0
/dev/disk/by-id/ata-FUJITSU_MHV2200BT_NY06T6825BW7-part5
/dev/disk/by-id/scsi-SATA_FUJITSU_MHV2200_NY06T6825BW7-part5
/dev/disk/by-id/ata-FUJITSU_MHV2200BT_NY06T6825BW7-part1
/dev/disk/by-id/scsi-SATA_FUJITSU_MHV2200_NY06T6825BW7-part1
/dev/disk/by-id/ata-FUJITSU_MHV2200BT_NY06T6825BW7-part2
/dev/disk/by-id/scsi-SATA_FUJITSU_MHV2200_NY06T6825BW7-part2
/dev/disk/by-id/ata-FUJITSU_MHV2200BT_NY06T6825BW7-part3
/dev/disk/by-id/scsi-SATA_FUJITSU_MHV2200_NY06T6825BW7-part3
/dev/disk/by-id/ata-FUJITSU_MHV2200BT_NY06T6825BW7-part4
/dev/disk/by-id/scsi-SATA_FUJITSU_MHV2200_NY06T6825BW7-part4
/dev/disk/by-id/ata-FUJITSU_MHV2200BT_NY06T6825BW7
/dev/disk/by-id/scsi-SATA_FUJITSU_MHV2200_NY06T6825BW7
/dev/disk/by-path
/dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:2-part1
/dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:2
/dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:1
/dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0
/dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part5
/dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part1
/dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part2
/dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part3
/dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0-part4
/dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0
/dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:0:0

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 
Old 05-24-2008, 12:41 PM
John Reiser
 
Default Mounting drives by label

> I've labelled my drives using e2label and they're now being recognised as
> home_drive, audio_drive and devel_drive. I can only sometimes mount them
> using fstab as it looks like the labels aren't being used, but the last /dev/
> sd* is (for example, /dev/sde1 might be audio_drive, but then on the next
> boot, /dev/sdf1 is audio_drive but then the system fails on booting with the
> error that /dev/sde1 is mounted).
>
> There is nothing in /etc/mtab, but the problem seems to occur when the system
> is rebooted after the shutdown procedure didn't work correctly.
>
> Any ideas on this or what I should file it under with BZ?

If /etc/fstab contains lines such as
/dev/sdf1 /dir1 ext3 defaults 2 2
then you are at the mercy of the random order in which the system recognizes
drives (sde, sdf, etc.) It is somewhat curious, but not necessarily a bug,
if the order changes upon reboot after a failed shutdown (and no hardware changes.)

If /etc/fstab contains lines such as
LABEL=audio_drive /dir1 ext3 defaults 2 2
then the first partition with label "audio_drive" should be mounted as /dir1.
It is up to you to keep the labels unique. Duplicate labels commonly occur
after moving drives from system to system, because neither people nor anaconda
reliably choose unique names ("/", "/1", "/home", "/boot", etc.)

If /etc/fstab contains lines such as
UUID=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /dir1 ext3 defaults 2 2
then the first partition with the specified UUID should be mounted as /dir1.
There is only a *very* small probability of collision in UUID, as long as
you don't copy partitions with a "blind" copy command such as 'cp' or 'dd'.
"tune2fs -l /dev/sdf1" shows the UUID of the ext3 filesystem in the
partition /dev/sdf1.

--

--
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list
 

Thread Tools




All times are GMT. The time now is 09:38 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org