Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged


I've only seen msdos partition tables (MBR) on new flash drives. It's usually FAT32. But you can only store files up to 4GB in size on this fs type. I would go for NTFS or exFAT instead, but this depends on the compatibility of your devices.


Permanent solution: fs.inotify.max_user_watches=1048576 #just add to this line to /etc/sysctl.conf fixed the limit value permanently then do sysctl -p


The accepted answer really didn't help me that much. I finally found out a way by probing the idProduct and idVendor if they exist. Here's a shell script #!/bin/bash { cd /sys/bus/usb/devices for i in *; do [ -e $i/idProduct ] && echo $(cat $i/idVendor $i/idProduct) $i done } Here's what I get on my system. $ ./script 0424 2514 1-3 ...


Thanks to all the comments. The main takeaways for me were: Do not use ls /dev for checking which devices are on the system, but use dmesg instead (and in the particular case of sound cards, 7.2.2 Testing Sound is really useful) devfs has the ability to create device nodes on demand (when they are first accessed) The mentioned sound(4) manpage says: The ...


Block devices The examples given in the question are not block devices, but the question is asked generically, so if yours is a block device, use: badblocks -n -c1 /dev/device-name 0 0 This will try to do a non-destructive re-write of the first 1024 bytes of the device If it's in use, you'll see: /dev/device-name is apparently in use by the system; it's ...


Even better than /tmp are the tmpfs volumes. These behave like real filesystems but are actually "RAM drives". They offer : read, write and delete is really fast purged at power off and unmount Distributions (at least Debian does it) usually set up one (or more) for you. List them with : mount | grep tmpfs Or : df -h | grep tmpfs which also shows the ...


In NVM Express and related standards, controllers give access to storage divided into one or more namespaces. Namespaces can be created and deleted via the controller, as long as there is room for them (or the underlying storage supports thin provisioning), and multiple controllers can provide access to a shared namespace. How the underlying storage is ...

Top 50 recent answers are included