Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 17 Feb 2018, 17:56
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to hide or block acces to a partition?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
amigodetux


Joined: 20 Mar 2016
Posts: 11

PostPosted: Sun 11 Feb 2018, 02:06    Post subject:  How to hide or block acces to a partition?
Subject description: Child could erase or damage a partition, how can we hide it?
 

PROBLEM: As an educational tool Puppy Linux is excellent, but a child or an absolutely new user, could damage or erase a partition of a Hard Disk which is serious.

QUESTION: Does anyone know of any way that Puppy Linux does not read the sda ​​partitions at the start of the boot or during the boot, so that the drive can not be mounted?

REQUEST: If you know any way to do it by means of a Script or some PET, thank you very much in advance.
Back to top
View user's profile Send private message 
phat7

Joined: 05 Jun 2015
Posts: 104

PostPosted: Sun 11 Feb 2018, 02:29    Post subject:  

http://www.murga-linux.com/puppy/viewtopic.php?t=106399
Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 708

PostPosted: Sun 11 Feb 2018, 02:31    Post subject:  

Hi,
There are many ways to accomplish this, depending on how deep you want to go.

In Puppy desktop is Rox pinboard.
It doesn't show drives by default.
Puppy creates icons by a script in /usr/local/bin with name desktop_drive_icon or something similar.

You could delete it, or change it's location.

There are many discussions on this previously, you will have to search.
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4821
Location: Republic of Novo Zelande

PostPosted: Mon 12 Feb 2018, 03:06    Post subject:  

Hi, you don't mention which drive you boot from so it is difficult to offer valid information. However - I would recommend looking at this post to see if it might point you in a useful direction.

I think it may also be possible to run a script in /root/Startup which will delete /dev/sdx (depending on which drive you are aiming for). With the /dev/sdx point missing there is no way for the system to access that device.

Of course it is important to make sure that you leave online any disk that puppy is running from or has it's savefile on. (There are ways to force the savefile to load into RAM so that you can delete the drive you loaded it from but I can't specify how to do that as I do not use savefiles).

So maybe:
- Spin the drive down
- Mark the drive offline
- Delete the /dev/sdx mount point
Back to top
View user's profile Send private message 
drunkjedi


Joined: 24 May 2015
Posts: 708

PostPosted: Mon 12 Feb 2018, 10:34    Post subject:  

I think deleting the /dev/sdx would be too harsh.

Maybe the kids will only need the desktop icons deleted.
I am running Fatdog mostly, in Fatdog the drive icons are created by udev I think.
I looked in tahrpup's iso, my assumptions in previous post looks totally wrong.

I think drive icons are created by /usr/local/pup_event/pup_event_frontend_d
I looked into /usr/local/pup_event/frontend_startup script, from line 65 it reads #build the desktop icons....
Maybe if we hashed out that whole section, no drive icons will be created.

I can't test it for few days, got to take wife to hospital.
Hopefully my daughter will have a brother or sister tomorrow.

Cya later.
Back to top
View user's profile Send private message 
nic007


Joined: 13 Nov 2011
Posts: 2272
Location: Cradle of Humankind

PostPosted: Mon 12 Feb 2018, 11:47    Post subject:  

Menu > system > Puppy Event Manager > Desktop Icons > Untick the options you want to untick > restart the windows manager
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 11822
Location: Stratford, Ontario

PostPosted: Mon 12 Feb 2018, 12:08    Post subject:  

If your concern is specifically about an NTFS Windows partition, read here.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0543s ][ Queries: 14 (0.0200s) ][ GZIP on ]