Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no /dev/disk directory in the container #9621

Open
TSF1995 opened this issue May 11, 2024 · 1 comment
Open

There is no /dev/disk directory in the container #9621

TSF1995 opened this issue May 11, 2024 · 1 comment
Labels
question Requires an answer

Comments

@TSF1995
Copy link

TSF1995 commented May 11, 2024

As shown in the figure, I create partition /dev/sda1 on /dev/sda:
image
When I format it, I am told that the /dev/sda1 file does not exist
image
Then I don't see the sda1 file in the /dev directory, but I do see partition information for /dev/sda1 in the /proc/partitions file
image
I looked for this problem because of the udev rule, and I didn't see the /etc/udev and /lib/udev directories in the container。Is there any way to solve this problem?

@TSF1995 TSF1995 added the question Requires an answer label May 11, 2024
@Apokleos
Copy link
Contributor

Hi @TSF1995 are you doing such operations in container ENV ? And container typically has a limited views of device and operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Requires an answer
Projects
Issue backlog
  
To do
Development

No branches or pull requests

2 participants