Results 1 to 2 of 2

Thread: KNOPPIX no longer creates all mount points and symlinks with flash drive ?

  1. #1

    Talking KNOPPIX no longer creates all mount points and symlinks with flash drive ?

    Hello

    Is KNOPPIX no longer creating the mount points and symlinks to your partitions of the hard
    drive ?

    Perhaps you would like to have '/mnt/iso' and '/mnt/img' added also ?

    Well, this shell script called 'mkdirs.sh' should do the job.

    After making a bootable flash drive, installing .deb files, and putting the programs that I wanted, booting KNOPPIX again didn't create all the symlinks like a fresh install does.

    Here is my solution instead of creating all those mount points by hand.
    -----------------------------------------------------------------------------------------------------------------------
    #!/bin/sh
    #
    # This script removes the 'temp' directory in home as well as the existing '/mnt' and '/media' mount points.
    # The /etc/fstab is scanned and filtered to only print '/dev/xxxx' and '/media/xxxx' into a temp file.
    # The temp file is echoed to screen.
    # the '/media/xxxx' mount points are created from this file.
    # A for loop reads '/media/*' to get the 'hdxxx, or sdaxx, sdbxx' and so on.
    # By using ln -s, we create symlinks to '/media/xxxx'.
    # So, now we have '/mnt/sda1 -> '/media/sda1', or whatever the mount point directory is.
    # Note error messages are sent to the '/dev/null' black hole, or bit-bucket.
    #
    # Wayne D. Andrews, September 6, 2010 aka, Flying2Eagles
    #
    # Remove temp file in home directory.
    rm -rf ~/temp 2> /dev/null
    # Delete existing directory.
    #Delete current /media and /mnt directories, we will re-create them.
    #
    rm -rf /media/* 2> /dev/null # This prevents 'File Not Found' message.
    rm -rf /mnt/* 2> /dev/null
    # Create a new '~/temp' folder.
    mkdir ~/temp 2>/dev/null
    # Echo text from '/etc/fstab'
    # Print fields 1 and 2.
    #Delete all lines starting with '#'.
    #Delete 'sysfs'.
    #delete 'proc'
    #Omit line with 'none'.
    # Send output to file named 'temp1'.
    cat /etc/fstab|awk '{print $1, $2}'|sed -e '/^#/d' -e '/^proc/d' -e '/^sysfs/d'|
    grep -iv none > ~/temp/temp1
    # change to '~temp' directory.
    cd ~/temp/
    # Echo temp1 file, read a line.
    cat temp1|while read line
    do
    # Print results to screen.
    echo $line
    # Create directory from text.
    mkdir $line 2> /dev/null
    done
    mkdir /media/iso 2> /dev/null
    echo "/media/iso"
    mkdir /media/img 2> /dev/null
    echo "/media/img"
    # Delete '~/temp/temp1' folder & file.
    rm -rf ~/temp 2>/dev/null
    cd /media/
    med='/media/'
    mount='/mnt/'
    cd $med
    for i in *
    do
    ln -s "$med"$i "$mount"$i
    echo 'Link ' "$mount$i"' ->'"$med$i" ' Created'
    done

    -----------------------------------------------------------------------------------------------------------------------

    This script seems to work ok for my wireless Acer Aspire One netbook.
    I haven't tried it on my desktop computer yet.

    This script is run prior to mounting anything first.

    If you can make it better please do so, as I'm using the Linux Pocket Guide to get ideas for this script.
    Don't forget the usual 'chmod u+rwx mkdirs.sh' to make the script executable.
    Put it in the '/mnt-system/' directory.

    Flying2Eagles

  2. #2
    Note: This script is for those using the Knoppix 6.0.1 on their flash drives.
    the newer 6.2.1 works fine and this script is not needed for it.

    The C C++ compiler, V4.3.3 seems to work with Vice source code, which is why I still have the old Knoppix version on a 4GB flash drive.

    The newer C++ V4.4.4 gives errors when compiling Vice 2.2.
    The Debian install of Vice works, but the mouse pointer doesn't work with Geos 2.0 for the 64 version.
    The compiled version of Vice works fine.

    You have to Start up Knoppix 6.0.1, Go to console mode.
    Tar vice with -czvpPf /mnt/sdaxx/Vice.tgz /usr/bin/vice /usr/share/man/man1/ (64, 128, pet, and other man docs) \
    > ..path to Basic and Kernal roms /root/.vice/vicerc (to save your settings).
    This will save Vice with paths and permissions as a tarball on your hard drive.

    Now Start Knoppix 6.2.1 and mount the drive that has the tarred vice.
    Use -xzvpPf /mnt/sdaxx/Vice.tgz to install vice to memory.
    When you shut down Vice should be in the Knoppix image.

    This works for me O.K.
    flying2Eagles

    P.S., I guess by now you can tell I am a long time Commodore fan.
    I used to go to A.C.U.G. in Burlington, N.C., a computer Club once a month on Thursdays.
    Sadly, it no longer exist now. (This was back in the 90's).

Posting Permissions

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


G5T03 Dell Intel DC S3700 Series 800GB SATA 6Gb/s 2.5

G5T03 Dell Intel DC S3700 Series 800GB SATA 6Gb/s 2.5" SSD 0G5T03 SSDSC2BA800G3E

$55.00



HPGYT DELL 960GB SATA 6Gb/s 2.5in Internal SSD 0HPGYT MTFDDAK960TCB picture

HPGYT DELL 960GB SATA 6Gb/s 2.5in Internal SSD 0HPGYT MTFDDAK960TCB

$59.00



M.2 NVME SATA SSD Enclosure USB 3.2 Gen 2 10Gbps for M-Key or M+B Key SSD to 8TB picture

M.2 NVME SATA SSD Enclosure USB 3.2 Gen 2 10Gbps for M-Key or M+B Key SSD to 8TB

$40.86



ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID picture

ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID

$58.99



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

$14.99



Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture

Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot

$13.99



Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot picture

Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot

$13.99



SSD 2TB high speed 870  SATAIII  2.5 inch Internal Solid State 4 PC (Unbrand) picture

SSD 2TB high speed 870 SATAIII 2.5 inch Internal Solid State 4 PC (Unbrand)

$59.99



Fanxiang SSD 512GB 1TB 2TB 4TB 2.5''SATA III Internal Solid State Hard Drive LOT picture

Fanxiang SSD 512GB 1TB 2TB 4TB 2.5''SATA III Internal Solid State Hard Drive LOT

$188.99



Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot picture

Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot

$107.99