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
  •  


HPE BL460c G9 ProLiant Blade | 2x Xeon E5-2620V3 | NO RAM | P244BR | 2xHDD Tray picture

HPE BL460c G9 ProLiant Blade | 2x Xeon E5-2620V3 | NO RAM | P244BR | 2xHDD Tray

$179.00



HPE BL460c G9 ProLiant Blade | 2x Xeon E5-2630V3 | 32GB | P244BR | 2x300GB 15K picture

HPE BL460c G9 ProLiant Blade | 2x Xeon E5-2630V3 | 32GB | P244BR | 2x300GB 15K

$299.00



HPE BL460c G10 ProLiant Blade | 2x Silver 4110 | 16GB | P204I | 2x300GB 10KRPM picture

HPE BL460c G10 ProLiant Blade | 2x Silver 4110 | 16GB | P204I | 2x300GB 10KRPM

$1419.00



DELL PEM640 POWEREDGE M640 BLADE SERVER picture

DELL PEM640 POWEREDGE M640 BLADE SERVER

$539.95



HP ProLiant BL460c G9 (Gen9) 2x E5-2670V3 12 Core 3.1GHz No Ram or No Drives picture

HP ProLiant BL460c G9 (Gen9) 2x E5-2670V3 12 Core 3.1GHz No Ram or No Drives

$59.98



Cisco UCS B200 M4 Blade Server, 2x2660 V3, 40GbE, No Ram No HDD picture

Cisco UCS B200 M4 Blade Server, 2x2660 V3, 40GbE, No Ram No HDD

$35.95



Dell PowerEdge M620 0F9HJC Blade Server 2*E5-2670 2.60GHz 192GB RAM 2*300GB SAS picture

Dell PowerEdge M620 0F9HJC Blade Server 2*E5-2670 2.60GHz 192GB RAM 2*300GB SAS

$103.99



DELL M630 BLADE SERVER x2 XEON E5-2660V3 @ 2.6GH H730 PERC HDD CADDIES 16GB FC picture

DELL M630 BLADE SERVER x2 XEON E5-2660V3 @ 2.6GH H730 PERC HDD CADDIES 16GB FC

$50.00



HP ProLiant BL460c Gen9 Blade 2x E5-2680v3 2.5GHz =24 Cores 256GB P246 650FLB picture

HP ProLiant BL460c Gen9 Blade 2x E5-2680v3 2.5GHz =24 Cores 256GB P246 650FLB

$430.00



Dell PowerEdge M620 Blade Server picture

Dell PowerEdge M620 Blade Server

$39.99