How to disable mounting of SATA / IDE drives?
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.
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
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
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?
.thats the one.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
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
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?
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?
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?
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?
Last edited by Jasper on Thu 24 Oct 2013, 16:10, edited 6 times in total.
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. ... 2&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?
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. ... 2&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?
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
Sorry,
I am not able to reproduce your problem.
I don't see anything automatically mounted.
I am not able to reproduce your problem.
I don't see anything automatically mounted.
- Attachments
-
- mounted_or_not_mounted.png
- (46.29 KiB) Downloaded 482 times
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.
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.
Last edited by marada2 on Thu 24 Oct 2013, 10:54, edited 1 time in total.
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
You can unmount all atadrives using this piece of
You could run it periodically e.g. every 5 seconds launched by
That's all I can do for you.
Code: Select all
. /etc/rc.d/PUPSTATE; while x=`mount | grep $ATADRIVES` ; do umount ${x%% *} ; done
Code: Select all
pschedule
Who is actually going to have access ... shared house, family?.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.
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
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!
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!
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
in the shell console .
Further : Puppy does not recognize several filesystems by default like reiser4 , zfs or jfs .
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: Select all
ps | grep pup
Further : Puppy does not recognize several filesystems by default like reiser4 , zfs or jfs .
- Attachments
-
- eventmanager_untick_drive_icons.jpg
- (70.72 KiB) Downloaded 380 times
- Sky Aisling
- Posts: 1368
- Joined: Sat 27 Jun 2009, 23:02
- Location: Port Townsend, WA. USA
How to disable mounting of SATA / IDE drives
marada2 writes:
You write you will only use the Live CD to access bank account, TOR and various encryption purposes.
I'm no expert in Puppy, but, if that is all you are going to use it for, then your simple solution of using an older Pup that doesn't recognize SATA drives seems feasible.
Just because a Puppy is old doesn't mean it won't function well. Updated drivers can often be found on this forum. In some ways an older Pup might give you more security. Not many hackers are going to bother with 4.2.1, for example. lol!
Am I off base on this one, kennel mates?
Also, marada2 it would help if you posted the make, model and some basic specs about the machine you are using.
You write:
Hello marada2,I don't want a multisession CD. I just want build a puppy exactly the way I want it and then burn it to a CD. I don't plan on tweaking anything once I get things the way I want them. I am definitely not interested in multisession. The CD will purely be used as a security CD for internet banking, TOR and various encryption purposes. I definately don't want multisession or anything saved anywhere. The whole reason I am attracted to a live distro like puppy is the fact that I can boot it into ram and never have anything saved. This is an excellent security feature.
You write you will only use the Live CD to access bank account, TOR and various encryption purposes.
I'm no expert in Puppy, but, if that is all you are going to use it for, then your simple solution of using an older Pup that doesn't recognize SATA drives seems feasible.
Just because a Puppy is old doesn't mean it won't function well. Updated drivers can often be found on this forum. In some ways an older Pup might give you more security. Not many hackers are going to bother with 4.2.1, for example. lol!
Am I off base on this one, kennel mates?
Also, marada2 it would help if you posted the make, model and some basic specs about the machine you are using.
You write:
I understand your concern that code could be left on the SATA or IDE drives.What I am trying to achieve is to prevent access to the internal SATA drives.
On my 2012 desktop hardware...
"lupu-5.2.8.6-20131004.iso" would boot OK if made into a frugal install on a Flash Drive...
[Wouldn't boot (in a SATA optical drive) if made into a "live" optical disk.]
But it WOULD NOT display on the Puppy desktop, icons for SATA drives [i.e. no display of internal HDD's or optical drives].
Due to certain drivers not included in the kernel.
See THIS POST where I say:
"c. There are no icons on the desktop for the partition-file-systems on my SATA->[internal HDD, or optical drive]."
This was fixed in "Lupusuper-5.2.8.6-20131012.iso".
You don't want to use the fixed version I guess.
"lupu-5.2.8.6-20131004.iso" would boot OK if made into a frugal install on a Flash Drive...
[Wouldn't boot (in a SATA optical drive) if made into a "live" optical disk.]
But it WOULD NOT display on the Puppy desktop, icons for SATA drives [i.e. no display of internal HDD's or optical drives].
Due to certain drivers not included in the kernel.
See THIS POST where I say:
"c. There are no icons on the desktop for the partition-file-systems on my SATA->[internal HDD, or optical drive]."
This was fixed in "Lupusuper-5.2.8.6-20131012.iso".
You don't want to use the fixed version I guess.
- Sky Aisling
- Posts: 1368
- Joined: Sat 27 Jun 2009, 23:02
- Location: Port Townsend, WA. USA
How to disable mounting of SATA / IDE drives
marada2
Another possible way to approach the situation is to get an external SATA drive.
Set up your Puppy on the external drive, access your banking sources, then unplug the external drive and lock it away in a drawer from the swarm of cyber nurds that live in your house.
That way you could continue to tweek and enjoy a Puppy.
Another possible way to approach the situation is to get an external SATA drive.
Set up your Puppy on the external drive, access your banking sources, then unplug the external drive and lock it away in a drawer from the swarm of cyber nurds that live in your house.
That way you could continue to tweek and enjoy a Puppy.