Linux Wipefs-Wipe the file system signature from the device

Introduction

Wipefs is a program that comes with Linux, which is used to erase the signature of the file system, and will not erase any other data in the file system or the device. By default,  wipefs  will not wipe the nested partition table on non-entire disk devices. For this, the --force option is required .

effect

Used to erase the disk signature (you can use the disk that cannot be formatted)

usage

Basic format

wipefs  option  device

wipefs -a /dev/sdc1

1. When only using wipefs, all file systems and their basic signature offsets will be listed

 sudo wipefs /dev/sdc                                                                   

DEVICE OFFSET TYPE    UUID                   LABEL
sdc    0x8001 iso9660 2020-01-24-19-16-03-00 SolusLiveBudgie
sdc    0x1fe  dos                            
sdc    0x200  gpt         

2.-a Erase all available signatures

sudo wipefs -a /dev/sdc1

 3.-f force erase

sudo wipefs -af / dev / sdc1  

 4-h show help text and exit

wipefs -h                                                              

5-b Create a backup signature under $HOME

6-i Output information, but not the property bar

sdc    0x8001 iso9660 2020-01-24-19-16-03-00 SolusLiveBudgie
sdc    0x1fe  dos                            
sdc    0x200  gpt         

7-p output information, output in an analyzable form (not printable) and encode all potentially unsafe characters of the string into the corresponding hexadecimal value prefixed with'\x'.

0x8001,2020-12-31-13-10-58-00,MANJARO_GNOME_210PRE1,iso9660
0x1fe,,,dos

8-n makes all operations complete, except for the write() call.

DEVICE OFFSET TYPE    UUID                   LABEL
sdc    0x8001 iso9660 2020-12-31-13-10-58-00 MANJARO_GNOME_210PRE1
sdc    0x1fe  dos      

9-q No message is displayed after clearing the signature

Etc. Refer to wipefs(8)

 

Digression

I installed the Solus system by myself before, and the hard disk was encrypted. I couldn’t directly format the words and install the new system. I stumbled upon this command.

sudo wipefs -af the disk where

Then you can perform formatting and other operations

 

 

 

 

Guess you like

Origin blog.csdn.net/weixin_43435259/article/details/113053333