Re: Fwd: show label for swap partition.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jason Price <japrice@...>
Cc: <linux-kernel@...>
Date: Monday, January 28, 2008 - 4:10 pm

On Mon, 2008-01-28 at 14:58 -0500, Jason Price wrote:

There's this cheesy way to get it:
# dd if=3Dswapfile bs=3D4k count=3D1 | xxd -a
1+0 records in
1+0 records out
4096 bytes (4.1 kB) copied, 6.2589e-05 s, 65.4 MB/s
0000000: 0000 0000 0000 0000 0000 0000 0000 0000  ................
*
0000400: 0100 0000 ffff 0000 0000 0000 f209 fce3  ................
0000410: 7bc9 486d ac86 5d63 af25 3c99 466c 6173  {.Hm..]c.%<.Flas
0000420: 6853 7761 7000 0000 0000 0000 0000 0000  hSwap...........
0000430: 0000 0000 0000 0000 0000 0000 0000 0000  ................
*
0000ff0: 0000 0000 0000 5357 4150 5350 4143 4532  ......SWAPSPACE2

You can see it is marked as SWAPSPACE2.  The label is FlashSwap.  Looks
like it appears at offset 0x41c.
--=20
Zan Lynx <zlynx@acm.org>
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Fwd: show label for swap partition., Jason Price, (Mon Jan 28, 3:58 pm)
Re: Fwd: show label for swap partition., Zan Lynx, (Mon Jan 28, 4:10 pm)
Re: Fwd: show label for swap partition., Jan Engelhardt, (Mon Jan 28, 4:53 pm)