How to mount the data partition on boot? [SOLVED]
-
- Posts: 156
- Joined: Fri 21 Nov 2008, 17:20
How to mount the data partition on boot? [SOLVED]
Hello
Now, I have done this before but it was some time ago and I can't remember how
If I have the set up of Puppy on it's own partition and a separate one for user stored stuff how do I have the data partition mount each time Puppy boots? I would be doing this with Tahr 606.
Thanks for any pointers.
Will
Now, I have done this before but it was some time ago and I can't remember how
If I have the set up of Puppy on it's own partition and a separate one for user stored stuff how do I have the data partition mount each time Puppy boots? I would be doing this with Tahr 606.
Thanks for any pointers.
Will
Last edited by Barkingmad on Thu 10 Oct 2019, 15:58, edited 1 time in total.
There is (used to be) a setting somewhere which would auto-mount partitions other than Puppy's Home partition. But I can't seem to find it.
Installing Startmount, http://www.murga-linux.com/puppy/viewto ... 699#377699 should do the job.
Installing Startmount, http://www.murga-linux.com/puppy/viewto ... 699#377699 should do the job.
hi Barkingmad,
from tahrpup onwards the option to mount at boot is available in 'pmount' which is the mount icon on the desktop or find it in the menu
from tahrpup onwards the option to mount at boot is available in 'pmount' which is the mount icon on the desktop or find it in the menu
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
Script in /root/Startup
G'day,
I have at least one data partition on each computer and to mount these on starting, put a script into the root Startup directory.
On this laptop, to mount my data partition, sda5, it is:
Where Bootmanager no longer works in a Pup (as it once did - a Woof problem??), I now add a line to load the temperature module for the particular computer, hence the final line in my script.
I write the script in the text editor, save it as 'mount_at_boot', make it executable, and save it to my data partition. It then gets copied into the /root/Startup in each new Pup - 'copied' because it doesn't work as a symlink back to the data partition which isn't mounted until the script is run - 'Catch22' sort-of.
David S.
I have at least one data partition on each computer and to mount these on starting, put a script into the root Startup directory.
On this laptop, to mount my data partition, sda5, it is:
Where I have a second data partition, I add another 'mount /dev/sd??....' line.#!/bin/sh
mount /dev/sda5 /mnt/sda5
modprobe coretemp
Where Bootmanager no longer works in a Pup (as it once did - a Woof problem??), I now add a line to load the temperature module for the particular computer, hence the final line in my script.
I write the script in the text editor, save it as 'mount_at_boot', make it executable, and save it to my data partition. It then gets copied into the /root/Startup in each new Pup - 'copied' because it doesn't work as a symlink back to the data partition which isn't mounted until the script is run - 'Catch22' sort-of.
David S.
- Mike Walsh
- Posts: 6351
- Joined: Sat 28 Jun 2014, 12:42
- Location: King's Lynn, UK.
Is it just me, or is everybody else forgetting this?
Phil's right about pMount.....but the way I access it is to rt-clk any desktop drive icon, and it's the first option in the list; "Run pMount Puppy Drive Mounter".
To me, it's the most logical place to look. You want to (auto)mount a drive, look in the drive's rt-clk menu..... The option only really works from Slacko 570 onwards, or thereabouts; Micko was the first to use the 'new-style' pMount in a release Puppy; click on the 'twistie' in each drive label, then check the 'Auto-Mount at Boot' option.
Simple as that. I do use the same strategy as David in some older Pups (like Precise 571), where the old-style pMount only permitted manual mounting & unmounting. I place a wee script in /etc/init.d, the contents of which get executed at start-up.
Ruffers is right, too. /Etc/fstab has always been the 'traditional' location for setting mount behaviour; this is used more by the mainstream distros, and Linux veterans (it was the 'accepted' way they all learnt to do it in the early days.)
Or, as Mikeslr says, use Startmount 0.5.5, by Micko & tasmod:-
http://www.murga-linux.com/puppy/viewtopic.php?t=50845
It might be nearly a decade old, but it still works fine. It auto-mounts my drives in Racy to this day.....and gives you the option to auto-start apps/programs, too.
It's like so much stuff in Linux; multiple ways to achieve the same outcome.
Mike.
Phil's right about pMount.....but the way I access it is to rt-clk any desktop drive icon, and it's the first option in the list; "Run pMount Puppy Drive Mounter".
To me, it's the most logical place to look. You want to (auto)mount a drive, look in the drive's rt-clk menu..... The option only really works from Slacko 570 onwards, or thereabouts; Micko was the first to use the 'new-style' pMount in a release Puppy; click on the 'twistie' in each drive label, then check the 'Auto-Mount at Boot' option.
Simple as that. I do use the same strategy as David in some older Pups (like Precise 571), where the old-style pMount only permitted manual mounting & unmounting. I place a wee script in /etc/init.d, the contents of which get executed at start-up.
Ruffers is right, too. /Etc/fstab has always been the 'traditional' location for setting mount behaviour; this is used more by the mainstream distros, and Linux veterans (it was the 'accepted' way they all learnt to do it in the early days.)
Or, as Mikeslr says, use Startmount 0.5.5, by Micko & tasmod:-
http://www.murga-linux.com/puppy/viewtopic.php?t=50845
It might be nearly a decade old, but it still works fine. It auto-mounts my drives in Racy to this day.....and gives you the option to auto-start apps/programs, too.
It's like so much stuff in Linux; multiple ways to achieve the same outcome.
Mike.
There is still another way!
Similar to davids45's solution, but in /etc/rc.d/rc.local.
Like so:(Please adapt X and N to your need.)
Say partition sda2 is formatted in ext4.
Load /etc/rc.d/rc.local in your editor. Then typeSave and exit your editor. Reboot.
That's it.
Now at each boot sda2 will get mounted.
Just make sure you already have a directory called sda2 in /mnt.
The advantage of this approach is that the partition gets mounted a bit earlier in the
process than if the command is in /root/Startup. It may be important if you have scripts
or apps in /root/Startup that need sda2 to be already mounted before they can swing
into action.
IHTH
Similar to davids45's solution, but in /etc/rc.d/rc.local.
Like so:
Code: Select all
mount -t extX /dev/sdaN /mnt/sdaN
Say partition sda2 is formatted in ext4.
Load /etc/rc.d/rc.local in your editor. Then type
Code: Select all
mount -t ext4 /dev/sda2 /mnt/sda2
sleep 0.5s # to give it time to complete the mount correctly.
# else some other (unknown) command may interfere.
That's it.
Now at each boot sda2 will get mounted.
Just make sure you already have a directory called sda2 in /mnt.
The advantage of this approach is that the partition gets mounted a bit earlier in the
process than if the command is in /root/Startup. It may be important if you have scripts
or apps in /root/Startup that need sda2 to be already mounted before they can swing
into action.
IHTH
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
-
- Posts: 156
- Joined: Fri 21 Nov 2008, 17:20
this is what pmount does, puts an entry in /etc/rc.d/rc.local or removes it when deselectedmusher0 wrote:There is still another way!
Similar to davids45's solution, but in /etc/rc.d/rc.local.
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331
tazpuppy-automount
regards!
tazpuppy-automount
how to automount in tazpuppy 32
and to see all partitions
in side pane?
thanks
tazpuppy-automount
how to automount in tazpuppy 32
and to see all partitions
in side pane?
thanks
You need to ask that question in the Tazpuppy topic.
http://murga-linux.com/puppy/viewtopic.php?t=113255
http://murga-linux.com/puppy/viewtopic.php?t=113255
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected
YaPI(any iso installer)
When I was a kid I wanted to be older.... This is not what I expected
YaPI(any iso installer)