how to remove drive tab from pmount? [solved]

Using applications, configuring, problems
Post Reply
Message
Author
ashes
Posts: 45
Joined: Mon 22 Aug 2011, 23:27

how to remove drive tab from pmount? [solved]

#1 Post by ashes »

hi, I'm searching for a way for puppy to show only removable drives and not the hd, in order to protect it from kids.

http://murga-linux.com/puppy/viewtopic.php?t=82664


I got the idea to modify pmount as such, that the toptab "drive" for the hd becomes unaccessible, for example to delete the tab from the pmount script.

I have been unsuccessful applying this idea, I managed to delete the words of the tab but not the "drive" tab itself.

can anybody help, please
Last edited by ashes on Sat 08 Dec 2012, 16:06, edited 1 time in total.

User avatar
Barkin
Posts: 803
Joined: Fri 12 Aug 2011, 04:55

#2 Post by Barkin »

There was a "kiosk" version of Puppy, which had no drive icons visible ...
 Step #3 Remove all Desktop Icons
Edit the file "/root/Choices/ROX-Filer/PuppyPin".
Delete all Lines beginning with <icon.

Right-Click any Drive Icon and select Drive Icon Manager.
Uncheck all boxes in all tabs of the Drive Icon Manager.

Edit the file "/root/.xinitrc".
Comment out lines 18 & 19. They contain clean_desk_icons and pup_event_frontend_d which apparently add the Drives icon to the desktop.
http://www.murga-linux.com/puppy/viewtopic.php?p=493743#493743

https://www.google.com/cse?cx=015995643981050743583%3Aabvzbibgzxo&q=kiosk&sa=Search&cof=FORID%3A0#gsc.tab=0&gsc.q=kiosk

Some computers have a password protection for the harddrive ( via the BIOS), I don't know how puppy would respond to that ..
http://blogs.computerworld.com/hard_disk_passwords_offer_great_security_for_free

postfs1

Re: how to remove drive tab from pmount

#3 Post by postfs1 »

ashes wrote: how to remove drive tab from pmount
-=pmount_wo_hdd=-

Code: Select all

#!/bin/bash
echo '#!/bin/bash' >/usr/sbin/tmounp ;
echo '/sbin/probedisk2|grep -v drive' >>/usr/sbin/tmounp ;
chmod 0755 /usr/sbin/tmounp ;
#/usr/sbin/pmount = (c) Copyright Nov 2007 Barry Kauler www.puppylinux.com
xmessage 'OK'
Note: Operating System: Quirky Linux -1.40
-=pmount_w_hdd_again=-

Code: Select all

#!/bin/bash
#/usr/sbin/pmount = (c) Copyright Nov 2007 Barry Kauler www.puppylinux.com
rm /usr/sbin/tmounp ;
xmessage 'OK'
Note: Operating System: Quirky Linux -1.40
Last edited by postfs1 on Fri 14 Mar 2014, 10:11, edited 3 times in total.

User avatar
Barkin
Posts: 803
Joined: Fri 12 Aug 2011, 04:55

#4 Post by Barkin »

Barkin wrote:Some computers have a password protection for the harddrive ( via the BIOS), I don't know how puppy would respond to that ..
http://blogs.computerworld.com/hard_disk_passwords_offer_great_security_for_free

I just tried that on my Dell. The password has to be incorrect 3 times (just hit return 3x) then boot (Puppy) from USB is possible ...
Dell.com wrote:If the correct password is not entered in three attempts, the computer tries to boot from another bootable device if the Boot Sequence option in the System Setup program is set to allow it. If the Boot Sequence option is not set to allow booting from another device, the computer returns to the state it was in when you turned it on—off, suspend mode, or suspend-to-disk mode.
https://support.dell.com/support/edocs/systems/pmojav/password.htm

If the correct password is not input the hard-drive does not appear in pmount ...
Attachments
without HDD password Hard-drive does not appear on pmount.gif
without correct password hard-drive does not appear, only removable media like USB memory and SD card.
(13.32 KiB) Downloaded 473 times

ashes
Posts: 45
Joined: Mon 22 Aug 2011, 23:27

#5 Post by ashes »

thank you postfs1. the scripts work well

thank you for your effort Barkin. postfs1's solution is what I was searching for

Post Reply