A filesystem is a way to organize and store computer files with their data.

learn more… | top users | synonyms (2)

3
votes
2answers
28 views

freshly created partition missing even after partprobe, shows no such device or address

On Ubuntu 14.04 i am trying to create new partitions but its failing to create filesystem fdisk -l /dev/sde WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support ...
2
votes
2answers
59 views

How does the Linux or Unix “ / ” get mounted during bootup?

Devices can be mounted to a path. For example "/dev/sda1" can be mounted to "/home/user". What I don't understand is how and where the " / " is mounted during boot. Any help explaining?
1
vote
1answer
18 views

Tree operations (find) using indices (inode numbers) to address files/directories

(removed OS mention, since I need 'general Unix/Linux' solution) Task: perform operation over files/directories, in "find way", but assuming that file/directory pathnames can change in process. ...
1
vote
0answers
16 views

File explorer fails to start when I run it and disappeared from Favorites [on hold]

Few days ago I installed the Linux update. Of course it wasn't working, because of my chipset compatibility. I'm turning on the old version of Linux Threw GRUB, but there's a problem with my File ...
3
votes
2answers
53 views

Strange file with impossible name in my home directory

I have a strange file that appeared in my home directory a couple of days ago: ls in bash gives me the following output: Âõ(\'e@\Âõ(\7@\Âõ(,e@ëQ¸[email protected] In fish, ls quotes the names shell-safe ...
1
vote
0answers
12 views

Discrepancy in disk usage between btrfs fi show and btrfs fi df

I'm aware of some btrfs issues with full metadata but mine issue seems different. I have 2x3TB disks creating raid0 btrfs filesystem. I can't understand the difference between disk usage reported by: ...
0
votes
0answers
28 views

Force cp to perform illegal operation on inode

I'm attempting to create custom FUSE "filesystem" with non-standard behavior (not meant for conventional file storage) and I wonder if there's a way to force cp to perform illegal operation on file? ...
0
votes
0answers
28 views

Copy files from windows to Cygwin is harmful? [migrated]

If I copy some files from windows to the /home folder of Cygwin, am I corrupting Cygwin file system? How about if some of these file are executable and I execute them in Cygwin /home folder? Should ...
-2
votes
0answers
21 views

how to create swap file from particular file system [duplicate]

By using fallocate -l "$size" "$swapfilename" command swap file is creating every time by taking size from single filesystem, but I want to specify the file system explicitly. How to create a swap ...
0
votes
2answers
45 views

how to compare filesystem sizes with -h human-readable suffixes in unix

I am taking input as memory ex. 10M or 50G or 50 K and I want to check this much size available in file system. for that I'm using df -h command df -Ph . | awk 'NR==2 {print $4}' I am getting ...
4
votes
1answer
90 views

What is the sense behind ZFS's limits?

Why does ZFS have the following limits? What internally limits these things? Why couldn't ZFS have a theoretically unlimited volume size, or filename length, and so on?
2
votes
0answers
19 views

Mounting HPFS partition read/write?

I'm not talking about NTFS partitions that show up as HPFS/NTFS. Is mounting actual HPFS partitions read/write possible?
1
vote
1answer
21 views

BTRFS balance completed, but still shows data stored in “single” mode

I have three drives (8TB, 4TB, 3TB). Originally, I created a btrfs partition on the 8TB drive and copied all my data there. I added the 4TB and 3TB drives by using btrfs device add, and then then ran ...
1
vote
3answers
27 views

Corrupted usb key cannot be mounted or formatted

I have a USB stick that I can't operate on no matter what. lsbkl -f shows an empty line and no partitions NAME FSTYPE LABEL UUID MOUNTPOINT ...
3
votes
2answers
54 views

Why is writing to a existing file faster than write a new empty file?

I use MappedByteBuffer to write file in linux. File file = new File("testFile"); RandomAccessFile raf = new RandomAccessFile(file, "rw"); FileChannel fc = raf.getChannel(); MappedByteBuffer mbf = fc....
0
votes
0answers
41 views

How to format a 4TB USB external drive to use on LINUX (Ubuntu) and Mac OSX?

I'm having a hard time getting a 4TB external USB drive to work on both LINUX (Ubuntu 14.04) as well as on my Mac OSX. The problems seem to be with inconsistent ability to read/write the USB drive. ...
1
vote
3answers
25 views

why df get result inconsistent with lsblk?

The output yielded by df consistent with lsblk debian8@hwy:~$ df -h /dev/sda1 Filesystem Size Used Avail Use% Mounted on /dev/sda1 47G 34G 14G 72% /media/xp_c debian8@hwy:~$ df -h ...
0
votes
0answers
40 views

How to Zip the files consuming larger space?

i have tried this code below du -a $path | sort -n -r | head -n 5 > diskspacefile.txt file=$(cat diskspacefile.txt) while read p; do filesize=echo $p | awk '{print $1 }' if [ $filesize >...
0
votes
0answers
32 views

Fuse file system with “default permission” option [closed]

I am new to fuse. I have mounted fuse by the following command. /home/bin/fusexmp /mnt/fuse -o default_permissions -o allow_other -o nonempty -o hard_remove -d Now If I login as "test" user and ...
-1
votes
0answers
37 views

How to create mount point in a filesystem and assign memory to it [closed]

How to create mount point in a file system and assign memory to it. I want to create a mount point in a filesystem and add spacee to it. i need a mount point and directory to be created in a ...
0
votes
3answers
51 views

need information on creating swap memory on unix

I am creating swap file using fallocate -l "$memory" "$swapfilename" command. I have some questions: On which file system is the swap file created if multiple file systems are present? Can we ...
0
votes
2answers
33 views

How to recover data after lvremove in centos 7.0?

I did a stupid thing by removing a Logic volume by issuing the below command. lvremove -f /dev/cl_dhcppc4/home However, immediately I restored the lvm from the backup file. vgcfgrestore --file /etc/...
1
vote
2answers
65 views

Move directories despite of errors

When moving a directory to another drive, if there are errors in the process, nothing will be deleted. I am getting this kind of errors: mv: cannot stat ‘originaldirectory/longpath/irrelevantfile’: ...
1
vote
0answers
14 views

MacOS: USB history (name and timestamp of connected devices)

My external HDD was stolen from me a few weeks ago but I just realised this recently. I really need to know when was the last time I connected this device to my computer. I know it's name, is there ...
1
vote
0answers
33 views

mkdosfs to format dashcam SD card FAT32 with 32kb cluster size

I am trying to write a script to reformat a dashcam SD card, as is recommended by the manufacturer. I can do this on a windows system with a simple python script, a snippet here: ... fm = windll....
0
votes
0answers
26 views

Centos device /dev/sdb1 is not a valid luks device?

I have Centos on Virtualbox, when I installed Centos I used all 20G. After installation I made extend for more one driver with 5G inside Centos everything is good when I made partitions and file ...
1
vote
0answers
12 views

Grow an HFS+ Volume on OSX without re-partitioning

I have created a master image using Clonezilla so we can (frequently) re-image a bunch of our machines. The problem I am having lies in the deployment of the image to machines with larger HDDs. The ...
-2
votes
1answer
56 views

Showing read only /var partition on Debian

I have seen an industrial computer running Debian, to protect the flash disk from writes and have the system in a defined state after every boot, the whole disk was mounted read-only, there are no ...
1
vote
0answers
15 views

Does FUSE have any specific cache interaction?

I'm a bit lost in how kernel caches work in general, so generic cache information is fine too, but I'm specifically working on FUSE. So, I read that the kernel looks up a file/directory via VFS using ...
0
votes
0answers
10 views

Are dcaches in VFS file-system-specific or not?

Information I found is that file-systems that use inodes and dentries, such as ext2, have inode caches and dentry caches. In addition to that, VFS has its own inodes and dentries along with its own ...
0
votes
3answers
88 views

What is a flat file?

Is it a plain text file or binary file or just character file? Can someone explain what a flat file actually means?
12
votes
1answer
620 views

How many directories can be nested?

I'm curious, how many folders can be nested, and why? Is there a limit? What I mean by nested is when folders are in this structure: folder |_ folder |_ folder |_ folder |...
1
vote
1answer
30 views

open file and current directory permissions

I'm trying to learn about file and directory permissions in unix/linux. I think I got the general idea, if I want to cat ~/foo/bar/text.txt I need x+r permission on ~, ~/foo, ~/foo/bar, and r ...
0
votes
0answers
30 views

When would VFS be required to do a full path walk instead of using the dentry cache?

So, from what I understand, if you have accessed /foo/bar/file, that path is dentry cached. So, you'll be able to access the inode for file without path-walking /, foo, and bar. What are the ...
2
votes
1answer
39 views

What are the list of different type of caches in Linux file systems?

I've been reading this page, http://www.tldp.org/LDP/tlk/fs/filesystem.html, and I have trouble organizing all the different caches it's talking about. Especially, I don't understand the different ...
1
vote
0answers
10 views

mhddfs filesystem hangs after a while with large directory

I have 2 RAID1 of 4TB each which are joined together with mhddfs. There is one directory that exists on both disks that contains hundreds of thousands of files. There is a lot of read/write happening ...
1
vote
0answers
31 views

Encrypted (luks) + LVM Ubuntu installation where /home is encrypted as well (ecryptfs): How to make a new partition for /home?

I've installed Ubuntu 16.04, encrypted and with LVM. I also chose the option to encrypt /home (which encrypts the directory with eCryptfs). The default settings make an unencrypted /boot and an ...
0
votes
1answer
17 views

What are the folder that I cannot set as encrypted folders decrypted at login? [closed]

I want maximize the number of folders encrypted with ecryptfs and decrypted at login with the module pam_ecryptfs.so. Which folders cannot possibly be encrypted before login in? I guess a lsof ran ...
2
votes
2answers
58 views

How do I find out what filesystem FUSE is using?

when I run mount, I can see my hard drive mount as fuseblk. /dev/sdb1 on /media/ecarroll/hd type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,...
12
votes
2answers
914 views

What exactly is dot dot (..)? Why is its behavior different with symlinks?

I am trying to understand the nature of .. (double dot). It seems to point to different targets depending on how you access it. Example:- /outer/ middle/ inner/ inner ...
0
votes
2answers
26 views

Debian gnome-disks and mkfs can not format external hdd

I have an HDD bought a few years I have not touch since at least a year. When connecting it to my laptop, the drive does not appear in the drive list in the file explorer. I used fdisk to be sure it ...
0
votes
2answers
65 views

How do commands like ls or stat distinguish the file type?

How do commands like ls or stat distinguish the file type, whether the object is a file or directory? For example, I created these two objects, considering the fact that a directory is also a file... ...
6
votes
1answer
42 views

How are files/dirs hidden from ls -a while still beeing accessible otherwise in a POSIX compliant system?

So for example in ZFS under FreeBSD and ZoL, there is a magic .zfs dir inside of each zpool mountpoint and you can use zfs set snapdir=visible to make that .zfs dir visible. What makes me curious is, ...
0
votes
2answers
36 views

Recover specific files from deleted EXT4 partition

Is there any way to recover a few specific files from a deleted EXT4 partition. I deleted all partitions on my 480GB SSD. Afterwards, I created a 200 GB NTFS partition (which is mostly empty) and I ...
0
votes
1answer
20 views

Accessing FAT32 partition from Windows

I'm working on a Raspberry Pi project on a Zero board. I'd be so happy if I could write a sizable number of files from a Windows or MAC laptop onto the microSD card that I plug into my Pi project, and ...
1
vote
1answer
26 views

How to delete a invalid osd in ceph cluster?

[root@dev-master ceph-cluster]# ceph osd tree ID WEIGHT TYPE NAME UP/DOWN REWEIGHT PRIMARY-AFFINITY -1 0.01740 root default -4 0.00580 host osd2 0 0.00580 osd.0 down 0 ...
0
votes
1answer
36 views

Required permission to create directory

I'm trying to create a sub directory under existing directory tree. I want to know if only the permissions of directory where I'll be creating my sub directory matter or the parent directories will ...
1
vote
1answer
14 views

collectd is creating /home folder on my mac and I cannot remove it

I posted this here instead of the apple site because this seems more like a *nix-ish issue and I think this site would be better suited for it. I had installed collectd with graphite for monitoring ...
-4
votes
2answers
43 views

how to set alias for the folder in Linux [closed]

I want to set the alias for the "abc-abc" folder as "abc" in Linux.Can you help me? EX: /raj/abc-abc/xyz/data
1
vote
1answer
57 views

Do system calls call themselves?

Do they? for example, I was thinking of the simple system call chown. Does it call other system calls like read and write? How can we find out?