Fast way to create virtual disks?Single machine with two disksFast Way to Randomize HD?Redundant array of...

how to generate correct single and double quotes in tex

writting to disk and compress with xz at the same time

I do not have power to all my breakers

Can a Resident Assistant Be Told to Ignore a Lawful Order?

How would someone destroy a black hole that’s at the centre of a planet?

Postgresql numeric and decimal is automatically rounding off

Do native speakers use ZVE or CPU?

Why do candidates not quit if they no longer have a realistic chance to win in the 2020 US presidents election

Absconding a company after 1st day of joining

Align by center of symbol

Why does ffmpeg choose 10+20+20ms instead of an even 16ms for 60fps gifs?

Asking for higher salary after I increased my initial figure

What are some symbols representing peasants/oppressed persons fighting back?

Filtering fine silt/mud from water (not necessarily bacteria etc.)

What is 誘われて (Sasowarete) in this song lyric?

Are L-functions uniquely determined by their values at negative integers?

Redox reactions redefined

How long do Apple retain notifications to be pushed to iOS devices until they expire?

Why does the Earth have a z-component at the start of the J2000 epoch?

Is it okay to retroactively change things when running a published adventure?

Why does linear regression use "vertical" distance to the best-fit-line, instead of actual distance?

Why hasn't the U.S. government paid war reparations to any country it attacked?

Why does the trade federation become so alarmed upon learning the ambassadors are Jedi Knights?

Project Euler, problem # 9, Pythagorean triplet



Fast way to create virtual disks?


Single machine with two disksFast Way to Randomize HD?Redundant array of NTFS disksAccidentally ejected sd card physically while ddNeed to format 5 disks in parallelResizing a virtual hard driveSwitching disksLosing disk space and fastAbout listing virtual disks on debianScriptable way to clone source disk to multiple destination disks?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















I want to create virtual 500GB ext4 disks on external usb disks and samba/nfs shares.



For test purposes, I first tried with a 1GB file using the following commands.



sudo dd if=/dev/zero of=/mnt/smbshare/VHD.img bs=1M count=1000
mkfs.ext4 /mnt/smbshare/VHD.img


It works to get a 1GB ext4 filesystem, but dd is slow (10MB/s). So I tried to create a 10GB file with sudo dd if=/dev/zero of=/mnt/smbshare/VHD2.img bs=1G seek=10 count=0. It took few milliseconds, but in this case command mkfs.ext4 /mnt/smbshare/VHD.img returned the following error message:




mke2fs 1.43.3 (04-Sep-2016)

warning: Unable to get device geometry for VHD2.img

VHD2.img: Permission denied while setting up superblock




Is there a fast way to create the file so it can be successfully formatted, for example by changing the dd parameters, adding a further step after dd, or by using an alternate way to create the file?










share|improve this question









New contributor



hello world is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Unable to get device geometry for VHD2.img is just a warning. Can permission denied be because you created the file with sudo but then invoked mkfs without sudo?

    – Kamil Maciorowski
    10 mins ago


















1















I want to create virtual 500GB ext4 disks on external usb disks and samba/nfs shares.



For test purposes, I first tried with a 1GB file using the following commands.



sudo dd if=/dev/zero of=/mnt/smbshare/VHD.img bs=1M count=1000
mkfs.ext4 /mnt/smbshare/VHD.img


It works to get a 1GB ext4 filesystem, but dd is slow (10MB/s). So I tried to create a 10GB file with sudo dd if=/dev/zero of=/mnt/smbshare/VHD2.img bs=1G seek=10 count=0. It took few milliseconds, but in this case command mkfs.ext4 /mnt/smbshare/VHD.img returned the following error message:




mke2fs 1.43.3 (04-Sep-2016)

warning: Unable to get device geometry for VHD2.img

VHD2.img: Permission denied while setting up superblock




Is there a fast way to create the file so it can be successfully formatted, for example by changing the dd parameters, adding a further step after dd, or by using an alternate way to create the file?










share|improve this question









New contributor



hello world is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Unable to get device geometry for VHD2.img is just a warning. Can permission denied be because you created the file with sudo but then invoked mkfs without sudo?

    – Kamil Maciorowski
    10 mins ago














1












1








1








I want to create virtual 500GB ext4 disks on external usb disks and samba/nfs shares.



For test purposes, I first tried with a 1GB file using the following commands.



sudo dd if=/dev/zero of=/mnt/smbshare/VHD.img bs=1M count=1000
mkfs.ext4 /mnt/smbshare/VHD.img


It works to get a 1GB ext4 filesystem, but dd is slow (10MB/s). So I tried to create a 10GB file with sudo dd if=/dev/zero of=/mnt/smbshare/VHD2.img bs=1G seek=10 count=0. It took few milliseconds, but in this case command mkfs.ext4 /mnt/smbshare/VHD.img returned the following error message:




mke2fs 1.43.3 (04-Sep-2016)

warning: Unable to get device geometry for VHD2.img

VHD2.img: Permission denied while setting up superblock




Is there a fast way to create the file so it can be successfully formatted, for example by changing the dd parameters, adding a further step after dd, or by using an alternate way to create the file?










share|improve this question









New contributor



hello world is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I want to create virtual 500GB ext4 disks on external usb disks and samba/nfs shares.



For test purposes, I first tried with a 1GB file using the following commands.



sudo dd if=/dev/zero of=/mnt/smbshare/VHD.img bs=1M count=1000
mkfs.ext4 /mnt/smbshare/VHD.img


It works to get a 1GB ext4 filesystem, but dd is slow (10MB/s). So I tried to create a 10GB file with sudo dd if=/dev/zero of=/mnt/smbshare/VHD2.img bs=1G seek=10 count=0. It took few milliseconds, but in this case command mkfs.ext4 /mnt/smbshare/VHD.img returned the following error message:




mke2fs 1.43.3 (04-Sep-2016)

warning: Unable to get device geometry for VHD2.img

VHD2.img: Permission denied while setting up superblock




Is there a fast way to create the file so it can be successfully formatted, for example by changing the dd parameters, adding a further step after dd, or by using an alternate way to create the file?







dd disk mkfs






share|improve this question









New contributor



hello world is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question









New contributor



hello world is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question








edited 25 mins ago







hello world













New contributor



hello world is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 47 mins ago









hello worldhello world

163 bronze badges




163 bronze badges




New contributor



hello world is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




hello world is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • Unable to get device geometry for VHD2.img is just a warning. Can permission denied be because you created the file with sudo but then invoked mkfs without sudo?

    – Kamil Maciorowski
    10 mins ago



















  • Unable to get device geometry for VHD2.img is just a warning. Can permission denied be because you created the file with sudo but then invoked mkfs without sudo?

    – Kamil Maciorowski
    10 mins ago

















Unable to get device geometry for VHD2.img is just a warning. Can permission denied be because you created the file with sudo but then invoked mkfs without sudo?

– Kamil Maciorowski
10 mins ago





Unable to get device geometry for VHD2.img is just a warning. Can permission denied be because you created the file with sudo but then invoked mkfs without sudo?

– Kamil Maciorowski
10 mins ago










0






active

oldest

votes














Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
});


}
});






hello world is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f530179%2ffast-way-to-create-virtual-disks%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








hello world is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















hello world is a new contributor. Be nice, and check out our Code of Conduct.













hello world is a new contributor. Be nice, and check out our Code of Conduct.












hello world is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f530179%2ffast-way-to-create-virtual-disks%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m