0
  1. I need to view had drive serial number gigs etc also computer hardware info( CPU ram etc) like a system profile.

  2. I also need to auto wipe hard drive( doesn't need to have a partition)when done.

I work with laptops and get them in 100 to 200 at a time but wiping one by one takes to long.I want to just plug in a USB, boot to Ubuntu then it give me the info and then ask to wipe hard drive.

muru
  • 207,228

1 Answers1

0

You should be able to do all of that from the BIOS of a system so without the need to enter the operating system it holds.

I want to just plug in a usb, boot to Ubuntu then it give me the info and then ask to wipe hard drive.

Also a possibility. Create a live session (with persistent storage if you want to create a script with commands) and you can use a couple of commands to get all you want.

These 3 will show lots of info...

sudo dmidecode --type bios
sudo dmidecode --type system
sudo dmidecode --type memory

You can also use >> /dir/persistent/storage/info.txt behind each of the commands to store the info on the live session.

Formatting a disc is a command too. Have a look at https://askubuntu.com/a/517365/15811 for a couple of methods. One of them will be ...

mkfs -t ext4 /dev/sdb1 

This is an example; you need to change /dev/sdb1 to the device that holds the unmounted partitions. It is likely it will be in /media/ with a unique id (UUID) that changes per system so putting it into a script will be difficult (but not impossible).

You really do not want a partition formatted automatically when booting.

Rinzwind
  • 309,379