Tiny Core Base > TCB Talk

How to setup partitions and exit?

<< < (2/2)

coreplayer2:

--- Quote from: Eddiie on August 15, 2019, 02:02:23 AM ---Hello,
I want to use TC to simply run from a USB stick and erase any partitions that exist on a connected hard disk (fdisk -l shows it as /dev/sdb, make 2 new Linux partitions and exit (or loop indefinitely).

--- End quote ---
This sounds extremely dangerous!  And possibly illegal?
[emoji15]


Sent from my iPhone using Tapatalk

PDP-8:
That's one reason one should *never* try to use an abandoned usb stick laying around somewhere for booting, or even for simple internal inspection unless you have a forensic box.

PDP-8:
This poses an interesting situation for a utility like this --

Would the protect boot code - even though you aren't protecting anything at this point - come on early enough in the boot process to only allow those who know the password to proceed?

Say for instance in a recycling facility where something like this could be used by the unskilled who are trying to do the right thing by erasing previous user's data.

All they have to know is one thing - the protect password / passphrase to continue..

Or would protect come on too late in the process?

jazzbiker:

--- Quote from: PDP-8 on August 16, 2019, 04:45:50 PM ---This poses an interesting situation for a utility like this --

Would the protect boot code - even though you aren't protecting anything at this point - come on early enough in the boot process to only allow those who know the password to proceed?

Say for instance in a recycling facility where something like this could be used by the unskilled who are trying to do the right thing by erasing previous user's data.

All they have to know is one thing - the protect password / passphrase to continue..

Or would protect come on too late in the process?

--- End quote ---

Hi, PDP-8!
I think you are talking about setting good password for tc user and "noautologin" bootcode?

jfieser:

--- Quote from: Eddiie on August 15, 2019, 09:01:05 PM ---
dd if=/dev/urandom /dev/sda  bs=512 count=1 conv=notrunc


--- End quote ---

This was helpful for me, but I had to add of=

dd if=/dev/urandom of=/dev/sda  bs=512 count=1 conv=notrunc

I intend to protect users from inadvertently wiping disks with:

read -r -p "Are you sure? [y/N] " response
response=${response,,}    # tolower
if [[ "$response" =~ ^(yes|y)$ ]]

Navigation

[0] Message Index

[*] Previous page

Go to full version