-
Senior Member
registered user
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.)
-
Senior Member
registered user
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
-
By cheetahman in forum General Support
Replies: 19
Last Post: 03-21-2005, 11:58 AM
-
By Steven Hair in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 09-29-2004, 03:04 PM
-
By maurovik in forum Laptops
Replies: 0
Last Post: 09-03-2004, 08:22 AM
-
By jazzback in forum Customising & Remastering
Replies: 0
Last Post: 06-01-2004, 12:52 AM
-
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
-
Forum Rules

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack
$826.09

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot
$573.98

Lot of 7 SK hynix 16GB DDR4-2400 ECC RDIMM HMA42GR7AFR4N-UH Lenovo 112GB
$369.99

64GB DDR5 Registered ECC Server Memory PC5-38400R 1x64GB SK Hynix
$2699.00

Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack
$175.90

Sandisk 32GB 64GB 128GB 256GB Cruzer Glide Flash Drive USB 2.0 Memory Lot
$201.78

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot
$285.90

USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot
$3.75

SK hynix 16GB DDR4 288-Pin DIMM PC4-2133P ECC Registered RAM HMA42GR7MFR4N-TF
$50.00

Intel Optane PMem 256GB DDR4 3200MHz 200 Series ECC RDIMM Memory NMB1XXD256G2S
$230.00