PDA

View Full Version : Using [sudo fdisk -l] does not display the results.



vollmair
February 3rd, 2019, 02:37 AM
I really need help on this one. I'm using the Linux terminal through Crostini and I want to see the name of my SD card (like sdb1 or something) and nothing happens. The terminal just continues on as normal, as if I didn't type anything in.

yetimon_64
February 3rd, 2019, 04:18 AM
Are you by any chance running Ubuntu inside a virtual machine or container on a Chromebook or Chrome OS ?

Up until you asked this question I had never heard of "Crostini" with respect to Ubuntu, but after a bit of google usage...

What is Crostini?

Official definition

Crostini (https://chromium.googlesource.com/chromiumos/docs/+/master/containers_and_vms.md#Crostini) is the umbrella term for making Linux application support easy to use and integrating well with Chrome and Chromium OS. It largely focuses on getting you a Terminal (https://chromium.googlesource.com/chromiumos/docs/+/master/containers_and_vms.md#Terminal) with a container with easy access to install whatever developer-focused tools you might want.

Please tell us what the main OS you are using is and if you are using Ubuntu within a virtual machine etc on another OS like Chromium OS.

If you are operating from within a virtual machine (container) the guest OS/tool set may not have direct access to the hardware and as such commands like fdisk will likely fail. More information about what you are trying to do is needed here.

Regards, yeti.

coffeecat
February 3rd, 2019, 09:47 AM
Not Ubuntu.

Thread moved to Any Other OS.

vollmair
February 3rd, 2019, 03:13 PM
Yes I am running it inside a virtual machine in Chrome OS, and I am trying to change the file directories for Steam.

vollmair
February 3rd, 2019, 03:16 PM
Is there any way of getting direct access to the tool?

yetimon_64
February 3rd, 2019, 03:52 PM
Yes I am running it inside a virtual machine in Chrome OS, and I am trying to change the file directories for Steam.

You will need to wait for someone more familiar with virtual machines to get an accurate answer here, it is a bit outside of my experience/knowledge. I have a feeling/hunch the fdisk command in the terminal within a virtual machine will not be able to poll the hardware directly so will just continue on as you note in the opening post with no output; though I have zero experience with crostini so really can't give a definitive answer.

Good luck with this, regards, yeti.

SeijiSensei
February 3rd, 2019, 04:20 PM
Virtual machines don't see the hardware on which they are running. They use the emulated hardware in the VM. Running "fdisk -l" in the VM will only display the virtual disk. To see the actual drives and their partitions, you have to be running the command in the host OS, not a VM.

vollmair
February 4th, 2019, 10:03 PM
But is there a way for the SD to be "emulated" to the virtual machine?

I can "share with linux" but it doesn't seem to change anything

SeijiSensei
February 5th, 2019, 07:04 PM
You haven't told us what virtual machine software you're running so I can't say precisely. With VirtualBox and its Extensions installed, you can share specific folders on the host with the guest.

yetimon_64
February 5th, 2019, 10:18 PM
You haven't told us what virtual machine software you're running....
From post 1...

I'm using the Linux terminal through Crostini ....

A Crostini container on Chrome OS holding Ubuntu (Ubuntu is not specifically stated, but going on the thread so far appears to be so).

I have some experience with virtualbox but not ever having used Chrome OS and Crostini I can't do much to help here. Being crostini the OP may have to wait for someone who uses it and Chrome OS or if that doesn't happen maybe open a support question on a Chrome OS support site.

Ubuntu is the guest OS not the host here. Cheers, yeti.

Edit: I suspect, like you mention in post 7, the OP will have to find out how to get that information from Chrome OS not Ubuntu (if it is Ubuntu in use).