Cannot write to SD raw disk
Posted: 7. Apr 2015, 05:03
Summary:
I am attempting to write a image onto a SD card for a Raspberry Pi type platform. I am using a Windows 7 host with a Ubuntu 10.04 guest on a laptop with a built in SD card reader. Currently I can access and read files from the SD card. The guest OS will also allow me to modify and save files to the SD card as well (i am testing with short text files). Everything looks fine from the guest OS until I shut the VM down. Upon re-entering the VM, or checking with the host OS, any modifications to the SD card are lost or never happened. If someone can help me fix this or understand why it is happening I would greatly appreciate it. I am fairly new to both Ubuntu and virtual box so more detailed answers would help me greatly. Thank you in advance.
Details:
Version selection is based upon compatibility with a program I will be using for this project.
VBox Version: 3.1.8 r61349 w/ guest additions
Windows 7 Host / Ubuntu 10.04 LTS Guest. Both 64Bit
SD Card: Fat32 file structure (new card, single small text file)
NOTE: Since I am not allowed to post urls i have added them as a text file and referenced them as [x].
I am accessing the SD card as a raw disk. I am doing this due to the fact that I must have full access to the card in order to image it, and therefore cannot use a shared folder setup. The SD card does not show up as a USB device when installed. I have setup my raw disk access as explained in [1]. In order to automatically mount the device and provide me with permissions to write to it i have modified the /etc/fstab file as described in [2] . With this setup I can see, and read a text file originally written by the Host OS. It also appears that I can modify and create files on the SD card when looking at the guest OS. All changes are saved in the guest OS, and no errors are thrown. I can log out of my ubuntu user account and relog, and the changes are still there. After powering down the guest OS all changes are lost however. The host OS sees no change in the card, and re-entering the Ubuntu guest shows the original condition of the SD card. From this it seems to me I have a configuration error with my raw disk setup. I have attached my .vmdk file. I have modified the line ddb.adapterType="sata" from "ide" as reccommended in [3] with the hopes it would help. I also tried to configure the raw disk as a IDE drive instead of SATA in the VM settings, but this threw large numbers of errors ~22 seconds after attempting to modify a file. The root of the errors seemed to be "entity not found" which I assume means it could not locate the SD card on the IDE buss.
I am having difficulties solving this problem as searches seem to bring up either permission errors or hard disk failures. I am not ruling out a permission error altogether, however i believe Ubuntu would provide me with some type of warning if this were the case, and it seems I have solved the permission issues that appear in my searches. The SD card should not have a problem as it is new, and I have no problems with it using the Win7 host. Again any help is greatly appreciated. If any more information would help solve this problem please let me know what I can provide.
Thank you
I am attempting to write a image onto a SD card for a Raspberry Pi type platform. I am using a Windows 7 host with a Ubuntu 10.04 guest on a laptop with a built in SD card reader. Currently I can access and read files from the SD card. The guest OS will also allow me to modify and save files to the SD card as well (i am testing with short text files). Everything looks fine from the guest OS until I shut the VM down. Upon re-entering the VM, or checking with the host OS, any modifications to the SD card are lost or never happened. If someone can help me fix this or understand why it is happening I would greatly appreciate it. I am fairly new to both Ubuntu and virtual box so more detailed answers would help me greatly. Thank you in advance.
Details:
Version selection is based upon compatibility with a program I will be using for this project.
VBox Version: 3.1.8 r61349 w/ guest additions
Windows 7 Host / Ubuntu 10.04 LTS Guest. Both 64Bit
SD Card: Fat32 file structure (new card, single small text file)
NOTE: Since I am not allowed to post urls i have added them as a text file and referenced them as [x].
I am accessing the SD card as a raw disk. I am doing this due to the fact that I must have full access to the card in order to image it, and therefore cannot use a shared folder setup. The SD card does not show up as a USB device when installed. I have setup my raw disk access as explained in [1]. In order to automatically mount the device and provide me with permissions to write to it i have modified the /etc/fstab file as described in [2] . With this setup I can see, and read a text file originally written by the Host OS. It also appears that I can modify and create files on the SD card when looking at the guest OS. All changes are saved in the guest OS, and no errors are thrown. I can log out of my ubuntu user account and relog, and the changes are still there. After powering down the guest OS all changes are lost however. The host OS sees no change in the card, and re-entering the Ubuntu guest shows the original condition of the SD card. From this it seems to me I have a configuration error with my raw disk setup. I have attached my .vmdk file. I have modified the line ddb.adapterType="sata" from "ide" as reccommended in [3] with the hopes it would help. I also tried to configure the raw disk as a IDE drive instead of SATA in the VM settings, but this threw large numbers of errors ~22 seconds after attempting to modify a file. The root of the errors seemed to be "entity not found" which I assume means it could not locate the SD card on the IDE buss.
I am having difficulties solving this problem as searches seem to bring up either permission errors or hard disk failures. I am not ruling out a permission error altogether, however i believe Ubuntu would provide me with some type of warning if this were the case, and it seems I have solved the permission issues that appear in my searches. The SD card should not have a problem as it is new, and I have no problems with it using the Win7 host. Again any help is greatly appreciated. If any more information would help solve this problem please let me know what I can provide.
Thank you