

So it can easily be used on systems with different partition/lvm/md layout? Is there some command which works simpler? like harddiskreset /dev/sda So I have to manually disable everything which "sits" on the device umount /mnt/debootstrap You should reboot now before making further changes. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.Įrror: Partition(s) 2, 3 on /dev/sdb have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. ~ # blockdev -rereadpt /dev/sdaĮrror: Partition(s) 2, 3 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. The solution there works quite well, dd if=/dev/zero of=/dev/sda bs=512 count=1 conv=notruncīut if I want to work with such an overwritten disk, I get the error that the device is still in use. This question is quite similar to Deleting All Partitions From the Command Line It is not about running a wipe utility, the data don't have to be overwritten. Thanks.To start from a clean state I need to reset the hard disk to an empty state from command line. At this point I just want to make some Veracrypt containers because I'm not sure that I can make any form of WDE.

I am sorry but I don't know enough to fix this problem.

Sensors: System Temperatures: cpu: 67.0C mobo: N/A RAID: No RAID devices: /proc/mdstat, md_mod kernel module present ID-2: USB /dev/sdb model: BUP_BK size: 4000.8GB Network: Card-1: Realtek RTL810圎 PCI Express Fast Ethernet controllerĭriver: r8169 v: 2.3LK-NAPI port: 2000 bus-ID: 02:00.0ĭrives: HDD Total Size: 4500.9GB (9.8% used) Sound: Advanced Linux Sound Architecture v: k4.13.0-25-generic GLX Version: 3.0 Mesa 18.0.5 Direct Rendering: YesĪudio: Card Intel 7 Series/C216 Family High Definition Audio Controller Resolution: Renderer: Mesa DRI Intel Ivybridge Mobile Graphics: Card: Intel 3rd Gen Core processor Graphics Controllerĭisplay Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa) Machine: System: LENOVO product: IdeaPad Z580 v: Lenovo Z580 I got the following info from running inxi -Fxz: Gparted shows this HD now as unallocated 3.64TB. Iwent back to try the LUKS format and got the same error as above. I tried to do the same with Veracrypt but after 12 hours the app said that it would take 8 days to finish the task. I went back to try formating with WDE+LUKS and got the same error. If I remember the sequence correctly I was able to format at this point, but the format was almost instantaneous. I then went into gparted and tried to format it through this but it said that I needed to delete the partitions (there were 2) before I could continue.

When I went to try this again I got the following error: "Error wiping device: Command-line `wipefs -a "/dev/dm-2"' exited with non-zero exit status 1: wipefs: error: /dev/dm-2: probing initialization failed: Device or resource busy About halfway through we lost power (I live in a developing country) for a few minutes (I have no battery installed). I went into disks and started the Linux WDE with LUKS. I wanted to wipe it and whole disk encrypt it. I have a 4TB Seagate HD attatched to my Lenovo Z580 Mint Mate 18.3.
