why does the fdisk command work inside virtual box but not inside linux shell on windows?Why does the MBR...

Intersection of two sorted vectors in C++

Memorizing the Keyboard

Why do I get two different answers for this counting problem?

Why can't we play rap on piano?

Is it inappropriate for a student to attend their mentor's dissertation defense?

Is it canonical bit space?

Why is Collection not simply treated as Collection<?>

What's the difference between 'rename' and 'mv'?

Alternative to sending password over mail?

AES: Why is it a good practice to use only the first 16bytes of a hash for encryption?

Can one be a co-translator of a book, if he does not know the language that the book is translated into?

Reserved de-dupe rules

Is there a hemisphere-neutral way of specifying a season?

Where does SFDX store details about scratch orgs?

Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?

Why is the 'in' operator throwing an error with a string literal instead of logging false?

What mechanic is there to disable a threat instead of killing it?

Is it unprofessional to ask if a job posting on GlassDoor is real?

Took a trip to a parallel universe, need help deciphering

What is the intuition behind short exact sequences of groups; in particular, what is the intuition behind group extensions?

Could gravitational lensing be used to protect a spaceship from a laser?

Anagram holiday

In a spin, are both wings stalled?

Emailing HOD to enhance faculty application



why does the fdisk command work inside virtual box but not inside linux shell on windows?


Why does the MBR return a different offset than Ubuntu's commands?Cannot chown or chmod using sudo anymoreHow do you restore an encrypted hard drive? Password being availableUbuntu Virtual Machine cant' mount directories /dev /sys /procMysterious behavior of echo commandIssues with GRUB on reinstallation of Ubuntu 16.04 (dual-boot)GParted accidentally deleted my /dev/sdb partitionstill have “windows” partitions after installing ubuntupartition in 18.04 without extended fileCan't mount back OS disk partition (no /dev/sda)






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







0















I am tyring to understand linux file system layout. Why does the command work inside virtual box but not on linux shell on windows?



I tried to use the command sudo fdisk -l dev/sda on both my virtual box(Ubuntu) and Ubuntu on windows(from microsoft store). It didn't work on any of them but when I changed the command to sudo fdisk -l, it worked inside virtual box but not on linux bash shell on windows.



Inside linux shell on windows:



~$ sudo fdisk -l /dev/sda
fdisk:cannot open /dev/sda: No such file or directory
:~$ sudo fdisk -l
fdisk: cannot open /proc/partitions: No such file or directory
:~$ man fdisk
:~$ whereis fdisk
fdisk: /sbin/fdisk /usr/share/man/man8/fdisk.8.gz








share







New contributor




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



























    0















    I am tyring to understand linux file system layout. Why does the command work inside virtual box but not on linux shell on windows?



    I tried to use the command sudo fdisk -l dev/sda on both my virtual box(Ubuntu) and Ubuntu on windows(from microsoft store). It didn't work on any of them but when I changed the command to sudo fdisk -l, it worked inside virtual box but not on linux bash shell on windows.



    Inside linux shell on windows:



    ~$ sudo fdisk -l /dev/sda
    fdisk:cannot open /dev/sda: No such file or directory
    :~$ sudo fdisk -l
    fdisk: cannot open /proc/partitions: No such file or directory
    :~$ man fdisk
    :~$ whereis fdisk
    fdisk: /sbin/fdisk /usr/share/man/man8/fdisk.8.gz








    share







    New contributor




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























      0












      0








      0








      I am tyring to understand linux file system layout. Why does the command work inside virtual box but not on linux shell on windows?



      I tried to use the command sudo fdisk -l dev/sda on both my virtual box(Ubuntu) and Ubuntu on windows(from microsoft store). It didn't work on any of them but when I changed the command to sudo fdisk -l, it worked inside virtual box but not on linux bash shell on windows.



      Inside linux shell on windows:



      ~$ sudo fdisk -l /dev/sda
      fdisk:cannot open /dev/sda: No such file or directory
      :~$ sudo fdisk -l
      fdisk: cannot open /proc/partitions: No such file or directory
      :~$ man fdisk
      :~$ whereis fdisk
      fdisk: /sbin/fdisk /usr/share/man/man8/fdisk.8.gz








      share







      New contributor




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












      I am tyring to understand linux file system layout. Why does the command work inside virtual box but not on linux shell on windows?



      I tried to use the command sudo fdisk -l dev/sda on both my virtual box(Ubuntu) and Ubuntu on windows(from microsoft store). It didn't work on any of them but when I changed the command to sudo fdisk -l, it worked inside virtual box but not on linux bash shell on windows.



      Inside linux shell on windows:



      ~$ sudo fdisk -l /dev/sda
      fdisk:cannot open /dev/sda: No such file or directory
      :~$ sudo fdisk -l
      fdisk: cannot open /proc/partitions: No such file or directory
      :~$ man fdisk
      :~$ whereis fdisk
      fdisk: /sbin/fdisk /usr/share/man/man8/fdisk.8.gz






      command-line partitioning bash virtualbox





      share







      New contributor




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










      share







      New contributor




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








      share



      share






      New contributor




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









      asked 2 mins ago









      SairaSaira

      1




      1




      New contributor




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





      New contributor





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






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






















          0






          active

          oldest

          votes












          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
          });


          }
          });






          Saira 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%2faskubuntu.com%2fquestions%2f1131340%2fwhy-does-the-fdisk-command-work-inside-virtual-box-but-not-inside-linux-shell-on%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








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










          draft saved

          draft discarded


















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













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












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




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131340%2fwhy-does-the-fdisk-command-work-inside-virtual-box-but-not-inside-linux-shell-on%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

          Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

          Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

          Should I use Docker or LXD?How to cache (more) data on SSD/RAM to avoid spin up?Unable to get Windows File...