I think that you will always need to inform the UEFI Shell of the change.  It 
is not designed to automatically do detection of added/removed/changed devices.

I think that your solution to use the code from mount makes the most sense.

-Jaben

From: GN Keshava [mailto:[email protected]]
Sent: Thursday, May 25, 2017 11:02 PM
To: Carsey, Jaben <[email protected]>; [email protected]
Subject: Re: [edk2] Unmount and mount a mass storage from shell
Importance: High

Hi Jaben, Thanks a lot for input. My necessity for unmount-mount is that, the 
USB client is a Linux storage gadget, which needs to be remounted to get the 
updated/new files created by Linux. Anyhow, now I'm doing this programmatically 
by copying mount command code from older shell. :)

One more issue is that, after Linux updates some file (on client side, Linux 
will mount the same partition, save some file, and then umount the partition. 
Then if i remount the partition on Host side, when host is windows, i will get 
updated files) I will manually remove and connect the cable (MS device), UEFI 
is not able to detect the MS itself. (This issue observed, regardless of 
remount. This issue is not there on windows 10 host).
Can you give some pointers on this?

Thanks a lot, Jaben.

Regards,
Keshava

On Thu, 25 May 2017 at 21:26 Carsey, Jaben 
<[email protected]<mailto:[email protected]>> wrote:
You can "disconnect" the driver
You can do "map -d" to delete a mapping

I am unsure what your goals are for mount/unmount

-Jaben

> -----Original Message-----
> From: edk2-devel 
> [mailto:[email protected]<mailto:[email protected]>]
>  On Behalf Of
> GN Keshava
> Sent: Wednesday, May 24, 2017 10:59 PM
> To: [email protected]<mailto:[email protected]>
> Subject: [edk2] Unmount and mount a mass storage from shell
> Importance: High
>
> How can I unmount and mount a mass storage fs from UEFI shell?
>
> In older EFI shells, I can do with "mount" command. But it just does
> "mapping" in newer shell. It doesn't actually remounting the device.
>
> Please help.
>
> thanks
> _______________________________________________
> edk2-devel mailing list
> [email protected]<mailto:[email protected]>
> https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to