In Porteus 2.1 the /mnt is used for removable media and the /mnt/live folder. In porteus 2.0 was this /mnt/live and /media for all removable media.
Is there a way I can change the mount point back to /media for removable media? I use Porteus as thinclient for diskless stations.
Removable media must be visible for users but they don't (want to) understand you can't use the folder called live.
FreeRDP doesn't have an option to hide or excluse a folder in the drive redirection so the only option is to change the mount point.
Changing mount point
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Changing mount point
hi bshogeman,
for clarification: /mnt/live is used only for drives found during boot and used by linuxrc (saving changes, loading modules), removable media added during live session are never mounted there.
if you want to use /media instead of /mnt then please edit /sbin/udev-fstab-update and update 'MNTPT' variable:
for clarification: /mnt/live is used only for drives found during boot and used by linuxrc (saving changes, loading modules), removable media added during live session are never mounted there.
if you want to use /media instead of /mnt then please edit /sbin/udev-fstab-update and update 'MNTPT' variable:
Code: Select all
MNTPT=/media/$DEVICE
Please add [Solved] to your thread title if the solution was found.
- bshogeman
- White ninja
- Posts: 27
- Joined: 10 May 2013, 13:12
- Distribution: Porteus 2.0 x64
- Location: Lisse, the Netherlands
- Contact:
[Solved] Re: Changing mount point
I described it some wrong. But you understand it.
Tnx, editing that file solved the issue.
Removable media now isn't mounted anymore under /mnt but under /media so (terminal server) users don't see the live folder anymore when browsing to their usb stick.
Tnx, editing that file solved the issue.
Removable media now isn't mounted anymore under /mnt but under /media so (terminal server) users don't see the live folder anymore when browsing to their usb stick.
- bshogeman
- White ninja
- Posts: 27
- Joined: 10 May 2013, 13:12
- Distribution: Porteus 2.0 x64
- Location: Lisse, the Netherlands
- Contact:
Re: Changing mount point
Folder isn't removed after removing the removable media. The script looks right and seems to use the MNTPT variable. Also mounting of removable media is successful.
Also when booting with the cheatcode nohd and the variable is changed to /media the folder for the HD is created but not mounted. When the folder was unchanged the folder wasn't created.
hm tested again and when not modifying the file the same issue happends when you not savely remove the usb media. And from a rdp sessions save remove is impossible.
Work-a-round possible that the folder is deleted? Checked the /etc/fstab and there the entry is removed.
Also when booting with the cheatcode nohd and the variable is changed to /media the folder for the HD is created but not mounted. When the folder was unchanged the folder wasn't created.
hm tested again and when not modifying the file the same issue happends when you not savely remove the usb media. And from a rdp sessions save remove is impossible.
Work-a-round possible that the folder is deleted? Checked the /etc/fstab and there the entry is removed.
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: Changing mount point
maybe you could add a delay there?
btw: few days ago i was pushing some fixes to 001-core and some of them were 'udev-fstab-update' related. please make sure you synced this update through PSC -> Porteus Updater.
Code: Select all
elif [ "$ACTION" = remove ]; then
# Delete fstab entry:
sed -i "/$DEVICE /d" $FSTAB
# Remove the mount point:
sleep 3
rmdir $MNTPT 2>/dev/null
fi
Please add [Solved] to your thread title if the solution was found.