I would like to have all prtitions to show up in one folder instead of being scatared all over the desktop. This is similler to My Computer in Windows. Does any body know how to?
I would like to have all prtitions to show up in one folder instead of being scatared all over the desktop. This is similler to My Computer in Windows. Does any body know how to?
I do undertand what you are trying to accomplish. There are many projects & thought on mounting & mapping filesystems. Please elaborate.
Thanks,
James
just make new folder and drag all icons or which u want into that folder
James
I am remastring knoppix and would like the system to show the icons for the hard disk partitions inside a folder on the desktop instead of having them on the desktop. I hope I am clear now.
ramaswamyps
I did that and got all partitions shown inside the folder but when I restart my PC the partitions icons come back again on the desktop also.
As far as I can tell the script /usr/bin/mkdesktophdicons creates the desktop icons on bootup. I don't know how it is getting called, although I have a feeling it is getting called from the /etc/X11/xessions.d/45xsession file. You might be able to edit the /usr/bin/mkdesktophdicons script so that it creates the icons in a folder.
I hope I am right and I hope this helps.
James
James
Thanks. You are right. It did work.
i seem not able to edit the mkhdicons file
can u please post a copy of edited file so ican copy and paste to my comp
i am not experienced in linux
thanks
ramaswamyps
Here it is:
#!/bin/bash
# (C) Klaus Knopper Nov 2002
# Recreate desktop icons for CD-Roms and harddisks in KDE and GNOME
# This script must be run as the logged in user.
DIR="$HOME/My Computer"
scan=""
verbose=""
for i in "$@"; do
case "$i" in
-s*) scan="true" ;;
-v*) verbose="-v" ;;
*) echo "Usage: $0 -s[can] -v[erbose]" >&2 ;;
esac
done
# rebuildfstab requires root privileges, calls su if necessary
[ -n "$scan" ] && rebuildfstab -r $verbose
# KDE desktop
if [ ! -d "$DIR" ]; then
mkdir -p "$DIR"
else
rm -f "$DIR"/cdrom?* "$DIR"/[hs]d[a-z][1-9]* 2>/dev/null
fi
# CD/DVD-Roms/Writers
while read p m t relax; do
case "$t" in swap) continue ;; esac
case "$p" in /dev/cdrom*)
d="${p##*/}"
cat >"$DIR"/"CD-ROM [$d]" <<ENDCDROM
[Desktop Entry]
Actions=Music;Burn;Eject
Type=FSDevice
Dev=$p
MountPoint=$m
FSType=auto
ReadOnly=1
UnmountIcon=cdrom_unmount
Name=CD-ROM [$d]
Icon=cd-record
Comment=File System Device
UnmountIcon=cdrom_unmount
[Desktop Action Eject]
Exec=kdeeject %v
Name=Eject
Dev=$i
MountPoint=/mnt/$d
Icon=player_eject
[Desktop Action Burn]
Icon=k3b
Exec=k3b %i %m -caption "%c";true
Name=Burn CD
Dev=$i
MountPoint=/mnt/$d
[Desktop Action Music]
Icon=xmms
Exec=xmms $i;true
Name=Play Music CD
Dev=$i
MountPoint=/mnt/$d
ENDCDROM
;;
esac
done </etc/fstab
# HD partitions (except swap)
while read p m t relax; do
case "$t" in swap) continue ;; esac
case "$p" in /dev/[hs]d[a-z][1-9]*)
d="${p##*/}"
cat >"$DIR"/"$d" <<ENDHD
[Desktop Entry]
Actions=Remount
Type=FSDevice
Dev=$p
MountPoint=$m
FSType=auto
ReadOnly=1
Icon=hdd_mount
UnmountIcon=hdd_unmount
Name=Hard Disk Partition [$d]
[Desktop Action Remount]
Icon=hdd_mount
Exec=remountrw $p;true
Name=Change read/write mode
ENDHD
;;
esac
done </etc/fstab
exit 0
You have to create folder My Computer in desktop folder and have an icon for it on disktop. Actually I did not prepare this file, I got it from a new distro.
thank U very much for posting this file copy
i hope i can make it work for me too
ramaswamyps

Lenovo ThinkPad L13 Yoga Touch Laptop 13.3” Core i5 8GB RAM 256GB SSD Win 11 Pro
$239.99
Lenovo ThinkPad L15 Gen 3 15.6" 16GB, Thunder Black
$241.50
Lenovo ThinkPad T14 Gen 2 i5-1145G7 16GB 512GB SSD Touch Win 11 Pro Good
$261.99
Lenovo ThinkPad E14 Gen 2 Laptop 14” HD Ryzen 5 16GB RAM 512GB SSD Win 11 Pro
$319.99
Lenovo ThinkPad E14 Gen 3 Laptop 14” FHD AMD Ryzen 5 16GB RAM 512GB SSD Win 11
$374.99
Lenovo Thinkpad T14 Gen 2i 14" 16GB 512GB, Black
$313.00
Lenovo ThinkPad L14 Gen 3 14" FHD Laptop i5 12th Gen 16GB RAM 256GB SSD Win 11
$329.99
Lenovo ThinkPad L14 Gen 2 14" Laptop Core i5-1135G7 2.40GHz 8GB RAM 256GB SSD
$124.99
Lenovo ThinkPad L15 Gen 3 15.6" 16GB, Thunder Black
$241.50
Lenovo ThinkPad T495 14” Laptop AMD Ryzen 5 PRO 16GB RAM 256GB SSD Windows 11
$229.99