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 Wed 16 Oct 2019, 13:01
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to mount the data partition on boot? [SOLVED]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
Barkingmad

Joined: 21 Nov 2008
Posts: 151

PostPosted: Wed 09 Oct 2019, 12:38    Post subject:  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 Embarassed

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, 11:58; edited 1 time in total
Back to top
View user's profile Send private message 
rufwoof


Joined: 24 Feb 2014
Posts: 3540

PostPosted: Wed 09 Oct 2019, 14:14    Post subject:  

/etc/fstab
_________________
( ͡° ͜ʖ ͡°) :wq
Fatdog multi-session usb

echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 3405
Location: 500 seconds from Sol

PostPosted: Wed 09 Oct 2019, 16:26    Post subject:  

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/viewtopic.php?p=377699#377699 should do the job.
Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 3491
Location: wales

PostPosted: Wed 09 Oct 2019, 16:42    Post subject:  

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

_________________
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
Back to top
View user's profile Send private message 
davids45


Joined: 26 Nov 2006
Posts: 1237
Location: Chatswood, NSW

PostPosted: Wed 09 Oct 2019, 16:56    Post subject: Script in /root/Startup
Subject description: mount /dev/yourpartition /mnt/yourpartion
 

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:

Quote:
#!/bin/sh
mount /dev/sda5 /mnt/sda5
modprobe coretemp


Where I have a second data partition, I add another 'mount /dev/sd??....' line.

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.
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5475
Location: King's Lynn, UK.

PostPosted: Wed 09 Oct 2019, 17:14    Post subject:  

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. Very Happy


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14400
Location: Gatineau (Qc), Canada

PostPosted: Wed 09 Oct 2019, 19:33    Post subject:  

There is still another way! Smile

Similar to davids45's solution, but in /etc/rc.d/rc.local.
Like so:
Code:
mount -t extX /dev/sdaN /mnt/sdaN
(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 type
Code:
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.
Save 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

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Barkingmad

Joined: 21 Nov 2008
Posts: 151

PostPosted: Thu 10 Oct 2019, 11:58    Post subject:  

Thanks, Phil

I've been using Tahr on my main PC since soon after you released it but I've never found that.

last time was with Lupu so I must have done something like Davids45 suggests but using Pmount sounds handier


Thanks again
Will
Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 3491
Location: wales

PostPosted: Thu 10 Oct 2019, 14:11    Post subject:  

musher0 wrote:
There is still another way! Smile
Similar to davids45's solution, but in /etc/rc.d/rc.local.

this is what pmount does, puts an entry in /etc/rc.d/rc.local or removes it when deselected

_________________
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
Back to top
View user's profile Send private message 
zagreb999

Joined: 11 Apr 2014
Posts: 496
Location: Yugoslavija

PostPosted: Thu 10 Oct 2019, 14:52    Post subject: tazpuppy-automount  

regards!

tazpuppy-automount

how to automount in tazpuppy 32
and to see all partitions
in side pane?

thanks
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12730
Location: S.C. USA

PostPosted: Thu 10 Oct 2019, 19:18    Post subject:  

You need to ask that question in the Tazpuppy topic.
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 Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 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.0629s ][ Queries: 12 (0.0193s) ][ GZIP on ]