How to share a FAT32 partition between Ubuntu 18 and vbox Windows 7
I have this disk setup:
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 195944447 195942400 93,4G 83 Linux
/dev/sda2 195944448 937701375 741756928 353,7G c W95 FAT32 (LBA)
sda1 is Linux Ubuntu 18.04 with a vbox running Windows 7.sda2 is just data to be shared between Linux and VM Windows7.
How can I make my vbox with Windows 7 access this FAT32 partition?
virtualbox partitions fat32
New contributor
Gastao Hugo Lobao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I have this disk setup:
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 195944447 195942400 93,4G 83 Linux
/dev/sda2 195944448 937701375 741756928 353,7G c W95 FAT32 (LBA)
sda1 is Linux Ubuntu 18.04 with a vbox running Windows 7.sda2 is just data to be shared between Linux and VM Windows7.
How can I make my vbox with Windows 7 access this FAT32 partition?
virtualbox partitions fat32
New contributor
Gastao Hugo Lobao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I have this disk setup:
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 195944447 195942400 93,4G 83 Linux
/dev/sda2 195944448 937701375 741756928 353,7G c W95 FAT32 (LBA)
sda1 is Linux Ubuntu 18.04 with a vbox running Windows 7.sda2 is just data to be shared between Linux and VM Windows7.
How can I make my vbox with Windows 7 access this FAT32 partition?
virtualbox partitions fat32
New contributor
Gastao Hugo Lobao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I have this disk setup:
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 195944447 195942400 93,4G 83 Linux
/dev/sda2 195944448 937701375 741756928 353,7G c W95 FAT32 (LBA)
sda1 is Linux Ubuntu 18.04 with a vbox running Windows 7.sda2 is just data to be shared between Linux and VM Windows7.
How can I make my vbox with Windows 7 access this FAT32 partition?
virtualbox partitions fat32
virtualbox partitions fat32
New contributor
Gastao Hugo Lobao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Gastao Hugo Lobao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 2 hours ago
zx485
1,47131114
1,47131114
New contributor
Gastao Hugo Lobao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 5 hours ago
Gastao Hugo LobaoGastao Hugo Lobao
63
63
New contributor
Gastao Hugo Lobao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Gastao Hugo Lobao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Gastao Hugo Lobao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Welcome,
this technique is called: "raw partition support" and you can find an excellent explanation in the Virtualbox manual chapter "9.9 Advanced storage configuration"
Preliminary i'll presume that you know (for read and write from your Linux host):
how to
mount and unmount at your will the FAT32 partition (/dev/sda2) on your Linux host, and eventualy
how to add a line in the /etc/fstab file to mount your FAT32 partition,
Your virtual machine is called "Windows 7", and
you only have 1 virtual disk attached to "Windows 7".
For accomplish the task you could type some commands like this (adapt to your needs!!):
$ sudo VBoxManage internalcommands createrawvmdk -filename /path/to/file_of_the_fat32_partion.vmdk
$ sudo VBoxManage storageattach "Windows 7" --storagectl "SATA" --port 1 --device 0 --type hdd --medium /path/to/file_of_the_fat32_partion.vmdk -rawdisk /dev/sda -partitions 2
The first command creates the
"...special VMDK image file which defines where the data will be
stored..."
The second command attachs the
"...newly created image ..."
to your "Windows 7" virtual machine.
(I'm quoting chapter 9.9.1. from the Virtualbox User Manual).
Then you can start you "Windows 7" virtual machine and you will find the new partition (dev/sda2) surely over the letter D: (Note: It is possible that windows will ask you to restart the OS system after have finded the new partition).
To find out the name of your virtual machine this is the command to launch:
$ sudo VBoxManage list vms
To find out the parameters of: --storagectl "SATA" and --port 1 and --device 0
This command is helpfull (for the virtual machine "Windows 7" and you should adapt to your needs):
$ sudo VBoxManage showvminfo "Windows 7" | grep SATA
and you will see some like this:
Storage Controller Name (0) SATA
SATA (0, 0): /path/to/your_actual_windows_7_virtual_machine_already_working.vdi (UIDD:....)
SATA (1, 0): Empty
Note that "SATA (1, 0): Empty" is where you will go to attach the partition (port 1, device 0) = --storagectl "SATA"and--port 1and--device 0
The other technique you should try first is to:
- mount /dev/sda2 in some place on your Linux host (/mnt/diskFAT32 for example), and then with the Virtualbox Manager GUI on shared folders section just add a share of /mnt/diskFAT32 with automount and read/write permitions on it. This is, for me, the safest mode to start to "play" with a partition of your Linux host on the virtual machine "Windows 7".
I hope this could help you.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Gastao Hugo Lobao is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1119322%2fhow-to-share-a-fat32-partition-between-ubuntu-18-and-vbox-windows-7%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Welcome,
this technique is called: "raw partition support" and you can find an excellent explanation in the Virtualbox manual chapter "9.9 Advanced storage configuration"
Preliminary i'll presume that you know (for read and write from your Linux host):
how to
mount and unmount at your will the FAT32 partition (/dev/sda2) on your Linux host, and eventualy
how to add a line in the /etc/fstab file to mount your FAT32 partition,
Your virtual machine is called "Windows 7", and
you only have 1 virtual disk attached to "Windows 7".
For accomplish the task you could type some commands like this (adapt to your needs!!):
$ sudo VBoxManage internalcommands createrawvmdk -filename /path/to/file_of_the_fat32_partion.vmdk
$ sudo VBoxManage storageattach "Windows 7" --storagectl "SATA" --port 1 --device 0 --type hdd --medium /path/to/file_of_the_fat32_partion.vmdk -rawdisk /dev/sda -partitions 2
The first command creates the
"...special VMDK image file which defines where the data will be
stored..."
The second command attachs the
"...newly created image ..."
to your "Windows 7" virtual machine.
(I'm quoting chapter 9.9.1. from the Virtualbox User Manual).
Then you can start you "Windows 7" virtual machine and you will find the new partition (dev/sda2) surely over the letter D: (Note: It is possible that windows will ask you to restart the OS system after have finded the new partition).
To find out the name of your virtual machine this is the command to launch:
$ sudo VBoxManage list vms
To find out the parameters of: --storagectl "SATA" and --port 1 and --device 0
This command is helpfull (for the virtual machine "Windows 7" and you should adapt to your needs):
$ sudo VBoxManage showvminfo "Windows 7" | grep SATA
and you will see some like this:
Storage Controller Name (0) SATA
SATA (0, 0): /path/to/your_actual_windows_7_virtual_machine_already_working.vdi (UIDD:....)
SATA (1, 0): Empty
Note that "SATA (1, 0): Empty" is where you will go to attach the partition (port 1, device 0) = --storagectl "SATA"and--port 1and--device 0
The other technique you should try first is to:
- mount /dev/sda2 in some place on your Linux host (/mnt/diskFAT32 for example), and then with the Virtualbox Manager GUI on shared folders section just add a share of /mnt/diskFAT32 with automount and read/write permitions on it. This is, for me, the safest mode to start to "play" with a partition of your Linux host on the virtual machine "Windows 7".
I hope this could help you.
add a comment |
Welcome,
this technique is called: "raw partition support" and you can find an excellent explanation in the Virtualbox manual chapter "9.9 Advanced storage configuration"
Preliminary i'll presume that you know (for read and write from your Linux host):
how to
mount and unmount at your will the FAT32 partition (/dev/sda2) on your Linux host, and eventualy
how to add a line in the /etc/fstab file to mount your FAT32 partition,
Your virtual machine is called "Windows 7", and
you only have 1 virtual disk attached to "Windows 7".
For accomplish the task you could type some commands like this (adapt to your needs!!):
$ sudo VBoxManage internalcommands createrawvmdk -filename /path/to/file_of_the_fat32_partion.vmdk
$ sudo VBoxManage storageattach "Windows 7" --storagectl "SATA" --port 1 --device 0 --type hdd --medium /path/to/file_of_the_fat32_partion.vmdk -rawdisk /dev/sda -partitions 2
The first command creates the
"...special VMDK image file which defines where the data will be
stored..."
The second command attachs the
"...newly created image ..."
to your "Windows 7" virtual machine.
(I'm quoting chapter 9.9.1. from the Virtualbox User Manual).
Then you can start you "Windows 7" virtual machine and you will find the new partition (dev/sda2) surely over the letter D: (Note: It is possible that windows will ask you to restart the OS system after have finded the new partition).
To find out the name of your virtual machine this is the command to launch:
$ sudo VBoxManage list vms
To find out the parameters of: --storagectl "SATA" and --port 1 and --device 0
This command is helpfull (for the virtual machine "Windows 7" and you should adapt to your needs):
$ sudo VBoxManage showvminfo "Windows 7" | grep SATA
and you will see some like this:
Storage Controller Name (0) SATA
SATA (0, 0): /path/to/your_actual_windows_7_virtual_machine_already_working.vdi (UIDD:....)
SATA (1, 0): Empty
Note that "SATA (1, 0): Empty" is where you will go to attach the partition (port 1, device 0) = --storagectl "SATA"and--port 1and--device 0
The other technique you should try first is to:
- mount /dev/sda2 in some place on your Linux host (/mnt/diskFAT32 for example), and then with the Virtualbox Manager GUI on shared folders section just add a share of /mnt/diskFAT32 with automount and read/write permitions on it. This is, for me, the safest mode to start to "play" with a partition of your Linux host on the virtual machine "Windows 7".
I hope this could help you.
add a comment |
Welcome,
this technique is called: "raw partition support" and you can find an excellent explanation in the Virtualbox manual chapter "9.9 Advanced storage configuration"
Preliminary i'll presume that you know (for read and write from your Linux host):
how to
mount and unmount at your will the FAT32 partition (/dev/sda2) on your Linux host, and eventualy
how to add a line in the /etc/fstab file to mount your FAT32 partition,
Your virtual machine is called "Windows 7", and
you only have 1 virtual disk attached to "Windows 7".
For accomplish the task you could type some commands like this (adapt to your needs!!):
$ sudo VBoxManage internalcommands createrawvmdk -filename /path/to/file_of_the_fat32_partion.vmdk
$ sudo VBoxManage storageattach "Windows 7" --storagectl "SATA" --port 1 --device 0 --type hdd --medium /path/to/file_of_the_fat32_partion.vmdk -rawdisk /dev/sda -partitions 2
The first command creates the
"...special VMDK image file which defines where the data will be
stored..."
The second command attachs the
"...newly created image ..."
to your "Windows 7" virtual machine.
(I'm quoting chapter 9.9.1. from the Virtualbox User Manual).
Then you can start you "Windows 7" virtual machine and you will find the new partition (dev/sda2) surely over the letter D: (Note: It is possible that windows will ask you to restart the OS system after have finded the new partition).
To find out the name of your virtual machine this is the command to launch:
$ sudo VBoxManage list vms
To find out the parameters of: --storagectl "SATA" and --port 1 and --device 0
This command is helpfull (for the virtual machine "Windows 7" and you should adapt to your needs):
$ sudo VBoxManage showvminfo "Windows 7" | grep SATA
and you will see some like this:
Storage Controller Name (0) SATA
SATA (0, 0): /path/to/your_actual_windows_7_virtual_machine_already_working.vdi (UIDD:....)
SATA (1, 0): Empty
Note that "SATA (1, 0): Empty" is where you will go to attach the partition (port 1, device 0) = --storagectl "SATA"and--port 1and--device 0
The other technique you should try first is to:
- mount /dev/sda2 in some place on your Linux host (/mnt/diskFAT32 for example), and then with the Virtualbox Manager GUI on shared folders section just add a share of /mnt/diskFAT32 with automount and read/write permitions on it. This is, for me, the safest mode to start to "play" with a partition of your Linux host on the virtual machine "Windows 7".
I hope this could help you.
Welcome,
this technique is called: "raw partition support" and you can find an excellent explanation in the Virtualbox manual chapter "9.9 Advanced storage configuration"
Preliminary i'll presume that you know (for read and write from your Linux host):
how to
mount and unmount at your will the FAT32 partition (/dev/sda2) on your Linux host, and eventualy
how to add a line in the /etc/fstab file to mount your FAT32 partition,
Your virtual machine is called "Windows 7", and
you only have 1 virtual disk attached to "Windows 7".
For accomplish the task you could type some commands like this (adapt to your needs!!):
$ sudo VBoxManage internalcommands createrawvmdk -filename /path/to/file_of_the_fat32_partion.vmdk
$ sudo VBoxManage storageattach "Windows 7" --storagectl "SATA" --port 1 --device 0 --type hdd --medium /path/to/file_of_the_fat32_partion.vmdk -rawdisk /dev/sda -partitions 2
The first command creates the
"...special VMDK image file which defines where the data will be
stored..."
The second command attachs the
"...newly created image ..."
to your "Windows 7" virtual machine.
(I'm quoting chapter 9.9.1. from the Virtualbox User Manual).
Then you can start you "Windows 7" virtual machine and you will find the new partition (dev/sda2) surely over the letter D: (Note: It is possible that windows will ask you to restart the OS system after have finded the new partition).
To find out the name of your virtual machine this is the command to launch:
$ sudo VBoxManage list vms
To find out the parameters of: --storagectl "SATA" and --port 1 and --device 0
This command is helpfull (for the virtual machine "Windows 7" and you should adapt to your needs):
$ sudo VBoxManage showvminfo "Windows 7" | grep SATA
and you will see some like this:
Storage Controller Name (0) SATA
SATA (0, 0): /path/to/your_actual_windows_7_virtual_machine_already_working.vdi (UIDD:....)
SATA (1, 0): Empty
Note that "SATA (1, 0): Empty" is where you will go to attach the partition (port 1, device 0) = --storagectl "SATA"and--port 1and--device 0
The other technique you should try first is to:
- mount /dev/sda2 in some place on your Linux host (/mnt/diskFAT32 for example), and then with the Virtualbox Manager GUI on shared folders section just add a share of /mnt/diskFAT32 with automount and read/write permitions on it. This is, for me, the safest mode to start to "play" with a partition of your Linux host on the virtual machine "Windows 7".
I hope this could help you.
edited 1 hour ago
answered 1 hour ago
C. La MoscaC. La Mosca
364
364
add a comment |
add a comment |
Gastao Hugo Lobao is a new contributor. Be nice, and check out our Code of Conduct.
Gastao Hugo Lobao is a new contributor. Be nice, and check out our Code of Conduct.
Gastao Hugo Lobao is a new contributor. Be nice, and check out our Code of Conduct.
Gastao Hugo Lobao is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1119322%2fhow-to-share-a-fat32-partition-between-ubuntu-18-and-vbox-windows-7%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown