Results 1 to 7 of 7

Thread: Automatic $HOME on USB drive?

  1. #1
    Junior Member
    Join Date
    Sep 2003
    Location
    Geneva, Switzerland
    Posts
    3

    Automatic $HOME on USB drive?

    Knoppix is fantastic. I love it. One thing I would find even better is if, at boot time, it found a USB drive with a certain directory inside (say : /home ) then it could automatically mount that in place of the standard user's $HOME directory. That way, I could carry Knoppix CD and my USB$HOME with me and have all my working environment, data files included, fitting in my pocket!

  2. #2
    Junior Member registered user
    Join Date
    Mar 2003
    Posts
    18
    I haven't personally had a chance to play with this, but this should be pretty much what you're looking for:
    http://www.knoppix.net/docs/index.ph...stentHomeHowTo

    I definitely need to free up a little extra space on my USB key .

  3. #3
    Junior Member
    Join Date
    Dec 2003
    Posts
    6
    I've just figured this one out. You can create a "Persistent Home" for knoppix on a USB flash drive/key.

    -The USB Key should be in when Knoppix is booted to be sure it is recognized
    *"lsusb" is a useful command to see what's recognized

    -It will be accessible via /dev/sda if it is one big partition, or /dev/sda1 if the drive is partitioned (example; Format is /dev/sdLN where L is a different letter per device and N is per partition on that device)

    -via the KDE Gui:
    K button -> KNOPPIX -> Configure -> Create a persistent KNOPPIX home directory

    -Don't try to format the key, it is already formatted in fat or fat32.

    -Knoppix creates a "knoppix.img" file for the amount of space you specified, which it uses as a virtual home drive.

    You can now boot knoppix with the home=scan arg to use it.

    Caveats:
    -The persistent home tool likes to access partitions, so you may want to partition your USB key into 2 or more partitions using the vendor supplied utility, even if one is only 1MB and the other is the rest of the space.

    -KDE places icons for recognized storage devices on the desktop, it gets confused when there are no partitions (in my exp. at least) and shows you all 4 possible partitions, although none are really accessible

    -You may have to try manually mouting the possible devices and then using "df -k" to find the size/numbering of your partitions:
    example: mount -t vfat /dev/sda /mnt/mountpointyoucreated
    example: mount -t vfat /dev/sda1 /mnt/mountpointyoucreated
    example: mount -t vfat /dev/sda2 /mnt/mountpointyoucreated

  4. #4
    Senior Member registered user
    Join Date
    Jun 2003
    Posts
    611
    Once you create a persistent home on a usb pen, all you need is the home=scan cheatcode.

    I have set this cheatcode in the default boot options of my remaster. I also set the default resolution to 1024x768. So I can just boot normally, and if a persistent home is on a usb pen or on the hard drive, it will find it and use it without any input on my part.

  5. #5
    Junior Member registered user
    Join Date
    Dec 2003
    Posts
    17
    How about making home=scan and myconf=scan default option at boot time? It will take a few sec extra to boot, but makes life simpler for newbies.

  6. #6
    Senior Member registered user
    Join Date
    Jun 2003
    Posts
    611
    Sorry, I should have elaborated... The default boot options on my remaster are currently home=scan myconf=scan screen=1024x768

    I've also adjusted the knoppix-autoconfig script to no longer propmt a user to retry or abort detection of a persistent home using aes256 encryption for when a persistent home is not found. Also, a vncserver runs at startup (becuase I often run my remaster on boxes without cases, hard drives, monitors, et al. So I can sit on my mian box and then vnc to an overclockix box by its IP.

    You'll be prompted to enter a vnc password during the boot sequence.

  7. #7
    Junior Member
    Join Date
    Feb 2004
    Posts
    2
    but how to make home=scan and screen=1024x768 default operation without cheat code?

Similar Threads

  1. Permanent home onto Sandisk USB flash drive ruined drive
    By mjman in forum Hardware & Booting
    Replies: 9
    Last Post: 10-25-2004, 09:46 PM
  2. USB 2.0 Hard Drive Persistent Home
    By tbobz in forum General Support
    Replies: 6
    Last Post: 09-14-2004, 09:38 AM
  3. Replace default cd home drive with persistant home drive ???
    By ktheking in forum Customising & Remastering
    Replies: 6
    Last Post: 01-02-2004, 09:35 PM
  4. persistant home drive on cd-r ?
    By ktheking in forum General Support
    Replies: 4
    Last Post: 11-14-2003, 12:25 PM
  5. automatic drive mounting??
    By VeeDubb in forum General Support
    Replies: 6
    Last Post: 03-19-2003, 07:27 AM

Posting Permissions

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


HP ProLiant DL360 Gen 11 - Xeon Gold 5th Gen - 192 GB DDR5 ECC - 2x 240 GB SSD picture

HP ProLiant DL360 Gen 11 - Xeon Gold 5th Gen - 192 GB DDR5 ECC - 2x 240 GB SSD

$17000.00



Intel Xeon Phi 5110P 60-Core 1.053GHz Coprocessor   picture

Intel Xeon Phi 5110P 60-Core 1.053GHz Coprocessor

$50.00



Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS picture

Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS

$239.99



Lenovo ThinkStation P520c Intel Xeon W-2133 6-Core 3.60GHz -NO RAM/ HDD/ GPU/ OS picture

Lenovo ThinkStation P520c Intel Xeon W-2133 6-Core 3.60GHz -NO RAM/ HDD/ GPU/ OS

$127.54



Dell T7910 Workstation Tower Homelab AI Server PC - Xeon CPU - NO HDD/RAM/GPU picture

Dell T7910 Workstation Tower Homelab AI Server PC - Xeon CPU - NO HDD/RAM/GPU

$279.99



Intel Xeon E5-2680 V2 2.8GHz 10-Core 25MB 8GT/s SR1A6 LGA2011 B Grade Server CPU picture

Intel Xeon E5-2680 V2 2.8GHz 10-Core 25MB 8GT/s SR1A6 LGA2011 B Grade Server CPU

$7.95



Intel Xeon E5-2690 v4 SR2N2 14 Core 2.6GHz 35MB LGA2011-3 CPU *km picture

Intel Xeon E5-2690 v4 SR2N2 14 Core 2.6GHz 35MB LGA2011-3 CPU *km

$15.99



Intel Xeon E5-2699 v3 18 Core 2.3 GHz 45MB SR1XD LGA 2011-3 B Grade picture

Intel Xeon E5-2699 v3 18 Core 2.3 GHz 45MB SR1XD LGA 2011-3 B Grade

$15.95



Dell Precision 5820 W10 Gaming Computer Xeon W-2133 32GB 800GB SSD Quadro M2000 picture

Dell Precision 5820 W10 Gaming Computer Xeon W-2133 32GB 800GB SSD Quadro M2000

$300.00



Dell Precision T1700 Workstation Intel Xeon 16G Ram 256GG SSD Nvidia 600  Win 10 picture

Dell Precision T1700 Workstation Intel Xeon 16G Ram 256GG SSD Nvidia 600 Win 10

$109.99