Results 1 to 2 of 2

Thread: HAL , fstab , management of Drives

  1. #1
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    England
    Posts
    177

    HAL , fstab , management of Drives

    (I've started this new thread to split out one answer to a multiple-subject question ).

    Knoppix is principally a LiveCD system (with semi-official adaptations for Hard Drive installation).
    So in places it is hard-coded for the User Name "knoppix", and you will get fewer problems if you use "knoppix" as your User Name in a Hard Drive installation.

    For using another <username> this 'kludge' helps with drives management :
    Edit the lines (93 & 94 in Knoppix 5) in /usr/sbin/rebuildfstab
    from
    Code:
       [ -n "$user" ] && options="$options,uid=$user"
       [ -n "$group" ] && options="$options,gid=$group"
    to
    Code:
       [ -n "$user" ] && options="$options,uid=<username>"
       [ -n "$group" ] && options="$options,gid=<username>"
    You might also need to ensure that the daemons are running by e.g :
    Code:
    dpkg-reconfigure hal dbus
    EDITED 14:18 hrs GMT: I've found a bit of code in /etc/init.d/knoppix-hd-autoconfig which allows it to work with any non-root User Name; insert code as shown between lines 92 and (old)93 in /usr/sbin/rebuildfstab to give :-
    Code:
       case "$fstype" in
       ntfs*|vfat|msdos)
       for d in $(ls -1d /home/*/Desktop); do
    	if [ -d "$d" ]; then
    	user="${d%/Desktop}"
    	user="${user#/home/}"
    	fi
       done
       group=$user
       [ -n "$user" ] && options="$options,uid=$user"
       [ -n "$group" ] && options="$options,gid=$group"
       ;;
       esac
    (I show the complete case...esac condition for clarity.)

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    England
    Posts
    177
    Addendum: I've found out that if you edit /usr/sbin/rebuildfstab using KWrite (instead of e.g.vim) it loses its executable status.

    You can test for this from the command line by
    Code:
    ls -l /usr/sbin/rebuildfstab
    and restore executability by
    Code:
    chmod 0755 /usr/sbin/rebuildfstab
    (or by right-click on the file in Konqueror, select Properties, Permissions, check "is executable" box).

Similar Threads

  1. Problem when moving New Fstab to the Old Fstab to fix Suse
    By cheetahman in forum General Support
    Replies: 19
    Last Post: 03-21-2005, 11:58 AM
  2. Knoppix Power Management
    By Steven Hair in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 09-29-2004, 03:04 PM
  3. Problems with power management
    By maurovik in forum Laptops
    Replies: 0
    Last Post: 09-03-2004, 08:22 AM
  4. WIFI management.
    By jazzback in forum Customising & Remastering
    Replies: 0
    Last Post: 06-01-2004, 12:52 AM
  5. Cookie Management
    By A. Jorge Garcia in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 11-02-2003, 09:43 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
  •  


OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN picture

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN

$145.00



pfSense Firewall 16-Core Atom C3958 8GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI VPN picture

pfSense Firewall 16-Core Atom C3958 8GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI VPN

$184.99



OPNsense pfSense 16-Core Atom C3958 16GB ECC RAM 512GB SSD 8-Port QAT AES-NI VPN picture

OPNsense pfSense 16-Core Atom C3958 16GB ECC RAM 512GB SSD 8-Port QAT AES-NI VPN

$258.00



SonicWall TZ280 Firewall 03-SSC-6933 Advanced Edition 3YR NEW SEALED picture

SonicWall TZ280 Firewall 03-SSC-6933 Advanced Edition 3YR NEW SEALED

$999.99



Firewalla Gold Pro - 10 Gbps Cyber Security Firewall picture

Firewalla Gold Pro - 10 Gbps Cyber Security Firewall

$680.00



Fortinet FortiGate 60F FG-60F P24286-03-13 Network Firewall Security Appliance picture

Fortinet FortiGate 60F FG-60F P24286-03-13 Network Firewall Security Appliance

$155.75



Firewalla Gold Pro 10GbE Firewall Router with Rack Mount Ears and USB Key picture

Firewalla Gold Pro 10GbE Firewall Router with Rack Mount Ears and USB Key

$829.99



Palo Alto PA-220 Next-Gen Firewall 520-000309-00J picture

Palo Alto PA-220 Next-Gen Firewall 520-000309-00J

$40.00



Cisco Meraki MX67-HW Security Appliance Firewall NEW Unused Unclaimed picture

Cisco Meraki MX67-HW Security Appliance Firewall NEW Unused Unclaimed

$202.50



NETGEAR ProSafe 8-Port Gigabit VPN Firewall FVS318G NEW IN BOX picture

NETGEAR ProSafe 8-Port Gigabit VPN Firewall FVS318G NEW IN BOX

$69.99