Results 1 to 4 of 4

Thread: Customizing to wipe drives at boot.

  1. #1
    Junior Member
    Join Date
    Mar 2004
    Posts
    1

    Customizing to wipe drives at boot.

    I would like to create a customized image that will do the following and I am not even sure if it is possible.
    I would like the image to boot and immediately determine the number of installed drives ide/scsi/raid and use the dd if=/dev/random of=/dev/hdX command to wipe each one of these drives and display a message when completed indicating sucess or failure.
    Then I would like to upon some kind of user intervention keystroke ect. show a listing of the installed hardware like:
    processor type
    processor speed
    amount of ram
    hard drives and sizes
    network cards
    optical drives
    sound card type
    video card type.
    I have investigated it somewhat and think that I probably have to run a script at init and that is about all I have learned. The command for wiping the hard drives seems to be a unterminated perl loop so I was interested in how/if that could be used to automatically move to the next drive when the first has completed?
    Can anyone point me to sample scripts or help me understand if it is possible to do before I spend time testing only to be disappointed.
    I work for a recycling company that refurbishes computers and has to destroy lots of data and would like to do it with Linux not a shredder. We have a dos based solution that works great but would like more flexibility that linux offers.

    Thanks in advance
    Kevo

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297

    Re: Customizing to wipe drives at boot.

    Quote Originally Posted by kevo
    I would like to create a customized image that will do the following and I am not even sure if it is possible.
    I would like the image to boot and immediately determine the number of installed drives ide/scsi/raid and use the dd if=/dev/random of=/dev/hdX command to wipe each one of these drives and display a message when completed indicating sucess or failure.
    Then I would like to upon some kind of user intervention keystroke ect. show a listing of the installed hardware like:
    processor type
    processor speed
    amount of ram
    hard drives and sizes
    network cards
    optical drives
    sound card type
    video card type.
    I have investigated it somewhat and think that I probably have to run a script at init and that is about all I have learned. The command for wiping the hard drives seems to be a unterminated perl loop so I was interested in how/if that could be used to automatically move to the next drive when the first has completed?
    Can anyone point me to sample scripts or help me understand if it is possible to do before I spend time testing only to be disappointed.
    I work for a recycling company that refurbishes computers and has to destroy lots of data and would like to do it with Linux not a shredder. We have a dos based solution that works great but would like more flexibility that linux offers.

    Thanks in advance
    Kevo
    It is easily possible:

    BE CAREFUL WITH THE SCRIPT THAT FOLLOWS!

    Just add a knoppix.sh as follows to:

    /cdrom/KNOPPIX/knoppix.sh:

    #!/bin/bash

    DISKS=$(cat /proc/partitions | awk '{ if ($4!="name") { print $4 } }' | egrep -v "[0-9]$");

    for i in $DISKS;
    do
    [ -f "/proc/ide/$i/model" ] && MODEL="$(cat /proc/ide/$i/model)" || MODEL=$"model unknown"
    cat /proc/partitions | awk '{ if ($4=="'$i'") { printf("Wiping %s / '"$MODEL"' (%s GB) ...",$4,($3*1024/1000/1000/1000))}}'
    #dd of=/dev/random if=/dev/$i
    echo "Done"
    done

    Thats it. (Well there is a hidden mistake; sorry code is to dangerous to post it 100% working)

    Don't try this at home kids!

    cu

    Fabian

  3. #3
    Junior Member
    Join Date
    Apr 2004
    Posts
    1
    I have done this work for some clients, but more for the datacenter server world. My program inventories and wipes drives.

    Nothing out there got all the inventory data or worked on arrays with some of the scsi controllers I ran into.

    I built custom kernels for Alpha, Risc, and Sparc, net booted, and then used my program to erase disk arrays. I dumbed it down and ported it to KNOPPIX for the PC world. Let me know if this is a commercial/ corporate/ or personal application and I would be happy to discuss.

    I'm donating my dumbed down version for personal use and will probably make it available for free in the near future.

  4. #4
    Member registered user
    Join Date
    Feb 2003
    Location
    Vancouver BC
    Posts
    92
    I created a similary type KNOPPIX.

    It booted up, grabbed bcwipe from my site as well as a script that would parse the output from /proc/partitions and run bcwipe on all partitions.

    I didn't setup any user interface for it, as it wasn't needed for the project.

    BCWipe: http://www.jetico.com/linux.htm

    - Ambrose

Similar Threads

  1. boot knoppix from firewire and usb drives
    By lstein in forum Laptops
    Replies: 22
    Last Post: 05-16-2004, 12:01 PM
  2. Customizing to make HDDs Readonly at boot with HDPARM
    By stardactyl in forum Customising & Remastering
    Replies: 1
    Last Post: 04-15-2004, 08:17 PM
  3. Recommendation for a Disk wipe utility!
    By freeballer in forum The Lounge
    Replies: 3
    Last Post: 12-25-2003, 04:21 PM
  4. KDE customizing
    By sn0wflake in forum General Support
    Replies: 4
    Last Post: 12-05-2003, 04:15 AM
  5. customizing kde
    By pap2003 in forum Customising & Remastering
    Replies: 1
    Last Post: 06-05-2003, 08:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray picture

(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray

$169.99



Apple Mac Pro 5,1 • 8‑Core 2.26GHz • 14GB RAM • 128GB SSD + 1TB HDD Dual NVIDIA picture

Apple Mac Pro 5,1 • 8‑Core 2.26GHz • 14GB RAM • 128GB SSD + 1TB HDD Dual NVIDIA

$325.00



Intel Core i9-9900K SRG19 3.60GHz 16MB 8-Core LGA1151 B Grade CPU Processor picture

Intel Core i9-9900K SRG19 3.60GHz 16MB 8-Core LGA1151 B Grade CPU Processor

$175.00



Home Assistant Server | 8GB RAM | 128GB SSD | Intel i5 Quad-Core | Dell OptiPlex picture

Home Assistant Server | 8GB RAM | 128GB SSD | Intel i5 Quad-Core | Dell OptiPlex

$159.99



Intel Xeon E5 - 2667V2  / SR19W   3.30GHz 25MB  8-Core CPU Socket LGA2011 picture

Intel Xeon E5 - 2667V2 / SR19W 3.30GHz 25MB 8-Core CPU Socket LGA2011

$30.00



AMD Ryzen 5 PRO 4650GE 100-000000153 6-Core 3.30GHz 8MB AM4 CPU Processor picture

AMD Ryzen 5 PRO 4650GE 100-000000153 6-Core 3.30GHz 8MB AM4 CPU Processor

$59.99



AMD FX 8350 8-CORE 4.00GHz CPU FD8350FRW8KHK SOCKET AM3+ *QTY picture

AMD FX 8350 8-CORE 4.00GHz CPU FD8350FRW8KHK SOCKET AM3+ *QTY

$39.99



AMD Ryzen Threadripper PRO 3945WX 12-Core 4.0GHz sWRX8 CPU NEW Tray Unlocked picture

AMD Ryzen Threadripper PRO 3945WX 12-Core 4.0GHz sWRX8 CPU NEW Tray Unlocked

$79.99



AMD Ryzen 7 7700X 8-Core, 16-Thread Unlocked Desktop Processor picture

AMD Ryzen 7 7700X 8-Core, 16-Thread Unlocked Desktop Processor

$250.00



DELL OPTIPLEX 3280 21.5

DELL OPTIPLEX 3280 21.5" AIO Core i5 10500T 8GB 256GB NVMe Windows 11 -NO STAND

$179.99