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
  •  


Western Digital 1TB Caviar WD1002FBYS Enterprise SATA Hard Disk Drives picture

Western Digital 1TB Caviar WD1002FBYS Enterprise SATA Hard Disk Drives

$24.99



Western Digital 1TB WD Blue SA510 SATA SSD Internal 2.5”/7mm Cased - WDS100T3B0A picture

Western Digital 1TB WD Blue SA510 SATA SSD Internal 2.5”/7mm Cased - WDS100T3B0A

$89.99



832514-B21 HPE 1TB SAS 12Gb/s 7.2K SFF SC HDD 832984-001 picture

832514-B21 HPE 1TB SAS 12Gb/s 7.2K SFF SC HDD 832984-001

$129.00



Samsung PM991 1TB M.2 SSD Internal PCIe 3.0x4 2230 NVMe R31264 Solid State Drive picture

Samsung PM991 1TB M.2 SSD Internal PCIe 3.0x4 2230 NVMe R31264 Solid State Drive

$95.00



Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5

Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot

$19.99



Samsung - Geek Squad Certified Refurbished 980 PRO 1TB Internal SSD PCIe Gen ... picture

Samsung - Geek Squad Certified Refurbished 980 PRO 1TB Internal SSD PCIe Gen ...

$71.99



2 PACK  Seagate ST1000LM035 Mobile HDD 1TB 2.5

2 PACK Seagate ST1000LM035 Mobile HDD 1TB 2.5" SATA III Laptop Hard Drive

$26.85



Samsung - Geek Squad Certified Refurbished 870 EVO 1TB SATA Solid State Drive picture

Samsung - Geek Squad Certified Refurbished 870 EVO 1TB SATA Solid State Drive

$67.99



Apple 1TB Solid State Drive for Apple MacBook Pro picture

Apple 1TB Solid State Drive for Apple MacBook Pro

$80.00



1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot picture

1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot

$80.39