自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

如何使用 Wipefs 命令擦除磁盤上的簽名

存儲 存儲設(shè)備
每個磁盤和分區(qū)上都有某種簽名和元數(shù)據(jù)/魔術(shù)字符串。你可以使用wipefs命令查看分區(qū)表簽名/元數(shù)據(jù)/魔術(shù)字符串。wipefs命令可以擦除文件系統(tǒng),RAID或分區(qū)表簽名/元數(shù)據(jù)。

[[400591]]

每個磁盤和分區(qū)上都有某種簽名和元數(shù)據(jù)/魔術(shù)字符串。你可以使用wipefs命令查看分區(qū)表簽名/元數(shù)據(jù)/魔術(shù)字符串。wipefs命令可以擦除文件系統(tǒng),RAID或分區(qū)表簽名/元數(shù)據(jù)。

顯示磁盤當(dāng)前簽名

  1. [root@localhost ~]# wipefs /dev/sda 
  2. DEVICE OFFSET TYPE UUID LABEL 
  3. sda    0x1fe  dos        
  4. [root@localhost ~]# wipefs /dev/sda1  
  5. DEVICE OFFSET TYPE UUID                                 LABEL 
  6. sda1   0x0    xfs  f15a938f-f96d-4b56-8259-76f31c20969 

如何使用wipefs刪除磁盤的簽名

  1. [root@localhost ~]# wipefs -a -f /dev/sda 
  2. /dev/sda: 2 bytes were erased at offset 0x000001fe (dos): 55 aa 

也可以備份一個簽名到$HOME目錄下,并清空磁盤的簽名:

  1. [root@localhost ~]# wipefs -a -f -b /dev/sda 
  2. /dev/sda: 2 bytes were erased at offset 0x000001fe (dos): 55 aa 

如何恢復(fù)簽名信息:

  1. [root@localhost ~]# dd if=~/wipefs-sda-0x000001fe.bak of=/dev/sda seek=$((0x000001fe)) bs=1 conv=notrunc 
  2. 2+0 records in 
  3. 2+0 records out 
  4. 2 bytes copied, 0.0007176 s, 2.8 kB/s 

使用dd命令清空分區(qū)表、簽名

再某些情況下,使用wipefs查詢不到磁盤的簽名,可以使用dd命令來清空分區(qū)表和簽名:

這時可以使用dd明來清空簽名:

  1. [root@localhost ~]# dd if=/dev/zero of=/dev/sda1 bs=1M count=1 
  2. 1+0 records in 
  3. 1+0 records out 
  4. 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00103757 s, 1.0 GB/s 

使用下面命令可以清空MBR引導(dǎo)記錄:

  1. [root@localhost ~]# dd if=/dev/zero of=/dev/sda bs=446 count=1 
  2. 1+0 records in 
  3. 1+0 records out 
  4. 446 bytes copied, 0.000605243 s, 737 kB/s 

總結(jié)

關(guān)于如何使用 wipefs 命令擦除磁盤上的簽名的文章到此結(jié)束,如果對你有幫助點個在看支持一下吧!

 

責(zé)任編輯:武曉燕 來源: Linux就該這么學(xué)
相關(guān)推薦

2019-09-03 11:23:13

MySQL技術(shù)磁盤

2019-07-09 15:42:00

MySQL磁盤存儲

2023-02-10 10:44:26

2013-04-07 10:01:56

SAN磁盤存儲數(shù)據(jù)歸檔

2018-07-23 09:50:39

Linuxdd命令磁盤

2018-08-07 09:00:06

Linux命令磁盤空間

2023-09-13 10:25:46

Docker容器

2009-10-22 10:19:57

linux磁盤命令

2021-08-04 12:09:04

Linuxdf命令

2021-10-10 08:06:29

磁盤PowerShell信息

2013-01-21 13:38:27

IBMdW

2010-02-25 13:34:24

Linux磁盤分區(qū)

2018-09-06 13:10:12

Windows 10Windows磁盤分區(qū)

2009-10-22 10:59:29

linux磁盤命令

2023-07-11 14:37:20

私有簽名密鑰

2020-08-13 18:40:51

OpenSSL密碼學(xué)Linux

2009-10-22 11:36:31

linux磁盤管理

2023-04-05 08:33:10

2009-07-22 09:02:35

Windows 7磁盤碎片整理

2023-10-27 14:54:04

CipherWindows
點贊
收藏

51CTO技術(shù)棧公眾號