SCIENTIFIC-LINUX-USERS Archives

August 2015

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Brandon Vincent <[log in to unmask]>
Reply To:
Brandon Vincent <[log in to unmask]>
Date:
Sat, 29 Aug 2015 21:45:45 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (12 lines)
On Sat, Aug 29, 2015 at 8:14 PM, ToddAndMargo <[log in to unmask]> wrote:
> I was looking for an easier way to tell if my write protect switches
> were in the read only position.  There are other ways, like trying to
> mount it and see what happens, but I would like to get the information
> more directly.

Try querying the block device with udevadm(8).

udevadm info -a -n /dev/sdc

Brandon Vincent

ATOM RSS1 RSS2