I would like to add a new SATA disk to my system (CentOS 7.6) by using LVM. Apt-cache is a good idea if you now the package name. The GDISK command in Linux is used to partition the drives of your system. I intend to not use a partition table, and just add the raw device to the LVM. Convert MBR Partition into GPT in CentOS/RHEL 7. (I do that all the time on CentOS systems) The block device is visible by the OS, but the LVM is refusing to add it. Use the following shred command to wipe your drive: sudo shred -vfz /dev/sda The -v option represents verbose. The computer is a Intel NUC, and the OS is running from an NVMe SSD. it may be necessary to wipe the disk using the wipefs command before. We know, that we search the binary, usually located in /bin, /usr/bin or /sbin, therefore your package name is util-linux and you can install it, as said with sudo apt-get install util-linux Util-linux: /usr/share/man/man8/wipefs.8.gz Util-linux: /usr/share/bash-completion/completions/wipefs Manpages-fr-extra: /usr/share/man/fr/man8/wipefs.8.gzīut in your case apt-file search wipefs is the better choice. Command (m for help): d Partition number (1,2, default 2): 1 Partition 1 has been. The same concept of backup files is used by wipefs(8). To use apt_file you have to install it sudo apt-get install apt_file You must wipe the 20 last kB of the DISK, not of the PARTITION. The default sfdisk command is to read the specification for the desired partitioning of device. I think it's pretty silly that the CentOS-6 installer ignores drives like these without giving the option to 'use anyway'. The wipefs command (since v2.31) lists all the offset where a magic strings have been detected. But AT LEAST it prints a message about it. When option -a is used, all magic strings that are visible for libblkid are erased. Or if wipefs is already installed and you need the package name % apt-file search "$(which wipefs)" Other examples for apt-file % apt-file search -regex "/wipefs$" In this case the wipefs scans the device again after each modification (erase) until no magic string is found.
0 Comments
Leave a Reply. |