Difference between revisions of "Mounting your SD Card under Chrome OS"

From Apnea Board Wiki
Jump to: navigation, search

(Share with Linux)
m (Why this part is different from the last time you did this on another OS)
 
Line 2: Line 2:
 
== Why this part is different from the last time you did this on another OS ==
 
== Why this part is different from the last time you did this on another OS ==
 
You may well have imported from an SD Card before on another OS, but under Chrome OS it is different.
 
You may well have imported from an SD Card before on another OS, but under Chrome OS it is different.
It is different because OSCAR runs on a secure container running Linux, inside Chrome OS.
+
It is different because [[OSCAR]] runs on a secure container running Linux, inside Chrome OS.
 
The differences are due to the security of the container, and the differences between the naming of the SD Card on the different OSs,
 
The differences are due to the security of the container, and the differences between the naming of the SD Card on the different OSs,
 
* The name you used on a different machine
 
* The name you used on a different machine
Line 91: Line 91:
 
That should start Oscar importing from the SD Card, and when it is done, you should be able to use Oscar as you did before.
 
That should start Oscar importing from the SD Card, and when it is done, you should be able to use Oscar as you did before.
 
After importing, you should use the Chrome OS Files App to safely eject your SD Card.
 
After importing, you should use the Chrome OS Files App to safely eject your SD Card.
+
 
 
== Now what? ==
 
== Now what? ==
 
If it all works, you can just shut down Oscar normally, and then the Linux subsystem will be shut down when you shut down your Chromebook.
 
If it all works, you can just shut down Oscar normally, and then the Linux subsystem will be shut down when you shut down your Chromebook.

Latest revision as of 08:56, 11 May 2020

Incomplete.png

Why this part is different from the last time you did this on another OS

You may well have imported from an SD Card before on another OS, but under Chrome OS it is different. It is different because OSCAR runs on a secure container running Linux, inside Chrome OS. The differences are due to the security of the container, and the differences between the naming of the SD Card on the different OSs,

  • The name you used on a different machine
  • The name you will use on Chrome OS
  • The name OSCAR will use inside the Linux container, which depends on how you plug in your SD Card.


There are 5 topics we need to deal with here:

  1. What kind of SD Card slot does your ChromeBook have?
  2. Can you use the SD Card slot you have, or will you use a USB adapter with the ChromeBook or a micro to full size SD Card in the CPAP?
  3. Checking Chrome OS can see the SD Card you inserted
  4. Enabling Linux(Beta) to see the SD Card that Chrome OS can see (because Google made your ChromeBook extra secure).
  5. When OSCAR gives you a file dialog box so you can tell it where it can read your SD Card data from, you need to be able to tell it, and that depends on all of the things above.

Luckily for us, we only need to go through this complication the first time we import data from an SD Card.

Now you need to decide how you will plug in your SD Card

This was reviewed in the previous section on Installation on Chrome OS. You may want to go back there and review it. link maybe don't need link and section below

have your SD Card ready, as well as any adapters you have obtained (if any) If your ChromeBook has a full size SD Card, then that will match your CPAP machine and you don't need an adapter.

If it has a micro SD Card slot, then you will by now have either

  • a Micro to full size SD Card adapter which you use in your CPAP machine
  • a full size SD Card to USB adapter.

If you have any flash memory devices already inserted in your Chromebook, then remove them safely with the Chrome OS Files App, and then physically remove them. Now insert your SD Card into the ChromeBook using the USB adapter if you needed it, or removing the micro SD Card from its adapter

The Chrome OS will put up a small window asking if you want to open the SD Card in the files App or to Open Settings. We do want to Open in the Files App, and we have to do this, because it is part of Google's extra security for Chromebooks that removable devices must be specifically allowed to be "shared with Linux". You only have to do this part once.

So when the files App opens, you will see your SD Card listed towards the bottom of the left half of the app.

If you or anyone else has given the SD Card a name, it will appear listed as that name.

Otherwise:

If you plugged it in via a USB adapter, it will appear as USB Drive.

If you plugged in to the SD Card slot on your ChromeBook, it will appear as SD Card.

Share with Linux

Again, we want to select this legend, be it "SD Card" or "USB Drive", or whatever name the card has, by clicking once on the touchpad on it and then holding down the alt key while clicking once anywhere on the touchpad (or right clicking if you are using a mouse). We will then see a submenu which has as its 4th and bottom choice "Share with Linux". We will select this choice, and we'll have to confirm it in another popup. Picture of Chrome OS screen here.

