Questions tagged [dev]

The Linux/Unix /dev directory contains the special device files for all the devices.

69 questions
166
votes
7 answers

Why is “/dev/rdisk” about 20 times faster than “/dev/disk” in Mac OS X

According to the rasbery pi documentation, You can load your OS to a flash card with either /dev/disk or /dev/rdisk. rdisk stands for raw disk. /dev/disk is a block level device, why would rdisk be 20 times faster? Using Mac OSX Note: In OS X…
spuder
  • 10,135
56
votes
6 answers

What is /dev/mem?

Presumably it's somehow related to memory? What would sudo cat /dev/urandom > /dev/mem do? Trash all RAM? All non-kernel virtual memory? None of the above?
Paul
21
votes
3 answers

Why does `cat /dev/urandom` break your terminal?

In reference to this question: https://serverfault.com/questions/534449 How does cat /dev/urandom make some terminal emulators go wonky?
18
votes
5 answers

Partition Not Showing up in /dev

I recently unmounted a 4TB hard drive from one computer in order to access the files directly from another computer. It seemed like there were no problems with the unmounting process. When connecting the hard drive to the other computer, the hard…
15
votes
1 answer

Is there a device file in the /dev directory that represents the wireless adapter?

I've been exploring the /dev directory and am curious are all the devices mapped to those files there? Specifically I'm looking for a wireless file. I was hoping to find something like /dev/wifi or /dev/wlan0 Wirless is working but i can't seem to…
12
votes
2 answers

How is by-id created on Linux?

Sticking a USB-microcontroller on the port (similar to Arduino) creates these two…
Pithikos
  • 1,654
12
votes
1 answer

Shouldn't my machine have a /dev/ram0 file?

I have a college assignment where I have to create a RAM Disk. I have been told to then make a C program that writes multiple times on a file placed inside the RAM Disk and then do the same on a file placed on the hard disk to compare the write…
ferranad
  • 131
8
votes
3 answers

restore /dev after `rm`ing it

during a gentoo install from the livedvd, there's one step to create a dev dir to be used later in the chroot of the target for the instalation it's done like that mount --rbind /dev /mnt/gentoo/dev in the middle of the installation i decided to…
gcb
  • 5,442
  • 13
  • 62
  • 86
6
votes
1 answer

Get device info for dev file

This is a very simply question. I have 3 potential camera devices in /dev/: video0, video1 and video2. I need to find out which one is my actual webcam and which one is a loopback device. I couldn't find any tool able to simply take any device file…
sonofevil
  • 117
4
votes
1 answer

What is the difference between "mount -t ..." and "mount -o bind ..." with regard to chroot environment

So I am setting up a chroot where I need proc, sys and dev folders. I have read that I need to mount them as follows: mount -t proc /proc /mnt/chroot/proc mount -t sysfs /sys /mnt/chroot/sys mount -o bind /dev /mnt/chroot/dev Answers obtained from…
code_fodder
  • 1,687
3
votes
1 answer

Mount TMPFS instead of ro /dev

I am working on a ARM-Based embedded system with a custom Debian Linux based on kernel 2.6.31. In the final system, the Root file system is stored as squashfs on flash. Now, the folder /dev is created by udev, but since there is no hot plugging…
schiggn
  • 41
3
votes
3 answers

Ubuntu installation will not boot, throws error missing file: /dev/sdc1

I tried to install Ubuntu 12.04 and received the continuous message loop: udev[number]: timeout: killing '/sbin/blkid -o udev -p /dev/sdc' [number] I suspect this error happens due to a missing /dev/sdc file. It would be great if I could have some…
Kevin
  • 31
  • 2
3
votes
1 answer

Use /dev/shm sometimes crashes applications

Sometimes I use /dev/shm for temporary files, as big as 500MB, (I have 8 GB RAM - Ubuntu 11.04 x86-64) and when I load StarCraft II (with wine) I might get memory errors in the game (corrupted data or "Couldn't load xyz"). If instead I use proper…
Emanuele
  • 781
3
votes
2 answers

How can I know what device the file in /dev is mapped to

I have installed a new device in linux. If I enter lspci, i can see the information of this device. But, I do not know which file in dev is mapped to this device.
Ben
  • 31
3
votes
0 answers

Finding .npm debug logs in Azure DevOps Pipeline

I have an existing build pipeline for a Vue web app that has worked flawlessly for over a year now up until today. I'm not a devops guy so I don't understand it 100% and got thrown into this, but here is the background of it. It's a CI process built…
CLosee
  • 31
1
2 3 4 5