Results 1 to 6 of 6

Thread: does "tohd=/dev/xxx" copy just the files from the KNOPPIX directory?

  1. #1
    Junior Member
    Join Date
    Feb 2017
    Location
    western hemisphere
    Posts
    4

    does "tohd=/dev/xxx" copy just the files from the KNOPPIX directory?

    i'm asking this more from curiosity than anything else, but i haven't found anything in the FAQ or forum yet that explains the details of what "tohd=" does; if anybody can answer my question in a second or two, i would appreciate it. if not, no answer is OK, too.

    i finally bought a new laptop last year. it has a 931GiB disk, which had Win10 installed on it; i don't use it very often (mostly just to get Win10 updates), so i booted from my USB knoppix 7.6 drive, shrank the Win10 partition down to a 146GiB, and put the remaining 773GiB into a new partition, on which i created an ext4 filesystem. i then rebooted using the "fromhd=" parameter, and everything works fine. my intention is to either boot into Win10 or (more likely) use a knoppix USB drive to boot into knoppix using the "fromhd=" parameter. i later booted from the USB drive again, and it would appear that the only files that "tohd=" put onto the partition were the ones found in the KNOPPIX directory on the USB drive.

    i only recently started making extensive use of the laptop, because the job i used to have was 24/7/365, and i didn't get much rest, let alone time to mess with the machine. now that i can play around, i have begun storing files on the ext4 partition, but it occurred to me that if "tohd=" re-images the partition the way flash-knoppix does, having data stored on the same partition isn't a good idea. if, OTOH, i can just copy the files from the USB drive (or loop-mount the latest ISO and copy from that), i'm OK where i'm at.

    any quick explanation of "tohd=?"

  2. #2
    In my case, I used "tohd=/dev/sda2 mkimage" booting from my knoppix pendrive to copy knoppix to the internal hard drive (it only creates a normal folder named KNOPPIX). My data and changes are always encrypted with a password (AES256) and when I boot with the pendrive it searches for this folder automatically, I don't need to use the cheatcode "fromhd". When I type rhe password after knoopix asks me to use the encrypted data then I can continue without the pendrive. If I want to boot only from the pendrive (not from the folder of the hard drive) then I need to use "fromhd=/dev/sdb1" and so it avoids the harddrive. You don't need nothing more or format anything. It creates a folder inside your Windows o.s. and boots from there.

  3. #3
    Junior Member
    Join Date
    Feb 2017
    Location
    western hemisphere
    Posts
    4
    thanks, joselb.

    when i originally did the "tohd=," i didn't use mkimage with it. now that U have mentioned it, that brings up another question. am i correct in assuming that the mkimage cheatcode generates the overlay file? i have never used it, so i don't know.

    since my original post, i bit the bullet, backed up all the files i had on the ext4 partition (Just In Case), and copied all the files from the KNOPPIX folder of the 7.7.1 .ISO to the partition (after re-naming the original directory put there by "tohd=" from my 7.6 USB flash drive ... also Just In Case). i then re-flashed the drive with flash-knoppix and booted the system, and all is good.

    when i was using knoppix 7.2 (on other people's borrowed computers), i used an aes-encrypted overlay, but the flash drive bit the dust, and i lost everything (i know, i should have backed it up ... but i didn't). when i got this computer, i decided to use other ways to obfuscate and encrypt the stuff i want to keep private instead of an overlay file. what i have now is therefore not standard, but it works, and is *exactly* what i want.

    again, thank U for the help!

  4. #4
    Member registered user
    Join Date
    Dec 2006
    Posts
    44
    Yes, tohd=/dev/sda2 copies the KNOPPIX directory from your boot medium to the root of the partition /dev/sda2. It does not copy minirt.gz and the kernels linux and linux64 from bootmedium/boot/isolinux , so you cannot boot Knoppix using only the copied KNOPPIX directory.

    What do you want to do ?

    If you do not want to mess with your Windows boot partition, you can boot from your USB stick and use the cheatcode fromhd=/dev/sda2 to use the /KNOPPIX files on the hard disk. This will boot Knoppix, and once it is up and running you can remove the USB stick. There is no persistent storage, so when you e.g. change settings, they will disappear when you shut down.

    If you want to use your ext4 partition (guessing it's /dev/sda3) as persistent storage for Knoppix, you must create a file /dev/sda2/KNOPPIX/knoppix-data.inf with this content:
    Code:
    3 /KNOPPIX-DATA ext4
    This tells Knoppix to mount partition 3 on this hard disk on mountpoint /KNOPPIX-DATA as an ext4 file system.

    The next time you boot from your USB stick and use the cheatcode fromhd=/dev/sda2, Knoppix will use /dev/sda3 as persistent storage and create directories /etc , /home , /root , and /var to be used for saving settings and /home/knoppix . This does NOT delete anything that is already on /dev/sda3 , so what you have stored there will not be touched.

  5. #5
    Junior Member
    Join Date
    Feb 2017
    Location
    western hemisphere
    Posts
    4
    thank, fredvej, but i boot from my USB stick, and i haven't used persistent storage in a long time. i copied the files from the KNOPPIX folder to the ext4 partition and flashed the USB stick to the same revision, then played some games and got everything where i want it. however, i appreciate learning about the way things work, so thank U for explaining about knoppix-data.inf and the way persistent storage works.

  6. #6
    Junior Member
    Join Date
    Feb 2017
    Location
    western hemisphere
    Posts
    4

    Thumbs up

    OK, i have to admit that i'm forum-challenged; i posted a response to both joselb and fredvej, but neither got through. i'm so confused!

    actually, all is well now, but i appreciate the responses of both of U. as usual, when one RsTFM ("Reads" TFM) and doesn't find an answer, asking others almost always helps.

    anyhow, before i got any answers, i ended up backing up all the files i had on the ext4 partition, then copying the contents of the KNOPPIX folder from the .ISO for 7.7.1 to the partition, flashing the USB thumb drive to 7.7.1, and rebooting. as U folks intimated, all went well, and i'm back up with a later version.

    again, thank U very much!

Posting Permissions

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


Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS picture

Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS

$721.06



H261-Z61 2U 24SFF AMD Server 8x EPYC 7551 256-Cores 256GB RAM 8x25G NIC 2x2200W picture

H261-Z61 2U 24SFF AMD Server 8x EPYC 7551 256-Cores 256GB RAM 8x25G NIC 2x2200W

$2512.18



CSE-118 Supermicro 1U 3x GPU Server  2.1Ghz 16-C 128GB CX353A 2x1600W PSU Rails picture

CSE-118 Supermicro 1U 3x GPU Server 2.1Ghz 16-C 128GB CX353A 2x1600W PSU Rails

$450.03



Dell PowerEdge R630 8SFF 2.6Ghz 20-Core 128GB Mem 4x1G RJ-45 NIC 2x750W PSU picture

Dell PowerEdge R630 8SFF 2.6Ghz 20-Core 128GB Mem 4x1G RJ-45 NIC 2x750W PSU

$399.04



Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB picture

Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB

$510.00



DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45

$275.00



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD

$389.99



Dell PowerEdge R620 Server 2x Xeon  E5-2620 @ 2.0GHz 64GB RAM NO HDDs picture

Dell PowerEdge R620 Server 2x Xeon E5-2620 @ 2.0GHz 64GB RAM NO HDDs

$108.96



Dell PowerEdge R430 3.5 1U 2x E5-2690 v3 2.6ghz 24-Cores 256gb 4x Trays 2x 550w picture

Dell PowerEdge R430 3.5 1U 2x E5-2690 v3 2.6ghz 24-Cores 256gb 4x Trays 2x 550w

$289.99



HP Proliant DL360 Gen9 28 Core SFF Server 2X E5-2680 V4 16GB RAM P440ar No HDD picture

HP Proliant DL360 Gen9 28 Core SFF Server 2X E5-2680 V4 16GB RAM P440ar No HDD

$191.95