Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #5792 > unrolled thread
| Started by | Todd <Todd@invalid.invalid> |
|---|---|
| First post | 2012-07-30 22:20 -0700 |
| Last post | 2012-08-03 16:21 -0700 |
| Articles | 20 on this page of 23 — 8 participants |
Back to article view | Back to comp.os.linux.misc
how can I tell if a partition is a luks partition? Todd <Todd@invalid.invalid> - 2012-07-30 22:20 -0700
Re: how can I tell if a partition is a luks partition? Todd <Todd@invalid.invalid> - 2012-07-30 22:36 -0700
Re: how can I tell if a partition is a luks partition? Todd <Todd@invalid.invalid> - 2012-07-30 22:37 -0700
Re: how can I tell if a partition is a luks partition? Todd <Todd@invalid.invalid> - 2012-07-30 22:46 -0700
Re: how can I tell if a partition is a luks partition? Bit Twister <BitTwister@mouse-potato.com> - 2012-07-31 08:10 +0000
Re: how can I tell if a partition is a luks partition? Todd <Todd@invalid.invalid> - 2012-07-31 10:12 -0700
Re: how can I tell if a partition is a luks partition? Bit Twister <BitTwister@mouse-potato.com> - 2012-07-31 17:31 +0000
Re: how can I tell if a partition is a luks partition? Todd <Todd@invalid.invalid> - 2012-07-31 12:27 -0700
Re: how can I tell if a partition is a luks partition? "Chris F.A. Johnson" <cfajohnson@gmail.com> - 2012-07-31 15:38 -0400
Re: how can I tell if a partition is a luks partition? Aragorn <stryder@telenet.be.invalid> - 2012-07-31 21:55 +0200
Re: how can I tell if a partition is a luks partition? "Chris F.A. Johnson" <cfajohnson@gmail.com> - 2012-07-31 16:03 -0400
Re: how can I tell if a partition is a luks partition? Robert Riches <spamtrap42@jacob21819.net> - 2012-08-01 04:11 +0000
Re: how can I tell if a partition is a luks partition? Richard Kettlewell <rjk@greenend.org.uk> - 2012-08-01 09:08 +0100
Re: how can I tell if a partition is a luks partition? Todd <Todd@invalid.invalid> - 2012-08-01 11:04 -0700
Re: how can I tell if a partition is a luks partition? "Chris F.A. Johnson" <cfajohnson@gmail.com> - 2012-08-01 14:25 -0400
Re: how can I tell if a partition is a luks partition? Todd <Todd@invalid.invalid> - 2012-08-01 13:54 -0700
Re: how can I tell if a partition is a luks partition? Robert Nichols <SEE_SIGNATURE@localhost.localdomain.invalid> - 2012-07-31 13:57 -0500
Re: how can I tell if a partition is a luks partition? Todd <Todd@invalid.invalid> - 2012-07-31 12:31 -0700
Re: how can I tell if a partition is a luks partition? Loki Harfagr <l0k1@thedarkdesign.free.fr.INVALID> - 2012-08-01 10:03 +0000
Re: how can I tell if a partition is a luks partition? Todd <Todd@invalid.invalid> - 2012-08-01 11:03 -0700
Re: how can I tell if a partition is a luks partition? Loki Harfagr <l0k1@thedarkdesign.free.fr.INVALID> - 2012-08-01 20:53 +0000
Re: how can I tell if a partition is a luks partition? Robert Nichols <SEE_SIGNATURE@localhost.localdomain.invalid> - 2012-08-02 09:50 -0500
Re: how can I tell if a partition is a luks partition? Todd <Todd@invalid.invalid> - 2012-08-03 16:21 -0700
Page 1 of 2 [1] 2 Next page →
| From | Todd <Todd@invalid.invalid> |
|---|---|
| Date | 2012-07-30 22:20 -0700 |
| Subject | how can I tell if a partition is a luks partition? |
| Message-ID | <jv7pvo$5vr$1@dont-email.me> |
Hi All,
From the command line (I am going to write a script),
how can I tell if a partition is a luks partition?
Many thanks,
-T
[toc] | [next] | [standalone]
| From | Todd <Todd@invalid.invalid> |
|---|---|
| Date | 2012-07-30 22:36 -0700 |
| Message-ID | <jv7qs4$9q1$1@dont-email.me> |
| In reply to | #5792 |
On 07/30/2012 10:20 PM, Todd wrote: > Hi All, > > From the command line (I am going to write a script), > how can I tell if a partition is a luks partition? > > Many thanks, > -T Figured it out: blkid (Block ID)
[toc] | [prev] | [next] | [standalone]
| From | Todd <Todd@invalid.invalid> |
|---|---|
| Date | 2012-07-30 22:37 -0700 |
| Message-ID | <jv7qut$9q1$2@dont-email.me> |
| In reply to | #5794 |
On 07/30/2012 10:36 PM, Todd wrote: > On 07/30/2012 10:20 PM, Todd wrote: >> Hi All, >> >> From the command line (I am going to write a script), >> how can I tell if a partition is a luks partition? >> >> Many thanks, >> -T > > > Figured it out: blkid (Block ID) oops, you have to run "blkid" as root
[toc] | [prev] | [next] | [standalone]
| From | Todd <Todd@invalid.invalid> |
|---|---|
| Date | 2012-07-30 22:46 -0700 |
| Message-ID | <jv7rgd$ccc$1@dont-email.me> |
| In reply to | #5795 |
On 07/30/2012 10:37 PM, Todd wrote: > On 07/30/2012 10:36 PM, Todd wrote: >> On 07/30/2012 10:20 PM, Todd wrote: >>> Hi All, >>> >>> From the command line (I am going to write a script), >>> how can I tell if a partition is a luks partition? >>> >>> Many thanks, >>> -T >> >> >> Figured it out: blkid (Block ID) > > > oops, you have to run "blkid" as root # lsblk is fun too
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2012-07-31 08:10 +0000 |
| Message-ID | <slrnk1f4nl.vct.BitTwister@wb.home.test> |
| In reply to | #5795 |
On Mon, 30 Jul 2012 22:37:33 -0700, Todd wrote: > > oops, you have to run "blkid" as root Oh no, hope my system never finds that out. [bittwister@wb ~]$ /sbin/blkid | grep sda6 /dev/sda6: LABEL="cauldron" UUID="35f73957-91a7-439b-8aa8-1da6" TYPE="ext4"
[toc] | [prev] | [next] | [standalone]
| From | Todd <Todd@invalid.invalid> |
|---|---|
| Date | 2012-07-31 10:12 -0700 |
| Message-ID | <jv93mo$k2q$2@dont-email.me> |
| In reply to | #5799 |
On 07/31/2012 01:10 AM, Bit Twister wrote: > On Mon, 30 Jul 2012 22:37:33 -0700, Todd wrote: >> >> oops, you have to run "blkid" as root > > Oh no, hope my system never finds that out. > > [bittwister@wb ~]$ /sbin/blkid | grep sda6 > /dev/sda6: LABEL="cauldron" UUID="35f73957-91a7-439b-8aa8-1da6" TYPE="ext4" > Oh, now it decides to work as a user today! Yesterday, I got nothing back, unless I was root.
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2012-07-31 17:31 +0000 |
| Message-ID | <slrnk1g5jh.fhp.BitTwister@wb.home.test> |
| In reply to | #5803 |
On Tue, 31 Jul 2012 10:12:56 -0700, Todd wrote: > On 07/31/2012 01:10 AM, Bit Twister wrote: >> On Mon, 30 Jul 2012 22:37:33 -0700, Todd wrote: >>> >>> oops, you have to run "blkid" as root >> >> Oh no, hope my system never finds that out. >> >> [bittwister@wb ~]$ /sbin/blkid | grep sda6 >> /dev/sda6: LABEL="cauldron" UUID="35f73957-91a7-439b-8aa8-1da6" TYPE="ext4" >> > > > Oh, now it decides to work as a user today! Yesterday, > I got nothing back, unless I was root. If you run "blkid" I will guess it would be broke again. :-8 And magically "/sbin/blkid" will work. :-D
[toc] | [prev] | [next] | [standalone]
| From | Todd <Todd@invalid.invalid> |
|---|---|
| Date | 2012-07-31 12:27 -0700 |
| Message-ID | <jv9bjt$9d9$1@dont-email.me> |
| In reply to | #5804 |
On 07/31/2012 10:31 AM, Bit Twister wrote: > On Tue, 31 Jul 2012 10:12:56 -0700, Todd wrote: >> On 07/31/2012 01:10 AM, Bit Twister wrote: >>> On Mon, 30 Jul 2012 22:37:33 -0700, Todd wrote: >>>> >>>> oops, you have to run "blkid" as root >>> >>> Oh no, hope my system never finds that out. >>> >>> [bittwister@wb ~]$ /sbin/blkid | grep sda6 >>> /dev/sda6: LABEL="cauldron" UUID="35f73957-91a7-439b-8aa8-1da6" TYPE="ext4" >>> >> >> >> Oh, now it decides to work as a user today! Yesterday, >> I got nothing back, unless I was root. > > If you run "blkid" I will guess it would be broke again. :-8 > > And magically "/sbin/blkid" will work. :-D > That stupid sbin directory again! AAAAHHHHHHH
[toc] | [prev] | [next] | [standalone]
| From | "Chris F.A. Johnson" <cfajohnson@gmail.com> |
|---|---|
| Date | 2012-07-31 15:38 -0400 |
| Message-ID | <kqole9-301.ln1@cjlocal.com> |
| In reply to | #5806 |
On 2012-07-31, Todd wrote: > On 07/31/2012 10:31 AM, Bit Twister wrote: >> On Tue, 31 Jul 2012 10:12:56 -0700, Todd wrote: >>> On 07/31/2012 01:10 AM, Bit Twister wrote: >>>> On Mon, 30 Jul 2012 22:37:33 -0700, Todd wrote: >>>>> >>>>> oops, you have to run "blkid" as root >>>> >>>> Oh no, hope my system never finds that out. >>>> >>>> [bittwister@wb ~]$ /sbin/blkid | grep sda6 >>>> /dev/sda6: LABEL="cauldron" UUID="35f73957-91a7-439b-8aa8-1da6" TYPE="ext4" >>>> >>> >>> >>> Oh, now it decides to work as a user today! Yesterday, >>> I got nothing back, unless I was root. >> >> If you run "blkid" I will guess it would be broke again. :-8 >> >> And magically "/sbin/blkid" will work. :-D >> > > That stupid sbin directory again! AAAAHHHHHHH Why is /sbin not in your PATH? -- Chris F.A. Johnson, <http://cfajohnson.com> Author: Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress) Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
[toc] | [prev] | [next] | [standalone]
| From | Aragorn <stryder@telenet.be.invalid> |
|---|---|
| Date | 2012-07-31 21:55 +0200 |
| Message-ID | <jv9d7b$iar$1@dont-email.me> |
| In reply to | #5808 |
On Tuesday 31 July 2012 21:38, Chris F.A. Johnson conveyed the following to comp.os.linux.misc... > On 2012-07-31, Todd wrote: > >> On 07/31/2012 10:31 AM, Bit Twister wrote: >> >>> On Tue, 31 Jul 2012 10:12:56 -0700, Todd wrote: >>> >>>> On 07/31/2012 01:10 AM, Bit Twister wrote: >>>> >>>>> On Mon, 30 Jul 2012 22:37:33 -0700, Todd wrote: >>>>>> >>>>>> oops, you have to run "blkid" as root >>>>> >>>>> Oh no, hope my system never finds that out. >>>>> >>>>> [bittwister@wb ~]$ /sbin/blkid | grep sda6 >>>>> /dev/sda6: LABEL="cauldron" UUID="35f73957-91a7-439b-8aa8-1da6" >>>>> TYPE="ext4" >>>> >>>> Oh, now it decides to work as a user today! Yesterday, >>>> I got nothing back, unless I was root. >>> >>> If you run "blkid" I will guess it would be broke again. :-8 >>> >>> And magically "/sbin/blkid" will work. :-D >> >> That stupid sbin directory again! AAAAHHHHHHH > > Why is /sbin not in your PATH? Probably because he was executing it as a non-root user, in which case it should indeed _not_ be in his $PATH. -- = Aragorn = (registered GNU/Linux user #223157)
[toc] | [prev] | [next] | [standalone]
| From | "Chris F.A. Johnson" <cfajohnson@gmail.com> |
|---|---|
| Date | 2012-07-31 16:03 -0400 |
| Message-ID | <q9qle9-301.ln1@cjlocal.com> |
| In reply to | #5809 |
On 2012-07-31, Aragorn wrote: > On Tuesday 31 July 2012 21:38, Chris F.A. Johnson conveyed the following > to comp.os.linux.misc... > >> On 2012-07-31, Todd wrote: >> >>> On 07/31/2012 10:31 AM, Bit Twister wrote: >>> >>>> On Tue, 31 Jul 2012 10:12:56 -0700, Todd wrote: >>>> >>>>> On 07/31/2012 01:10 AM, Bit Twister wrote: >>>>> >>>>>> On Mon, 30 Jul 2012 22:37:33 -0700, Todd wrote: >>>>>>> >>>>>>> oops, you have to run "blkid" as root >>>>>> >>>>>> Oh no, hope my system never finds that out. >>>>>> >>>>>> [bittwister@wb ~]$ /sbin/blkid | grep sda6 >>>>>> /dev/sda6: LABEL="cauldron" UUID="35f73957-91a7-439b-8aa8-1da6" >>>>>> TYPE="ext4" >>>>> >>>>> Oh, now it decides to work as a user today! Yesterday, >>>>> I got nothing back, unless I was root. >>>> >>>> If you run "blkid" I will guess it would be broke again. :-8 >>>> >>>> And magically "/sbin/blkid" will work. :-D >>> >>> That stupid sbin directory again! AAAAHHHHHHH >> >> Why is /sbin not in your PATH? > > Probably because he was executing it as a non-root user, in which case > it should indeed _not_ be in his $PATH. I disagree. I always have /sbin in my path as a regular user. There are commands in /sbin that I often use as a regular user. -- Chris F.A. Johnson, <http://cfajohnson.com> Author: Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress) Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
[toc] | [prev] | [next] | [standalone]
| From | Robert Riches <spamtrap42@jacob21819.net> |
|---|---|
| Date | 2012-08-01 04:11 +0000 |
| Message-ID | <slrnk1hb4d.nvu.spamtrap42@one.localnet> |
| In reply to | #5810 |
On 2012-07-31, Chris F.A. Johnson <cfajohnson@gmail.com> wrote: > On 2012-07-31, Aragorn wrote: >> On Tuesday 31 July 2012 21:38, Chris F.A. Johnson conveyed the following >> to comp.os.linux.misc... >> >>> On 2012-07-31, Todd wrote: >>> >>>> On 07/31/2012 10:31 AM, Bit Twister wrote: >>>> >>>>> On Tue, 31 Jul 2012 10:12:56 -0700, Todd wrote: >>>>> >>>>>> On 07/31/2012 01:10 AM, Bit Twister wrote: >>>>>> >>>>>>> On Mon, 30 Jul 2012 22:37:33 -0700, Todd wrote: >>>>>>>> >>>>>>>> oops, you have to run "blkid" as root >>>>>>> >>>>>>> Oh no, hope my system never finds that out. >>>>>>> >>>>>>> [bittwister@wb ~]$ /sbin/blkid | grep sda6 >>>>>>> /dev/sda6: LABEL="cauldron" UUID="35f73957-91a7-439b-8aa8-1da6" >>>>>>> TYPE="ext4" >>>>>> >>>>>> Oh, now it decides to work as a user today! Yesterday, >>>>>> I got nothing back, unless I was root. >>>>> >>>>> If you run "blkid" I will guess it would be broke again. :-8 >>>>> >>>>> And magically "/sbin/blkid" will work. :-D >>>> >>>> That stupid sbin directory again! AAAAHHHHHHH >>> >>> Why is /sbin not in your PATH? >> >> Probably because he was executing it as a non-root user, in which case >> it should indeed _not_ be in his $PATH. > > I disagree. > > I always have /sbin in my path as a regular user. > > There are commands in /sbin that I often use as a regular user. /usr/sbin has lsusb, lshw, and lsof. /sbin has lsmod along with the aforementioned blkid. I'm pretty sure that at one time mailq and/or ping was in /sbin or /usr/sbin. -- Robert Riches spamtrap42@jacob21819.net (Yes, that is one of my email addresses.)
[toc] | [prev] | [next] | [standalone]
| From | Richard Kettlewell <rjk@greenend.org.uk> |
|---|---|
| Date | 2012-08-01 09:08 +0100 |
| Message-ID | <87txwnm3ud.fsf@araminta.anjou.terraraq.org.uk> |
| In reply to | #5811 |
Robert Riches <spamtrap42@jacob21819.net> writes: > Chris F.A. Johnson <cfajohnson@gmail.com> wrote: >> Aragorn wrote: >>> Chris F.A. Johnson conveyed the following >>>> Why is /sbin not in your PATH? >>> >>> Probably because he was executing it as a non-root user, in which case >>> it should indeed _not_ be in his $PATH. >> >> I disagree. >> >> I always have /sbin in my path as a regular user. >> >> There are commands in /sbin that I often use as a regular user. > > /usr/sbin has lsusb, lshw, and lsof. /sbin has lsmod along with > the aforementioned blkid. I'm pretty sure that at one time mailq > and/or ping was in /sbin or /usr/sbin. All sorts of generally-useful things are, or have been, in .../sbin. The concept is at best dubious and the implementation worse. We'd be better off without it. -- http://www.greenend.org.uk/rjk/
[toc] | [prev] | [next] | [standalone]
| From | Todd <Todd@invalid.invalid> |
|---|---|
| Date | 2012-08-01 11:04 -0700 |
| Message-ID | <jvbr48$lnn$2@dont-email.me> |
| In reply to | #5808 |
On 07/31/2012 12:38 PM, Chris F.A. Johnson wrote: > On 2012-07-31, Todd wrote: >> On 07/31/2012 10:31 AM, Bit Twister wrote: >>> On Tue, 31 Jul 2012 10:12:56 -0700, Todd wrote: >>>> On 07/31/2012 01:10 AM, Bit Twister wrote: >>>>> On Mon, 30 Jul 2012 22:37:33 -0700, Todd wrote: >>>>>> >>>>>> oops, you have to run "blkid" as root >>>>> >>>>> Oh no, hope my system never finds that out. >>>>> >>>>> [bittwister@wb ~]$ /sbin/blkid | grep sda6 >>>>> /dev/sda6: LABEL="cauldron" UUID="35f73957-91a7-439b-8aa8-1da6" TYPE="ext4" >>>>> >>>> >>>> >>>> Oh, now it decides to work as a user today! Yesterday, >>>> I got nothing back, unless I was root. >>> >>> If you run "blkid" I will guess it would be broke again. :-8 >>> >>> And magically "/sbin/blkid" will work. :-D >>> >> >> That stupid sbin directory again! AAAAHHHHHHH > > Why is /sbin not in your PATH? > It is. $ echo $PATH /usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/tony/bin:./:/home/todd:/sbin:/usr/sbin:/home/linuxutil:./
[toc] | [prev] | [next] | [standalone]
| From | "Chris F.A. Johnson" <cfajohnson@gmail.com> |
|---|---|
| Date | 2012-08-01 14:25 -0400 |
| Message-ID | <3u8oe9-hnh.ln1@cjlocal.com> |
| In reply to | #5825 |
On 2012-08-01, Todd wrote: > On 07/31/2012 12:38 PM, Chris F.A. Johnson wrote: >> On 2012-07-31, Todd wrote: >>> On 07/31/2012 10:31 AM, Bit Twister wrote: >>>> On Tue, 31 Jul 2012 10:12:56 -0700, Todd wrote: >>>>> On 07/31/2012 01:10 AM, Bit Twister wrote: >>>>>> On Mon, 30 Jul 2012 22:37:33 -0700, Todd wrote: >>>>>>> >>>>>>> oops, you have to run "blkid" as root >>>>>> >>>>>> Oh no, hope my system never finds that out. >>>>>> >>>>>> [bittwister@wb ~]$ /sbin/blkid | grep sda6 >>>>>> /dev/sda6: LABEL="cauldron" UUID="35f73957-91a7-439b-8aa8-1da6" TYPE="ext4" >>>>>> >>>>> >>>>> >>>>> Oh, now it decides to work as a user today! Yesterday, >>>>> I got nothing back, unless I was root. >>>> >>>> If you run "blkid" I will guess it would be broke again. :-8 >>>> >>>> And magically "/sbin/blkid" will work. :-D >>>> >>> >>> That stupid sbin directory again! AAAAHHHHHHH >> >> Why is /sbin not in your PATH? >> > > It is. > > $ echo $PATH > /usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/tony/bin:./:/home/todd:/sbin:/usr/sbin:/home/linuxutil:./ Then you can just type 'blkid' without the directory. If you can't, there's something you're not telling us. What is the output of "type -a blkid"? -- Chris F.A. Johnson, <http://cfajohnson.com> Author: Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress) Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
[toc] | [prev] | [next] | [standalone]
| From | Todd <Todd@invalid.invalid> |
|---|---|
| Date | 2012-08-01 13:54 -0700 |
| Message-ID | <jvc52d$lgq$1@dont-email.me> |
| In reply to | #5826 |
On 08/01/2012 11:25 AM, Chris F.A. Johnson wrote: > On 2012-08-01, Todd wrote: >> On 07/31/2012 12:38 PM, Chris F.A. Johnson wrote: >>> On 2012-07-31, Todd wrote: >>>> On 07/31/2012 10:31 AM, Bit Twister wrote: >>>>> On Tue, 31 Jul 2012 10:12:56 -0700, Todd wrote: >>>>>> On 07/31/2012 01:10 AM, Bit Twister wrote: >>>>>>> On Mon, 30 Jul 2012 22:37:33 -0700, Todd wrote: >>>>>>>> >>>>>>>> oops, you have to run "blkid" as root >>>>>>> >>>>>>> Oh no, hope my system never finds that out. >>>>>>> >>>>>>> [bittwister@wb ~]$ /sbin/blkid | grep sda6 >>>>>>> /dev/sda6: LABEL="cauldron" UUID="35f73957-91a7-439b-8aa8-1da6" TYPE="ext4" >>>>>>> >>>>>> >>>>>> >>>>>> Oh, now it decides to work as a user today! Yesterday, >>>>>> I got nothing back, unless I was root. >>>>> >>>>> If you run "blkid" I will guess it would be broke again. :-8 >>>>> >>>>> And magically "/sbin/blkid" will work. :-D >>>>> >>>> >>>> That stupid sbin directory again! AAAAHHHHHHH >>> >>> Why is /sbin not in your PATH? >>> >> >> It is. >> >> $ echo $PATH >> /usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/tony/bin:./:/home/todd:/sbin:/usr/sbin:/home/linuxutil:./ > > Then you can just type 'blkid' without the directory. If you can't, > there's something you're not telling us. > > What is the output of "type -a blkid"? > Who knows. It is working now
[toc] | [prev] | [next] | [standalone]
| From | Robert Nichols <SEE_SIGNATURE@localhost.localdomain.invalid> |
|---|---|
| Date | 2012-07-31 13:57 -0500 |
| Message-ID | <jv99r1$re3$1@omega-3a.local> |
| In reply to | #5792 |
On 07/31/2012 12:20 AM, Todd wrote: > Hi All, > > From the command line (I am going to write a script), > how can I tell if a partition is a luks partition? cryptsetup isLuks <device> Needs read permission on the device, of course. -- Bob Nichols AT comcast.net I am "RNichols42"
[toc] | [prev] | [next] | [standalone]
| From | Todd <Todd@invalid.invalid> |
|---|---|
| Date | 2012-07-31 12:31 -0700 |
| Message-ID | <jv9bqb$b1n$1@dont-email.me> |
| In reply to | #5805 |
On 07/31/2012 11:57 AM, Robert Nichols wrote: > On 07/31/2012 12:20 AM, Todd wrote: >> Hi All, >> >> From the command line (I am going to write a script), >> how can I tell if a partition is a luks partition? > > cryptsetup isLuks <device> > > Needs read permission on the device, of course. > Gives me a blank line. blkid give me info. # cryptsetup isLuks /dev/sdb1 <blank line> What am I doing wrong? # blkid | grep -i sdb1 /dev/sdb1: UUID="cc3b0aed-f926-49eb-960a-c66344fc3066" TYPE="crypto_LUKS" -T
[toc] | [prev] | [next] | [standalone]
| From | Loki Harfagr <l0k1@thedarkdesign.free.fr.INVALID> |
|---|---|
| Date | 2012-08-01 10:03 +0000 |
| Message-ID | <pan.2012.08.01.10.03.05@thedarkdesign.free.fr.INVALID> |
| In reply to | #5807 |
Tue, 31 Jul 2012 12:31:22 -0700, Todd did cat : > On 07/31/2012 11:57 AM, Robert Nichols wrote: >> On 07/31/2012 12:20 AM, Todd wrote: >>> Hi All, >>> >>> From the command line (I am going to write a script), >>> how can I tell if a partition is a luks partition? >> >> cryptsetup isLuks <device> >> >> Needs read permission on the device, of course. >> > > Gives me a blank line. blkid give me info. > > # cryptsetup isLuks /dev/sdb1 > <blank line> > > What am I doing wrong? > > # blkid | grep -i sdb1 > /dev/sdb1: UUID="cc3b0aed-f926-49eb-960a-c66344fc3066" TYPE="crypto_LUKS" > > -T you're using a test as a lister :-) Try: $ cryptsetup isLuks /dev/sdb1 && echo IMaLUKS Or alternatively: $ [[ -L /dev/sdb1 ]] && echo IMaLUKS
[toc] | [prev] | [next] | [standalone]
| From | Todd <Todd@invalid.invalid> |
|---|---|
| Date | 2012-08-01 11:03 -0700 |
| Message-ID | <jvbr26$lnn$1@dont-email.me> |
| In reply to | #5815 |
On 08/01/2012 03:03 AM, Loki Harfagr wrote: > Tue, 31 Jul 2012 12:31:22 -0700, Todd did cat : > >> On 07/31/2012 11:57 AM, Robert Nichols wrote: >>> On 07/31/2012 12:20 AM, Todd wrote: >>>> Hi All, >>>> >>>> From the command line (I am going to write a script), >>>> how can I tell if a partition is a luks partition? >>> >>> cryptsetup isLuks <device> >>> >>> Needs read permission on the device, of course. >>> >> >> Gives me a blank line. blkid give me info. >> >> # cryptsetup isLuks /dev/sdb1 >> <blank line> >> >> What am I doing wrong? >> >> # blkid | grep -i sdb1 >> /dev/sdb1: UUID="cc3b0aed-f926-49eb-960a-c66344fc3066" TYPE="crypto_LUKS" >> >> -T > > you're using a test as a lister :-) > Try: > $ cryptsetup isLuks /dev/sdb1 && echo IMaLUKS > > Or alternatively: > $ [[ -L /dev/sdb1 ]] && echo IMaLUKS > That explains it. Thank you! I wonder why it is quiet when it find a Luks device, but verbose when it does not? -T $ cryptsetup isLuks /dev/sdb1; echo $? Cannot open device /dev/sdb1 for read-only access. 4 $ su Password: # cryptsetup isLuks /dev/sdb1; echo $? 0 # cryptsetup isLuks /dev/sda1; echo $? Device /dev/sda1 is not a valid LUKS device. 1
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.os.linux.misc
csiph-web