SliTaz SliTaz Forum

You are not logged in.

#1 2022-11-01 19:19:50

actua11
Member
Registered: 2015-04-04
Posts: 9

Auto mount second partition on boot?

Quick question, .. Is there any way that I can auto mount sda2 on boot?

I run Slitaz 5 on sda1 and have a second partition running Android-x86 on sda2.

The idea is basically so I can have bookmarks in PCManFM without having to mount the sda2 drive each time to use the bookmarks.

I have tried editing the fstab, but admit I am not very familiar with the syntax there.

Any help with this would be really appreciated

Offline

#2 2022-11-02 17:30:46

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: Auto mount second partition on boot?

Hello,

Not really familiar with [c]fstab[/c] too.

You could create a dir (says [c]android[/c]) in [c]/media[/c]  or wherever you want and add the line

/dev/sda2   /media/android   ext3   defaults   0   2
in [c]fstab[/c]

(supposes that your Android-x86 partition is ext3 formated)

Better to replace [c]/dev/sda2[/c] with [c]UUID=uuid-of-your-android-part[/c].

You could also mount the partition from the [c]/etc/init.d/local.sh[/c] adding a line

[c]mount /dev/sda2 /where/you/want[/c]

Offline

#3 2022-11-02 19:40:57

actua11
Member
Registered: 2015-04-04
Posts: 9

Re: Auto mount second partition on boot?

Hello Ceel,

Thank you very, very much for your reply and help with this.

In short, the local.sh method worked perfectly.

Editing the fstab .. I guess I was doing it 'right' though I appreciate seeing your line so I could double check. The issue still remained though. The partition would not be usable until I actually manually went to that partition in the file manager.. then all the bookmarks would become 'active' and the partition would display in the directory and named as given in the fstab.

By using local.sh, it all just works right away on boot, so thank you very much for your help on this (Who knows how long I might have been still trying to figure the fstab)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.021 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]