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 Thu 24 Jul 2014, 16:11
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to disable mounting of SATA / IDE drives?
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 3 Posts_count   Goto page: Previous 1, 2, 3 Next
Author Message
mikeb


Joined: 23 Nov 2006
Posts: 8028

PostPosted: Wed 23 Oct 2013, 15:36    Post_subject:  

Ok seems like the graphics vary so in this case its crosses and that BEOS look....the dots were sweet and gave a feeling of mountedness. Very Happy

Your first image shows no drives mounted...the icons are only showing drives that exist. Hopefully that clarifies what is happening.
If you wanted to confirm then run the 'mount' command in a terminal.

In other distros the default is commonly to mount all drives which is not the case with puppy.

mike
Back to top
View user's profile Send_private_message 
marada2

Joined: 19 Oct 2013
Posts: 53

PostPosted: Wed 23 Oct 2013, 17:29    Post_subject:  

If I understand this correctly you are saying that unless I click on the drives they are not mounted and puppy only shows what exists. If this is the case how do I stop puppy recognizing these drives at all? I want puppy to be blind to all internal drives and not know they exist. If I make a puppy boot CD for another person in my house I really don't want them being able to browse my personal files on the internal hard drive. So how do I make puppy blind to these internal drives?
Back to top
View user's profile Send_private_message 
mikeb


Joined: 23 Nov 2006
Posts: 8028

PostPosted: Wed 23 Oct 2013, 18:23    Post_subject:  

Quote:
If I understand this correctly you are saying that unless I click on the drives they are not mounted and puppy only shows what exists
.thats the one.


Preventing the kernel seeing drives that are present is not feasible but hiding access is.

You could hide the icons the way karl mentioned or there is the eventmanager which gives the option to disable them. That would probably be enough to prevent casual browsing. The only problem is that you still want access to usb drives which gets a bit tricky especially since hard drives and usb both use the same names.. There is pmount in the menu.... or some form of auto mounter (which for puppy might want to use the standard icons.)... I would search here for automounters and see whats available.

Beyond that it would be a case of script hacking to selectively block certain drives...or play with udev rules.

mike
Back to top
View user's profile Send_private_message 
Jasper


Joined: 25 Apr 2010
Posts: 1087
Location: England

PostPosted: Wed 23 Oct 2013, 18:36    Post_subject:  

Encryption.

"Tick again" is a double joke so confusing that only mikeb may understand it.
Back to top
View user's profile Send_private_message 
marada2

Joined: 19 Oct 2013
Posts: 53

PostPosted: Wed 23 Oct 2013, 19:11    Post_subject:  

I followed the instructions provided by mike and this appears to prevent the drives from mounting. The only problem is when the user wants to plug in a usb flash drive, the internal drives then become automatically mounted again.

Heres another approach I was thinking of. Say if the internal drives are windows drives and formatted as NTFS. What about loading an old version of puppy that is unable to mount NTFS drives. I suppose the problem then is I would sacrifice some of the latest advances made in puppy. So I really don't know what to do?
Back to top
View user's profile Send_private_message 
Jasper


Joined: 25 Apr 2010
Posts: 1087
Location: England

PostPosted: Wed 23 Oct 2013, 19:34    Post_subject:  

Reserved for my final comments.

For now:

Education. Education. Education.

Encryption. Encryption. Encryption.


What will you put on your flash stick(s)?
What could you put on your flash stick(s)?

Addendum

Yet again you know, but as always (l.e. three or four days) you profess discontent and yet again move the goal posts.

Why does it matter if a flash stick (or any partition it may have) auto-mounts when you can click and see confusing coloured dots (more commonly described as red crosses).

If you use (as previously mentioned) ram2sfs from Ted Dog, but fail to include a date file in the new iso - then you will not be able to use any normal Puppy method to save anywhere. You could also install Startmount from 01micko.

Addendum 2

Use encryption, whatever else you do could be easily circumvented be me (or anybody else with a little knowledge and half a brain).



Addendum 3

As a second rate solution try going to:
Menu>Desktop>Desktop drive icons manager
then untick the first box

Save the change to a multi-session CD (so that you can pointlessly remaster later with ram2sfs).


Addendum 4

Why not just disable the drives in BIOS when you allow anyone else to use your machine and re-enable them when you need them?

Edited_times_total
Back to top
View user's profile Send_private_message 
marada2

Joined: 19 Oct 2013
Posts: 53

PostPosted: Thu 24 Oct 2013, 03:31    Post_subject:  

I know I could use encryption, but ideally I would like to have puppy not see the drives at all. I know this sounds paranoid but if puppy can see something, then a virus could be installed on non encrypted parts of the drive or could give a hacker the ability to start doing malicious things.

Then I thought as the internal drives are both SATA drives why don't I use an old puppy version that does not have support for SATA in the kernel. This topic came to my attention from someone who is unable to see SATA drives


http://murga-linux.com/puppy/viewtopic.php?t=88952&start=15

The problem is if I use a version with an old kernel will things like wifi card drivers still be supported? Also what about installing some newer software .pup packages. Will it have problems? Will I still be able to auto mount usb drives when they are plugged in?
Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2504
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Thu 24 Oct 2013, 04:33    Post_subject:
Sub_title: version
 

Which version are you actually using Rolling Eyes
Back to top
View user's profile Send_private_message 
marada2

