Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Sep 2010 17:05:26 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        geom@FreeBSD.org, mav@FreeBSD.org
Subject:   Determinig removable devices in shell scripts?
Message-ID:  <20100907170526.834646wxfkh4sou8@webmail.leidinger.net>

next in thread | raw e-mail | index | archive | help
Hi,

is there an easy way to determine in a shell script if a device  
(da/ada) is removable (USB memory stick, eSATA connection)? I was  
thinking more or less about something like "sysctl kern.disks".

Bye,
Alexander.

-- 
Pardon me, but do you know what it means to be TRULY ONE with your
BOOTH!

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100907170526.834646wxfkh4sou8>