Results 1 to 2 of 2

Thread: problem with config files in persistant home directory

Hybrid View

  1. #1
    Junior Member
    Join Date
    Mar 2004
    Posts
    1

    problem with config files in persistant home directory

    The bugs place doesn't seem to be up, so I guess I'll post this here.
    (When I wrote this I wrote it as if the recipient was one of the developers.)

    Short story:
    Can you make it not unmount my home directory when I have my config files saved in my home directory?

    Long story:
    I made a persistant home directory using the entire partition of my USB memory stick.
    USB disk is now one partition formatted as ext2.
    (I now have to boot with option home=/dev/sd[a..z]1 rather than home=scan.
    Suggestion: if it finds an empty knoppix.img file on a partition, and the partition is ext2, then mount that partition as /home/knoppix or perhaps name the partition Knoppix and look for that.)

    Back to the real problem.
    I later saved the configuration on the same USB stick.
    (booted with options: "knoppix home=/dev/sdb1 myconfig=scan")
    (I added a line to the default knoppix.sh script to debug a bit.)

    knoppix@ttyp0[knoppix]$ cat /mnt/sdb1/knoppix.sh
    #!/bin/sh
    [ "`id -u`" = "0" ] || { echo "You need root privileges to modify the system!" >&2 ; exit 1; }
    [ -d "$1" ] && CONFIGS="$1/configs.tbz"
    [ -f "$CONFIGS" ] || CONFIGS="/cdrom/KNOPPIX/configs.tbz"
    [ -f "$CONFIGS" ] || CONFIGS="/mnt/floppy/configs.tbz"
    if [ -f "$CONFIGS" ]; then
    echo "Extracting config archive $CONFIGS..."
    tar -jpPtf "$CONFIGS" | while read i; do rm -f "$i"; done
    tar -jpPxf "$CONFIGS" ; chown -R knoppix.knoppix /home/knoppix
    fi
    mount >/tmp/mount.txt

    So, when the configuration is loaded you can see that the home dir is mounted correctly.

    knoppix@ttyp0[knoppix]$ cat /tmp/mount.txt
    /dev/root on / type ext2 (rw)
    /dev/cdrom on /cdrom type iso9660 (ro)
    /dev/cloop on /KNOPPIX type iso9660 (ro)
    /ramdisk on /ramdisk type tmpfs (rw,size=817824k)
    usb on /proc/bus/usb type usbdevfs (rw,devmode=0666)
    /dev/sdb1 on /mnt/sdb1 type ext2 (rw,nosuid,nodev)
    /mnt/sdb1 on /home/knoppix type none (rw,bind)

    However, afterward it is unmounted for some strange reason.

    knoppix@ttyp0[knoppix]$ mount
    /dev/root on / type ext2 (rw)
    /dev/cdrom on /cdrom type iso9660 (ro)
    /dev/cloop on /KNOPPIX type iso9660 (ro)
    /ramdisk on /ramdisk type tmpfs (rw,size=817824k)
    usb on /proc/bus/usb type usbdevfs (rw,devmode=0666)
    /dev/sdb1 on /mnt/sdb1 type ext2 (rw,nosuid,nodev)
    automount(pid592) on /mnt/auto type autofs (rw,fd=4,pgrp=592,minproto=2,maxproto=4)

    I think this can be fixed by adding a few lines to /etc/rcS.d/S00knoppix-autoconfig Line 1058
    Currently:
    umount "$MYCONFMOUNTPOINT" 2>/dev/null
    Suggestion:
    Add a check to see if $MYCONFMOUNTPOINT is mounted as home.
    (Sorry, I don't know shell scripting, so you'll have to finish this part on your own.)

    Thanks,
    Orson Jones

  2. #2
    Junior Member
    Join Date
    Sep 2004
    Posts
    1

    same bug in new releases

    Same problem in the new 3.6

    Any ideas why this was ignored?

Similar Threads

  1. Replies: 1
    Last Post: 05-21-2005, 11:50 AM
  2. Where is the persistant home directory and how do I delete
    By Harry Kuhman in forum General Support
    Replies: 6
    Last Post: 12-07-2004, 12:31 AM
  3. Help with files that aren't in the home directory using...
    By WastedFX in forum General Support
    Replies: 7
    Last Post: 11-19-2004, 04:02 PM
  4. Knoppix Persistant Home Directory & Saving Configuration
    By turbines in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 04-21-2004, 07:53 AM
  5. creating a persistant home directory
    By matt2kjones in forum General Support
    Replies: 3
    Last Post: 11-21-2003, 07:27 PM

Posting Permissions

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


KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit picture

KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit

$19.99



Windows XP, Vista, 8.1, Linux Knoppix, Office XP,  (6 CDS) picture

Windows XP, Vista, 8.1, Linux Knoppix, Office XP, (6 CDS)

$12.00



Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive picture

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive

$5.99



KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED picture

KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED

$11.99



VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION) picture

VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION)

$7.57



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick

$20.85



Knoppix NSM 1.2 picture

Knoppix NSM 1.2

$8.00



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick

$21.42



Hamshack Live DVD-ROM picture

Hamshack Live DVD-ROM

$7.00



Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006 picture

Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006

$34.01