Joined: 19 Oct 2013
Posts: 53

PostPosted: Thu 24 Oct 2013, 05:15    Post_subject:
Sub_title: version
 

L18L wrote:
Which version are you actually using Rolling Eyes


precise puppy 5.7.1
Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2504
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Thu 24 Oct 2013, 06:11    Post_subject:  

Sorry,

I am not able to reproduce your problem.

I don't see anything automatically mounted.
mounted_or_not_mounted.png
 Description   
 Filesize   46.29 KB
 Viewed   228 Time(s)

mounted_or_not_mounted.png

Back to top
View user's profile Send_private_message 
marada2

Joined: 19 Oct 2013
Posts: 53

PostPosted: Thu 24 Oct 2013, 06:51    Post_subject:  

Sorry L1 my very limited knowledge of linux has caused confusion on this. As mike said the internal SATA drives are not mounted, puppy is only showing what exists. What I am trying to achieve is to prevent access to the internal SATA drives. Ideally I would like puppy not to see these drives at all, but as Mike said it is not really feasable to prevent the kernel from seeing these. This then had me thinking, as they are SATA drives would it not be possible to rip out the sata drivers from the kernel? That way puppy would never see them. Obviously this is just theoretical and not something I would be cable of doing myself in a million years! As an alternative I am contemplating using an old puppy that does not have Sata support built into the kernel.

I also followed karl's suggestion which seems to prevent access to the internal SATA drives. The only problem is if I plug in a usb flash drive it not only gives access to this but also seems to reenable access to the internal SATA drives (which I don't want)

I hope you understand what I am trying to achieve now. Sorry if my post was not so clear but I know nothing about how linux works.

Edited_time_total
Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2504
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Thu 24 Oct 2013, 07:51    Post_subject:
Sub_title: umount all ATADRIVES
 

You can unmount all atadrives using this piece of
Code:
. /etc/rc.d/PUPSTATE; while x=`mount | grep $ATADRIVES` ; do umount ${x%% *} ; done

You could run it periodically e.g. every 5 seconds launched by
Code:
pschedule

That's all I can do for you.
Back to top
View user's profile Send_private_message 
mikeb


Joined: 23 Nov 2006
Posts: 8028

PostPosted: Thu 24 Oct 2013, 09:07    Post_subject:  

Quote:
know this sounds paranoid but if puppy can see something, then a virus could be installed on non encrypted parts of the drive or could give a hacker the ability to start doing malicious things.

Who is actually going to have access ... shared house, family?.
Worry not about viruses coming via puppy.
To be honest if you have evil geeks floating around they will cause damage regardless.

NTFS could be disabled by hacking /bin/mount and commenting out the ntfs parts.... could be fun but basically anything ntfs is handled seperately...the drives would be seen but not mountable.

Your SATA blind kernel idea... only puppy that I can think of that might work for you is 4.12 retro..... wifi support was quite good and many extra drivers were built for it buried here in the forum..... suck it and see. Bear in mind intel sata might still work.
Recent ish software support and sounds like you just want the usual basics anyway.

Encrypting the drives used by other operating systems... is this a serious suggestion?

mike
Back to top
View user's profile Send_private_message 
marada2

Joined: 19 Oct 2013
Posts: 53

PostPosted: Thu 24 Oct 2013, 17:13    Post_subject:  

Thanks for your suggestion L18L, I will definitely try this and see what happens. If I get no joy I will then try the 4.12 retro and see what happens.

With regards to Jaspers comment I don't want to disable the drives in the bios, as the bios is a bit temperamental and can have trouble recognizing a drive again.

Thanks Mike for your suggestion, it's interesting what you say about disabling NTFS. Maybe an easier way would be to use the Startmount program that Jasper mentioned as that seems to have an option to only mount linux drives - what do you think?

As for the evil geeks, yes I do have plenty. I have 4 teenage children!
Back to top
View user's profile Send_private_message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3953
Location: Kiel,Germany

PostPosted: Thu 24 Oct 2013, 21:02    Post_subject:  

I would then recommend the Macpup derivate to you :
http://macpup.org/
http://macpup.org/earlier.php

That derivate uses the enlightenment windowmanager e17 , that does not show the drive icons on the desktop .

You should also look at the eventmanager GUI : Menu > System > Eventmanager , where you can reduce the displaying of the drive icons to a single icon , that clicking on it would launch pmount ( Menu > Filesystem > Pmount ) .
For pup_event_frontend_d : Disabling can be done for it also in the "Activate" Tab by unticking ' box for desktop hotplug support " .
Don't forget to restart X .

For the other things : Puppy by default does not automount . There are some derivates out here that automount . There are some script packages on the forum for automounting . Automounting gets requested occassionally here .

When pup_event_frontend_d does not run , no newly plugged drives would show on the desktop, but Pmount should still recognize most of the partitions .
To check for running pup_event : Use Htop for that, or
Code:
ps | grep pup

in the shell console .
Further : Puppy does not recognize several filesystems by default like reiser4 , zfs or jfs .
eventmanager_untick_drive_icons.jpg
 Description   
 Filesize   70.72 KB
 Viewed   200 Time(s)

eventmanager_untick_drive_icons.jpg

Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 2 of 3 Posts_count   Goto page: Previous 1, 2, 3 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0911s ][ Queries: 12 (0.0085s) ][ GZIP on ]