What happens after mounting filesystem from file? Example: I have rootfs.ext2 file which is located in data directory and mounted under /mnt directory mount rootfs.ext2 /mnt After removing rootfs.ext2 I still can use files under /mnt directory, cat file, run binaries, etc. rm -f rootfs.ext2 I was thinking that rootfs.ext2 file still exists in data directory however it was deleted.
Tag: filesystems
Test filesystem stability / filesystem crash [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 7 months ago. Improve this question Newbie here!! Is there any way to crash filesystem or overload a filesystem so that it will get crash? I want to check at what
Node.js – Asynchronously edit JSON file and prevent interferance from other async calls
I am making a Discord bot in node.js, and need to store some per-guild data. I want to store it in separate JSON files in data/<guild.id>.json using the built in fs/promises. I have a function setGuildData(guildID: string, dataToAssign: object) that reads the current JSON file, parses the JSON to fileData, then assigns the new data using Object.assign() to finally stringify
Why AWS instance not showing the correct storage that is attached externally?
I have attached an external EBS volume of 650GB to my ubuntu instance with a root volume of 250GB. 650GB is attached to /xvdg-volume But if I check the df -h command it is not displaying the entire volume. You can see that in the following image: /xvdg-volume is only 350GB Does anyone say why this is happening in my
Linux Shell Script – Mounting and Backing Up Files
I’m writing my first shell script. I want to check if a filesystem is mounted. If so, then backup the documents from my main drive to the backup that is mounted. If not, mount the filesystem, then backup the documents. I executed the script, yet all I got was a lot of text. It didn’t perform as I wanted. Did
Changing the file’s creation timestamp in Linux programmatically in C/C++
The statx() system call was added to Linux kernel and now it is possible to get the creation (birth) time of the file from statx.stx_btime stucture field on supported filesystems. But I can’t find any support in utimensat() of similar system calls. Is it possible to change file’s creation timestamp in C/C++ and how? Answer statx.stx_btime is filesystem-specific. Linux has
Quickly create an uncompressible large file on a Linux system
On a Linux system, I need to create a large file (about 10GB), uncompressible file. This file is supposed to reside in a Docker image, needed to test performance in transferring and storing large docker images on a local registry. Therefore, I need the image to be “intrinsically” large (that is: uncompressible), in order to bypass optimization mechanisms. fallocate (described
Determining filesystem for block device if module not loaded
I’ve been wondering this for a while now. When using Linux and plugging in an e.g. USB stick or external storage device via USB, how does the kernel determine which filesystem is on that device, if the correct module is not currently loaded in memory? Assume that the external storage device is ext4 formatted. At the time of plugging in
Which system call does the Linux file command use?
Do you know which system call the Linux file command uses to determine the type of file? On the command line, if you use the file command it will reply with something like: dev-1:~/$ file download.png download.png: PNG image data, 724x 724, 8-bit/color RGBA, non-interlaced Is this an entire routine that does that? Or is there a system call that
how to view contents of asm diskgroup contained file?
I’ve just transferred my oracle 11g 11.2.0.4 DB to ASM and I want to look at the contents of some of the files. At first I tried using ASMCMD but then realized it doesn’t have such a command, and when trying to read from the diskgroup path it returns “no such file…”. is there any way to accomplish that? thnx