-
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
![Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot picture](/store/img/pB0AAOSwrbRkIWhk/s-l225//Fanxiang-4TB-2TB-1TB-SSD-550MB-s-2-5-SATA-III-Inte.jpg)
Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot
$179.54
![4TB Ssd 870evo Internal Solid State Drive Hard Disk 2.5 Inch For Laptop SSD picture](/store/img/ftAAAOSwRuxmjLMQ/s-l225//4TB-Ssd-870evo-Internal-Solid-State-Drive-Hard-Dis.jpg)
4TB Ssd 870evo Internal Solid State Drive Hard Disk 2.5 Inch For Laptop SSD
$45.17
![Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture](/store/img/pJUAAOSwFaRkhuj-/s-l225//Netac-1TB-2TB-512GB-Internal-SSD-2-5-SATA-III-6Gb-.jpg)
Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot
$107.99
![Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot picture](/store/img/vt0AAOSwAgVls0tY/s-l225//Fanxiang-M-2-SATA-SSD-2TB-1TB-512GB-256GB-SSD-Inte.jpg)
Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot
$109.99
![Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5](/store/img/RzIAAOSwSZNlN-zB/s-l225//Patriot-P210-128GB-256GB-512GB-1TB-2TB-2-5-SATA-3-.jpg)
Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot
$19.99
![Samsung PM871 Series 128GB internal 2.5](/store/img/2ecAAOSwI7VmkC6s/s-l225//Samsung-PM871-Series-128GB-internal-2-5-SATA-6-0Gb.jpg)
Samsung PM871 Series 128GB internal 2.5" SATA 6.0Gbp/s SSD drive
$10.00
![128/256/512GB 1TB NVMe M.2 SSD, Misc Brands and Models, Tested and Cleaned picture](/store/img/dScAAOSw8p5mkBKs/s-l225//128-256-512GB-1TB-NVMe-M-2-SSD-Misc-Brands-and-Mod.jpg)
128/256/512GB 1TB NVMe M.2 SSD, Misc Brands and Models, Tested and Cleaned
$13.99
![2tb Ssd 870Evo Internal Solid State Drive Hard Disk 2.5 Inch Sata SSD For Laptop picture](/store/img/P0oAAOSweMVmkH0y/s-l225//2tb-Ssd-870Evo-Internal-Solid-State-Drive-Hard-Dis.jpg)
2tb Ssd 870Evo Internal Solid State Drive Hard Disk 2.5 Inch Sata SSD For Laptop
$73.00
![Fanxiang 4TB 2TB 1TB SSD 2.5'' SATA III 560MB/s Internal Solid State Drive lot picture](/store/img/0dMAAOSw99Zl7sby/s-l225//Fanxiang-4TB-2TB-1TB-SSD-2-5-SATA-III-560MB-s-Inte.jpg)
Fanxiang 4TB 2TB 1TB SSD 2.5'' SATA III 560MB/s Internal Solid State Drive lot
$188.09
![M.2 NVMe SSD 128GB 256GB 512GB Single Notch with Windows Installed 10 / 11 picture](/store/img/CDIAAOSwsQllZvFS/s-l225//M-2-NVMe-SSD-128GB-256GB-512GB-Single-Notch-with-W.jpg)
M.2 NVMe SSD 128GB 256GB 512GB Single Notch with Windows Installed 10 / 11
$85.25