Mountlist USB-Stick/CD/DVD AROS Hosted

AMIGASYSTEM · 2854

AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3755
    • Karma: +69/-2
  • AROS One
    • AROS One
on: August 09, 2022, 03:02:19 PM
On wikibooks this Montlist is listed:

How to mount some device or directory (for example a dvd-drive) as a drive under aros hosted?

Add this to Devs/Mountlist

WORK:
    FileSystem     = emul.handler
    Device         = WORK:/home/mazze/arosdev
    LowCyl         = 0
    HighCyl        = 0
    Surfaces       = 1
    BlocksPerTrack = 1
    DOSType        = 0x454D5500
    Activate       = 1


- Is this mountlist also suitable for USB-Stick ?
- where do i find the device "arosdev" ?


magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #1 on: August 10, 2022, 04:56:45 AM
A few notes:
1) The mountlist as linked is one that is/was used for linux hosted
2) You can not mount host devices in a direct manner. It is always "going through" emul.handler.

Quote
- Is this mountlist also suitable for USB-Stick ?
Whenever you insert a USB pendirve the host OS will have access to it. If it does then you can use the paths inside a mountlist (device parameter) in order to access the contents on the USB penddrive.

Quote
- where do i find the device "arosdev" ?
The device part in the mountlist contains two parts:
1) "WORK:" (*)
This is the name of the device as it appears in AROS
2) /home/mazze/arosdev
In this particular case, this is the path to mazze's home directory (linux style) where he created another directory named arosdev.

(*) but TBH, i am not 100% sure if the colon as mentioned in the first part actually "belongs" to the first part or that it is just used as a separator token (I would have to look into the source-code for that).


AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3755
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #2 on: August 10, 2022, 05:43:49 AM

Whenever you insert a USB pendirve the host OS will have access to it. If it does then you can use the paths inside a mountlist (device parameter) in order to access the contents on the USB penddrive.


From the translation it doesn't help me to understand, on EasyPeasy I can see and use the USB-Stick quietly, see screenshot, so if I understand correctly I should create a Mountlist, but I don't know the data to enter in the Mountlist, a practical example would help me to understand better.


magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #3 on: August 10, 2022, 08:08:45 AM
From the translation it doesn't help me to understand,
Sorry about that but it is indeed the nuance that is important here.


Quote
on EasyPeasy I can see and use the USB-Stick quietly, see screenshot, so if I understand correctly I should create a Mountlist, but I don't know the data to enter in the Mountlist, a practical example would help me to understand better.
Well.... the mountlist as shown /is/ an actual example  :)

I have no idea how easypeasy mounts pendrives. On modern linux there is a single entry point called media. So in my case I can simply do something like::
Code: [Select]
PEN1:
    FileSystem     = emul.handler
    Device         = PEN1:/media/label_of_pendrive/some_directory_on_pendrive/Some_subdirectory
    LowCyl         = 0
    HighCyl        = 0
    Surfaces       = 1
    BlocksPerTrack = 1
    DOSType        = 0x454D5500
    Activate       = 1

Do note that Linux usually uses case sensitive names.

In case your Linux distribution does not have such a single entry point for added devices such as pendrives then you need to figure out where the Linux distribution 'mount' such devices by default. That is, assuming that things get mounted automatically for you. If not than you can manually create a Linux mountpoint wherever you want to (where you have sufficient read/write/etc access) and use the AROS mountlist device parameter to point to that manual created Linux mountpoint location.


G-linx

  • Member
  • ***
    • Posts: 112
    • Karma: +28/-0
Reply #4 on: August 10, 2022, 09:10:24 AM
Sorry If I add confusion (or stupidity!)
But does scalos have usb support without wanderer running first?

Regarding linux hosted depending on the distro the host mount point may use either UUID or labels.

Retired.. and working harder than ever


magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #5 on: August 10, 2022, 09:39:58 AM
Sorry If I add confusion (or stupidity!)
But does scalos have usb support without wanderer running first?
A bit offtopic for this thread but i'll bite since there is a topic related remark as well :)

I am assuming you are talking about running scalos on a native dedicated AROS machine.

I am not exactly sure what the question refers to, but USB itself is an AROS thing.

If your question is: _should_ scalos automatically mount USB devices (actually not mount as that is AROS doing its thing) by showing an icon when you push in a pendrive...  I have honestly no idea. I would prefer that it does. But, does it actually do so ? I have no idea (as I am running hosted).

Quote
Regarding linux hosted depending on the distro the host mount point may use either UUID or labels.
Yes indeed. thank you for the hint.

Seeing the screenshot of easypeasy from AMIGASYSTEM, that seems to suggest it is using a dedicated mountpoint somewhere... I just have no idea....


G-linx

  • Member
  • ***
    • Posts: 112
    • Karma: +28/-0
Reply #6 on: August 10, 2022, 11:24:28 AM
Thank you :)

My reasoning behind the post is that I believe AMIGASYSTEM is booting straight into scalos hosted (unless I misunderstood from the scalos thread) and possibly missing something without wanderer.

Now I know. Back to my donuts..  :)

Retired.. and working harder than ever


magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #7 on: August 10, 2022, 12:05:44 PM
aargh this is heat is frying my brain (in case there was any left to begin with) so i completely missed te context of your question GLinx.

In native AROS (not hosted) poseidon takes care of the fact that a USB device is inserted. It'll notify the system and whatever wb replacement is running should take care of this situation.

Running hosted however, is a different situation. So you would have to manually mount a device. If you boot straight into hosted then inserting a USB device (on the host) later will not automatically notify AROS.

Having said that, it should be possible to have a (dedicated) hosted mountpoint that would take care of that (using a hostlib solution that would have to be developed) so that it can keep track of the hosted mounts and then automatically mount the device for AROS. TheAROS mounting itself should be enough to 'notify' the WB (replacement) that a new device is "inserted".


AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3755
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #8 on: August 10, 2022, 12:28:03 PM
Sorry If I add confusion (or stupidity!)
But does scalos have usb support without wanderer running first?

Scalos on "Native PC" and on "Virtual Machines" works the same way as Wanderer, all peripherals CD/DVD USB, HD, but also Network Card etc.. are supported "automatically".

Only on AROS Hosted Linux/Windows does not handle peripherals like CD/DVD, but also Network Card, Sound Card and more.

Scalos even without booting Wanderer still uses almost all AROS system files.


AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3755
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #9 on: August 10, 2022, 12:33:09 PM

I have no idea how easypeasy mounts pendrives. On modern linux there is a single entry point called media. So in my case I can simply do something like::


EasyPeasy behaves like AROS, USB-Stick is automatically mounted at system startup, opuure after insertion


magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #10 on: August 10, 2022, 01:21:38 PM
EasyPeasy behaves like AROS, USB-Stick is automatically mounted at system startup, opuure after insertion
Even if you do not want to use the Linux host, for sure you are required to learn a few basics about linux.

I can't be bothered attempting to understand an abandoned linux distribution like EasyPeasy from decades ago (i have more than enough trying to understand my own used linux distribution and its particular quirks).

Also on linux you need to mount removable storage.devices, see for an example https://linuxconfig.org/howto-mount-usb-drive-in-linux

But, also linux has 'grown up' in that most distributions have an automount feature that whenever you insert a media in a removable storage device (such as USB/DVD/CD) it will automatically be mounted by the system.

In my distribution there is special mountpoint (directory) called /media and inside that directory all removable storage is automatically inserted whenever you physically insert a media into such a device (hence the name of the mountpoint).

But, where easypeasy mounts its removable devices (without falling back to the systems /dev directory) i have no idea. That is for you to figure out AMIGASYSTEM.

As a sidenote: It is the second time you state that something in Linux "is just there" (pendrive now, the desktop environment/launcher the other), but in fact these kind of things are depending on the distribution that you use. No distribution is alike (although there are usually many similarities) and you have to figure out such things yourelf as other people can not do that for you (unless they install the exact same version of your EasyPeasy distribution)..... There is a reason distributions like Ubuntu exists (as everyone else is using it: which is exactly the reason I don't use it  ;) )


magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #11 on: August 10, 2022, 01:51:24 PM
So, let's start with some basics.... have you installed midnight commander (mc) on your Easy Peasy distribution yet ?


It allows you to browse your linux directories in a proper manner, not using the desktop file manager (that hides all kind of things from you just as explorer on windows does).


AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3755
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #12 on: August 10, 2022, 02:50:15 PM
So, let's start with some basics.... have you installed midnight commander (mc) on your Easy Peasy distribution yet ?


It allows you to browse your linux directories in a proper manner, not using the desktop file manager (that hides all kind of things from you just as explorer on windows does).

Thanks for all the info, now I will study well EasyPeasy's Filemanager seems not to hide anything.

 I on Windows have never used the default settings, I always set Windows so that all files (including system files) and all extensions healthy "always visible", Windows hides files for system security for inexperienced users.

I know Ubuntu and other Distros are more advanced but on my PCs they are super slow, EasyPeasy on the other hand is super fast like AROS and then is very intuitive and similar to Amiga/Aros systems.

Conclusion given the Aros Hosted experience, in my opinion the best solution to use ARO, other than native, is Virtual Machine in particular VMWare, basically it is like using Native AROS, but with wide compatibility, it works on all PCs.



paolone

  • Legendary Member
  • *****
    • Posts: 569
    • Karma: +90/-0
Reply #13 on: August 10, 2022, 03:03:51 PM
AFAIK, aros does not automatically detect changes to Linux filesystems. So if you insert a usb media, it will be mounted Linux side, but you'll have to restart aros in order to see it.


magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #14 on: August 10, 2022, 03:12:28 PM
AFAIK, aros does not automatically detect changes to Linux filesystems. So if you insert a usb media, it will be mounted Linux side, but you'll have to restart aros in order to see it.
If you put files (on the host) to a directory where AROS has a mount then AROS sees this as well.


The device changes on the host are not detected by AROS hosted but can be solved by manually mounting a path to such a (host) device with a AROS mountlist. Of course that only works when the device is actually inserted.


In theory you could make a mountlist in AROS to the /media folder and whenever the host decides to add a device there it should be accessible from within AROS by changing to the corresponding directory.