В Windows 8 или 10, особенно на планшетах с постоянно вставленной SD-картой, существует ли универсальный способ рассматривать карту как несъемный диск?

90709
user274391

У меня есть планшет Surface Pro и карта памяти Micro SD, которая постоянно вставлена. Я использую его для хранения медиа-файлов, таких как музыка и видео.

Windows, признавая, что это съемный диск, немедленно удаляет файлы, а не помещает их в корзину. Кроме того, такие приложения, как SkyDrive и Dropbox, отказываются синхронизироваться с картой, поскольку она является съемной.

Я знаю, что форматирование NTFS карты micro SD и монтирование ее в виде папки на диске C: позволяет синхронизировать SkyDrive и Dropbox со съемным диском, но это не влияет на удаление файла.

Я также слышал, что различные USB-накопители можно изменить, чтобы они рассматривались в Windows как несъемные, переворачивая съемный бит. Тем не менее, это не вариант для кард-ридеров, по крайней мере, для моего Surface.

Можно ли как-нибудь включить корзину на этом диске и вообще сделать этот диск несъемным?

31

1 ответ на вопрос

32
user274391

I've managed to solve my own problem, but it is not exactly the simplest solution. In a nutshell, instead of storing files on the SD card, which of course Windows sees as a removable drive, it is possible to instead fill the entirety of the SD card with a virtual hard drive, which can then be mounted in Windows, and is treated as an actual hard drive.

Here's what I did on Windows 8.1:

Optional: clear out the contents of your SD card. This is not absolutely necessary, but the amount of free space on the SD card will become the amount of space on your new disk.

Open Disk Management (from my Start menu search, it shows up as "Create and format hard disk partitions").

Optional: ensure that your SD card is formatted to NTFS. As the card will be a permanent fixture and cross-platform compatibility doesn't matter, might as well go with a more modern file system. Furthermore, this wlll enable the next optional step directly below.

Optional (only possible if you chose to format the SD card to NTFS): select the partition on your SD card, and choose "Change Drive Letter and Paths". Remove the drive letter and add a new mount point to an empty NTFS folder. You can stick this somewhere onto your main drive, I chose "C:\Media Container". This way, the SD card won't show up anymore as a separate drive anymore, but can still be accessed by the system for the virtual drive.

Under the Action menu at the top, select "Create VHD". Browse to your SD card location ("C:\Media Container" if you changed its mount point to what I suggested above). Create a VHD here... I called mine "Media Store". I also changed the virtual hard disk format to VHDX for its resilience to power failure events, though I have no actual insight into this beyond what Windows described it as. I stayed with the recommended dynamic expanding disk type, with the thought that this could be useful if I get a bigger SD card in the future.

Right click on the new disk (on the left, now on its partition), and choose initialize. I went with a GPT partition table, as it is a newer design and presumably better, though I have no other insight on this. After it is initialized, right click on the new unallocated partition, and choose "New Simple Volume". Follow the wizard, allocating all space to the new partition, assigning it the drive letter you would like your new hard drive to use (probably D:), and formatting it to NTFS. If all went well, you should now see your new hard drive available in Windows Explorer.

Now, the trick to bring it all together is to set up Windows so that the drive is mounted when the computer boots, as it's no fun having to go into Disk Management each time your computer starts to mount the drive. To do this, you'll need to create a script for mounting it, and then using Task Scheduler to execute the script on boot. I found a really good guide here, which I'll summarize below.

First create a text file wherever you like, named whatever you want - this will become your script. I named mine "Mount Script.txt" and placed it in "C:\Media Container" with my virtual hard drive file. Open it up, and paste in the below, with the path and drive letter edited to match your info:

select vdisk file="C:\Media Container\Media Store.vhdx" attach vdisk assign letter=D 

Open Task Scheduler under Computer Management, which comes up in my Start Menu as "Schedule tasks". On the right pane, select "Create Task".

The key points are:

  • On the General tab, enter a name of some sort for your task, I called mine "Mount SD card". Under "When running the task, use the following user account", change it to SYSTEM by typing it in the object name box. Also, it may be important to set "Configure for" to your operating system, I'm not really sure and a quick search online didn't really explain what this setting does.
  • On the Triggers tab, click New, and set "Begin the task" to "At startup".
  • On the Actions tab, click New, and set "Program/script" to "diskpart" (without the quotations). Under "Add arguments" paste in the following with the path set to your script's path: /s "C:\Media Container\Mount Script.txt".
  • On the Conditions tab, clear the checkbox for "Start the task only if your computer is on AC power".

You can also go through the options and see if there's anything else you'd like to set, but those should be the essentials.

And that's it! Next time your restart, you should see your storage space on your SD card being mounted as a hard drive.

О, это такой блестящий взломать! Jesse Weigert 10 лет назад 3
Кроме того, добавьте еще один шаг: на вкладке «Общие» измените «использовать следующую учетную запись пользователя» на «СИСТЕМА», и вам не придется выбирать, запускать учетную запись, если пользователь вошел в систему или нет, и вы не будете придется беспокоиться о том, когда ваш пароль меняется. Jesse Weigert 10 лет назад 4
Спасибо Джесси за улучшение, добавил его в решение! user274391 10 лет назад 1
Для Windows 10 мне пришлось добавить / s перед "c: \ Media Container" Mount Script.txt ", чтобы заставить это выполнить ... PGallagher 8 лет назад 1
Это хорошо подходит для включения BitLocker на самой SD-карте, которая, в свою очередь, зашифровывает диск (сохраняет ваши данные в безопасности). CenterOrbit 6 лет назад 0
Кроме того, мне интересно, есть ли способ «скрыть» тот факт, что у вас также установлена ​​SD-карта. CenterOrbit 6 лет назад 0