Re: bios disk numbers and device names
From: Andrea Campi (andrea+freebsd_stable_at_webcom.it)
Date: 11/29/04
- Previous message: Daniel O'Connor: "Re: bios disk numbers and device names"
- In reply to: Michael Grant: "Re: bios disk numbers and device names"
- Next in thread: Michael Grant: "Re: bios disk numbers and device names"
- Reply: Michael Grant: "Re: bios disk numbers and device names"
- Reply: Daniel O'Connor: "Re: bios disk numbers and device names"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Nov 2004 13:39:58 +0100 To: Michael Grant <mg-fbsd3@grant.org>
On Mon, Nov 29, 2004 at 07:21:00AM -0500, Michael Grant wrote:
> Has anyone thought about this problem? Is there some spare space in
> the label that could be used for a device name that, if set, could
> be used in place of (or an alias for) a name like da0?
GEOM_LABEL is what you're looking for. Check the glabel(8) man
page. In a nutshell, you'd do this:
tunefs -L log /dev/ad1s1a
tunefs -L db /dev/da4s1a
tunefs -L www /dev/da4s1a
...
mount /dev/ufs/log /mnt/log
mount /dev/ufs/db /mnt/db
mount /dev/ufs/www /mnt/www
(you get the idea). Obviously you can move use the /dev/ufs/*
devices in fstab as well.
If later on you move the filesystems to a different device while
retaining the label (which means no tar, you have to use dd or
dump/restore), everything works.
Hope it helps. Bye,
Andrea
--
Give a man a fish and you feed him for a day;
teach him to use the Net and he won't bother you for weeks.
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
- Previous message: Daniel O'Connor: "Re: bios disk numbers and device names"
- In reply to: Michael Grant: "Re: bios disk numbers and device names"
- Next in thread: Michael Grant: "Re: bios disk numbers and device names"
- Reply: Michael Grant: "Re: bios disk numbers and device names"
- Reply: Daniel O'Connor: "Re: bios disk numbers and device names"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: use of label in fstab
... label ublinux edited fstab to contain: ... I made another partition /dev/sda5
and used e2label to label it dyndata, ... On bootup now, the first partition mounts
correctly, but the second gives ... ~# mount -L dyndata /dyntest ... (Ubuntu) - Re: lvm lvrename on Fedora Core 4
... >> On my shiny new FC4 system, mount reports this device to be mounted on ...
> need to rename the LVs once the VG is renamed. ... LVs with the same label
this still will be a problem. ... (Fedora) - Problems mounting by label
... Using the latter defeats the purpose however, since I want eventually to mount things
to a different mount point depending on their label. ... The data for partition
1 is: ... I also used glabel to try to get a label on it, but couldn't see how I could
use the glabel information for mounting. ... (freebsd-questions) - Re: [opensuse] Volume Mount Sequence - RESOLVED
... external drives mount to the same mount point every time? ... Try Yast, System,
Partitioner, and give them a label, and mount them by ... external drives),
then let hal remount. ... (SuSE) - UFS2 ACL problems on root (boot) partition
... setfacl: acl_get_filefailed: Operation not supported ... tunefs: maximum
blocks per file in a cylinder group: 2048 ... tunefs: volume label: ... I have rebooted
after enabling -a, and all commands are being run as root on ... (freebsd-questions)