Date: Sun, 22 Jun 2008 11:13:15 +0200 From: Roland Smith <rsmith@xs4all.nl> To: RW <fbsd06@mlists.homeunix.com> Cc: freebsd-questions@freebsd.org Subject: Re: shellscript conditional to check for external disk Message-ID: <20080622091315.GA43950@slackbox.xs4all.nl> In-Reply-To: <20080622002207.7fc1f697@gumby.homeunix.com.> References: <200806212144.09925.heroh@gmx.de> <20080621224731.GA26997@slackbox.xs4all.nl> <20080622002207.7fc1f697@gumby.homeunix.com.>
next in thread | previous in thread | raw e-mail | index | archive | help
--UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 22, 2008 at 12:22:07AM +0100, RW wrote: > On Sun, 22 Jun 2008 00:47:31 +0200 > Roland Smith <rsmith@xs4all.nl> wrote: >=20 >=20 > > Use glabel(8) to give the device an unique label. There is no telling > > which device /dev/da0s1d is pointing to! After labeling you can check > > for /dev/<fstype>/<yourlabel>, which should be unique. >=20 > I think that should be: >=20 > /dev/label/<yourlabel> That is only for non-filesystem labels, according to glabel(8): "This class also provides volume label detection for file systems. Tho= se labels cannot be set with glabel, but must be set with the appropriate file system utility, e.g. for UFS the file system label is set with tunefs(8). Currently supported file systems are: o UFS1 (directory /dev/ufs/). o UFS2 (directory /dev/ufs/). o MSDOSFS (FAT12, FAT16, FAT32) (directory /dev/msdosfs/). o CD ISO9660 (directory /dev/iso9660/). o EXT2FS (directory /dev/ext2fs/). o REISERFS (directory /dev/reiserfs/). o NTFS (directory /dev/ntfs/). Non file-system labels are created in the directory /dev/label/." Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --UugvWAfsgieZRqgk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkheF6oACgkQEnfvsMMhpyVWfQCgk57UgINaGPCXJ1HhIMHk0H0G O6kAoIZe8arsuaTQDCeRYVNU/6FM40ck =m8DD -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080622091315.GA43950>