Now the Linux subsystem will be able to see the SD Card with all your CPAP data (although we haven't told Oscar where it is yet). When you are done with Oscar, you will need to use the files App again to safely eject the SD Card.

And now, back to getting OSCAR launched, and the Language Selection window

Maybe you launched OSCAR at the end of the installation step, in which case you'll have a dialog box asking you to pick a language (or to accept the default). If you didn't already launch it, then go to the Launch button of Chrome OS (the one with white concentric circles) and click on that. Then find the icon for the OSCAR app. It may be in a folder called Linux Apps. When you find it, click on it. OSCAR will start, and you'll get the Language selection box.

So now get to the window we got from Oscar, and we can accept the language choice (or an alternative).

Where to store Data, and importing old Sleepyhead Data

It will then ask where to store it's data, and offer a default choice, which would be safe to accept on a new system. Then it will want to know if you want to import any Sleepyhead data, and I think the answer should be no at least for the moment. It's thinking there may be Sleepyhead data on the machine already, and in your case there won't be. If you wanted to import Sleepyhead data from your old machine, it could probably be done, but I haven't tried it yet, but it hasn't yet been documented.

Making a profile

So after you've declined the Sleepyhead Import, you will be at the Welcome screen, and you will have to create a new profile. I'll assume you know how to do that already. It's a new machine, you can use any name you like, and the name is all that is required in the four boxes of setting up a new profile.

Importing SD Card Data

After that, you'll want to import from your SD Card, which we already have on the Chromebook. You may be used to using the F12 key on the keyboard, but as you can see the Chromebook doesn't have those function keys. The rightmost key above the numbers might work, but that hasn't been verified yet, so let's just use either the "File" menu of the "CPAP Importer" data button on the welcome page.

When you click on that, you will see a File Dialog Box which comes from OSCAR, and it is referring to the file naming conventions of Linux. This may seem strange, but this guide will get you through it, and you'll only have to do it once.

When you get that box, unlike windows, there are no C: or D: or any drives with a colon in them.

If you are plugging your full size SD Card or your Micro SD Card directly in to your ChromeBook, then The SD Card is known to Linux as /mnt/chromeos/removable/SD Card If you are plugging your full size SD Card or your Micro SD Card in to your ChromeBook through a USB adapter, then The SD Card is known to Linux as /mnt/chromeos/removable/USB Drive

and how we navigate through the dialog box is to go to the left panel (titled "Places") and click on "File System" Then go to the panel slightly to the right titled "Name" and double click on "mnt". Then in the same panel titled "Name" we double click on "chromeos". Then in the same panel titled "Name" we double click on "removable"

Then we need to remember whether we used a USB adapter or not If we plugged an SD Card in directly, Then in the same panel titled "Name" we single click on "SD Card", or If we plugged an SD Card in through a USB adapter, Then in the same panel titled "Name" we single click on "USB Drive",

and then we click on the "Open" button in the bottom right of that box.

That should start Oscar importing from the SD Card, and when it is done, you should be able to use Oscar as you did before. After importing, you should use the Chrome OS Files App to safely eject your SD Card.

Now what?

If it all works, you can just shut down Oscar normally, and then the Linux subsystem will be shut down when you shut down your Chromebook.

It will not automatically start again when you start up your Chromebook again, you will need to find it in the Launcher set of windows and click on it there.

After you click on the launcher button, you will see a search bar where you can search for OSCAR, or you may find OSCAR App in the row of recently used Apps just below the search bar.

Pinning an icon to the shelf

Verify and revise: Once the Linux subsystem is running, there will be an icon on what Google calls the "shelf" which will be the black bar running across the bottom of the screen (unless you moved it to the left or right edge). If you see it there, you can alt-touchpad-click (or mouse right click) on it and a submenu choice will be to "Pin" the icon to the shelf. This will be an easier way to start it.

Remember also to use the Chrome OS Files App to eject your SD Card, and remember also that although your data may be backed up to your Google Drive under Chrome OS, your Linux data will not be, and so you should separately, on your own take regular backups of your Linux data, because that is your Oscar data. Backups of Linux can be found in the Settings page under Linux(Beta). Chrome will ask you where to save these. You should save them

We may not need to meet the black window with Beta-2 and later, although it may appear. Beta-1 had no icon so we had to type OSCAR at the shell prompt. If you can find that black background window, that's going to be the key to getting you going. It should be appearing after you've clicked on the Launcher button (with the circles in it on the bottom left of your screen). like on windows, holding down the alt key while pressing on the tab key will cycle through all the windows that are open, so that may be helpful assuming you're not seeing it because it's under another window. Or the chromebook way to do that would be to press the key on the top row that has the rectangle with the 2 vertical bars just to the right of the rectangle. That shows smaller versions of all the windows.