My boot params don't include noauto, but my harddrive partitiions are not getting auto mounted on boot.
How can i make unknown external partitions mount on boot?
I don't want to hardcode the partitions into fstab or wherever, cuz want this OS to work with any drives.
Linux porteus 4.16.3-porteus #1 SMP PREEMPT Sat Apr 21 12:42:52 Local time zone must be set-- x86_64 Intel(R) Pentium(R) Dual CPU T2310 @ 1.46GHz GenuineIntel GNU/Linux
THX
[Solved] How to auto mount all partitions?
[Solved] How to auto mount all partitions?
Last edited by johnywhy on 01 Sep 2018, 17:49, edited 1 time in total.
How to auto mount all partitions?
i found this script. Is it safe and functional on porteus?
is there a better way?
https://ubuntuforums.org/showthread.php ... ost8706174
is there a better way?
Code: Select all
BASEDIR="/mnt"
for PARTITION in `fdisk -l | grep -v swap | egrep -o /dev/sd.[0-9]+` ; do
mount | grep -q "^$PARTITION"
if [ $? -eq 1 ] ; then
blkid $PARTITION > /dev/null
if [ $? -eq 0 ] ; then
MOUNTPOINT=$BASEDIR/`echo $PARTITION | egrep -o sd.[0-9]+`
mkdir -p $MOUNTPOINT
mount $PARTITION $MOUNTPOINT
fi
fi
done
exit 0
Linux porteus 4.16.3-porteus #1 SMP PREEMPT - x86_64 Intel(R) Pentium(R) Dual CPU T2310 @ 1.46GHz GenuineIntel GNU/Linux
- Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
How to auto mount all partitions?
When I start Porteus all partitions are visible. Are you referring to your Porteus ISO or your Kiosk?
Ed
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
How to auto mount all partitions?
Yes that script should mount all partitions in Porteus. Strange that they are not already mounted though. Can you provide logs?
You may also want to try running simply: mount -a
You may also want to try running simply: mount -a
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
How to auto mount all partitions?
you're right, all partitions are mounted on boot.
the problem was, a directory panel applet wasn't loading the folders.
The cause was, cuz i picked 'Other' in the applet properties.
The fix is to pick the partition from the picklist.
Reason i picked 'Other' was cuz on some OS's (Puppy, i think) that's the only one that works.
cheers!
the problem was, a directory panel applet wasn't loading the folders.
The cause was, cuz i picked 'Other' in the applet properties.
The fix is to pick the partition from the picklist.
Reason i picked 'Other' was cuz on some OS's (Puppy, i think) that's the only one that works.
cheers!
Linux porteus 4.16.3-porteus #1 SMP PREEMPT - x86_64 Intel(R) Pentium(R) Dual CPU T2310 @ 1.46GHz GenuineIntel GNU/Linux
-
- Samurai
- Posts: 182
- Joined: 29 Dec 2010, 08:10
- Distribution: porteus v5.0-xfce K5.19.7
- Location: France
[Solved] How to auto mount all partitions?
hello
a little correction
only partitions from sda1 to sda15 are mounted at boot
for the others (sda16 . . .) the shell is usefull
to avoid error message with the extended partition, I propose this little modif
a little correction
only partitions from sda1 to sda15 are mounted at boot
for the others (sda16 . . .) the shell is usefull
to avoid error message with the extended partition, I propose this little modif
Code: Select all
for PARTITION in `fdisk -l | egrep -v 'swap|tend' | egrep -o /dev/sd.[0-9]+` ; do