Search notes:

/dev/loopX

/dev/loopX (X being a number) is a loopback device.

Example

Create a file with a size of 1 GiB:
$ dd of=~/fs if=/dev/zero bs=GiB count=1
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 5.0458 s, 213 MB/s
Verify file size:
$ stat -c %s ~/fs
1073741824
Associate the file with a loopback device:
$ sudo losetup /dev/loop0 ~/fs
Create a filesystem:
$ sudo mkfs.ext4 /dev/loop0
…
Creating filesystem with 262144 4k blocks and 65536 inodes
…
Mount the new file system:
$ mkdir ~/mnt
$ sudo mount /dev/loop0 ~/mnt
Use the new file system:
$ ls /mnt
lost+found

See also

/dev

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/fh...', 1758209554, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/fhs/dev/loopX(71): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78