I have a UWP video player app which runs on Xbox One. The app downloads resources: videos and audio, and then plays once completed. On my laptop, everything works fine and I can play the videos. However on the Xbox, at exactly the same point, I call fopen, which returns a nullptr andGetLastError() returning 112 - ERROR_DISK_FULL.
The total data size is about 7.5GB, but this error occurs less than half way through downloading. Is there some kind of storage limit on the Xbox? I have read this link https://learn.microsoft.com/en-us/windows/uwp/xbox-apps/system-resource-allocation which says that deployed using Visual Studio these limits don't apply. I am currently using VS to debug the application so this should be possible if it is the reason.
Any help on this would be appreciated.
Many thanks,
Peter
To summary the issue. The error shows that the disk space of the Xbox that is used to store files is running out. What the document mentioned is about the memory limitation, not the disk limitation.
There is only a certain amount of space dedicated for file storage as the drive is split into partitions. Just like an external drive, it can be formatted for file storage or games and apps. It can't hold both. So they split the internal drive so there is some file storage with most of the drive dedicated to the storage of games and apps.
The application data folder that you are storing to goes to a drive that they can’t increase, a drive that is NOT the developer drive. It’s a fixed size.
Related
I'm using ESP32 module WEMOS LOLIN32 to setup simple webserver with basic captive portal.
I've modyfied build-in example of Captive Portal to work as async web server, with all files stored as SPIFFS. All is working good, but I have a problem that I can't upload more then around 1 mb of files. If data folder is bigger, then I have an error:
SPIFFS_write error(-10001): File system is full.
error adding file!
SPIFFS Create Failed!
I don't know if flash memory is shared with program data (I suppose it is), even then my sketch is that big:
Sketch uses 770466 bytes (58%) of program storage space. Maximum is 1310720 bytes.
So if total space for program is less then 1.5 mb, then I should have over 2.5 mb of flash stoarge available for SPIFFS (if my thinking is right - but probably isn't).
In tools menu there is also "Partition Scheme" which I have set to default, since other options are
No OTA (Large APP)
and
Minimal SPIFFS (Large APPS with OTA)
which sound contrary to what I want to archive (had to put these two as code because stack woudn't let my post question otherwise).
So what is wrong here?
I work on-the-side doing computer repair. Standard operating procedure is to pop out the HDD/SSD, mount it to a backup machine, and pull the client's data (i.e., in case the drive fails/something goes horribly wrong, their data is protected). More and more often, my office is seeing SSDs soldered directly to the motherboard, making this technique impossible.
I was wondering if any of you knew of a some method that would allow direct disk access without drive removal. An analogue would be mounting a phone in Mass Storage Device mode, I suppose. This may be possible already by doing something with a Linux LiveUSB, but I'm not sure how. Booting from a LiveUSB and transferring files over the network is unacceptably slow given the volume of computers we see and amount of data involved.
On Apple computers, this is simple--plug in a Thunderbolt/Firewire connector and use Target Disk Mode to pull directly from the drive.
tl;dr: making a backup of a Windows computer without opening them: how do?
Boot a live Linux from a large USB3 HDD, and use the same disk to copy the client's data to with about USB3 speed.
I'm in need of help. The situation is the following:
We have a software that runs on Windows Mobile 5 and 6. It is deployed in around 15 cities on different devices (Motorola MC35, MC55, MC65, MC75, MC75A, ES400). It works perfectly fine everywhere except in one city. They have MC75A devices and every once in a while we get a helpdesk about our software disappearing from the device.
The most interesting part is when we log in to check the device, all we can see is a damaged/corrupted file system and the OS, which is set back to default.
We tried to reconstruct the problem here at our company, but we find it impossible. I'm wondering if anyone has ever bumped into this.
I'm gonna attach two images of the corrupted file system.
We use custom windows settings and AppCenter to protect the operating system from our customers. (They shouldn't be able to modify any settings on their own).
In general such corruption happens when the driver is interupted saving changes to the file system.
That can happen, for example, when a high priority thread consumes all cpu times.
It may also happen, when the device is hard reset, for example by taking the battery out during thed river is writing to the file system.
A low battery normally cannot result in that corruption:
a) as the device shuts down itslef with critcal battery power
and
b) the file system is in flash RAM (in contrast to Windows Mobile 2003 and before) and does not need battery power to hold data.
It is also possible that there is a bad behaving process doing these corruptions.
As you say you see this only in one city: What is the main difference with the devices there?
Are others also using the same device? Maybe the device series itslef or there firmware is faulty (contact symbol/motorola for new firmware or patches to the 'disk' driver)
Are the users in that area doing special things to the devices that others do not? For example remove the battery when they mean the device does not react?
Is the MC75A used in other areas and there it does not show the corruption?
You see, you have some more items to examine a rule for the corruption?
I am currently on a mission loading files into pagecache, and I want to load locked files, too. The goal is nothing more than pro-actively keeping a dataset in RAM, reducing loading times within third party applications.
Shadow copies were my first thought on this, but unfortunately seem to have separated pagecaches.
So is there any way cheating around the exclusive lock mechanism? Like fetching file fragment location on disk, accessing whole disk and reading directly (which I fear is another separated pagecache, anyways)?
Or is there a very different approach to directing the pagecache, e.g. some Windows API that can be told to load a specific file into pagecache?
You can access locked files in Windows from kernel-mode driver, or using our RawDisk product. But for your task (speed up DB file access) this won't work right as Windows' filesystem cache size is limited (it won't accommodate GBs of data).
In general, if I were to develop a large software project (for small application the amount of work needed is just enormous) I'd do the following: create a virtual drive backed by in-memory storage, present the DB file to the application via that virtual disk and flush drive contents to the disk on change asynchronously. All of this should be done in kernel mode (this is where development time grows to 12-15 man-months of work).
In theory the same can be done using one of our Virtual Storage products, but going back into user mode for callback handling would eliminate all that you gain from moving the data into RAM.
I created a backup disk image of my disk yesterday and the software told me to close all Windows programs to make sure the process finishes successfully.
I did that, but I was wondering what happens when some program does write to the disk nevertheless during the process. Windows 7 is a complex system and surely various log files and such are written continuously (the disk has one partition which contains the Windows install too). How does the backup software handle it when the disk content is changed during image creation?
What is the algorithm in this case?
Snapshotting, or 'Shadow Copy' as Microsoft calls it, see Shadow Copy on wikipedia