In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the use of linux e2image command to save ext2/ext3 file metadata, I hope you will learn a lot after reading this article, let's discuss it together!
The e2image command can save a "ext2" or "ext3" file system in a dangerous state to a file. The generated file can be used by the dumpe2fs command and the debugfs command through the "- I" parameter. Experienced administrators can use it for file system disaster recovery.
To save disk space, e2Image creates image files as sparse files or in QCOW2 format. Therefore, if you need to copy a sparse image file to another location, you should compress it first, or use the GNU version of the cp "sparse=always" option. This does not apply to QCOW2 images, which are not sparse.
Syntax format: e2image [parameters] [file / file system]
Common parameters:
Reference example
Generate a defined partition metadata image file:
[root@linuxcool ~] # e2image / dev/sda1 sda1e2image 1.44.3 (10-July-2018)
View the system type of the file:
[root@linuxcool ~] # file sda1sda1:Linux rev 1.0 ext2 filesystem data
Generate an QCOW2 image file:
[root@linuxcool] # e2image-Q / dev/hda1 hda1.qcow2
Generate an original image file:
[root@linuxcool ~] # e2image-r / dev/hda1 | bzip2 > hda1.e2i.bz2 has finished reading this article. I believe you have some understanding of using linux's e2image command to save ext2/ext3 file metadata. Want to know more about it. Welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.