Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
4 votes
1 answer
2k views

`ls` command stuck when run as root

I have this folder containing only two files. If I use root and cd to that folder, ls would get stuck. However, ls runs correctly when I log in as a common user, or ls from parent folder like ls ...
leetom's user avatar
  • 175
0 votes
0 answers
27 views

Is LVM broken or xfs filesystem dead?

As we say all too often, never prod on a Friday ... But an admin on my team wanted to expand a lv, so he broke the whole system. I've managed to remount the disk and the group volume, and now I'm ...
Franck Huet's user avatar
0 votes
1 answer
89 views

How do I update the UUID of an ExFAT partition?

How do I set the UUID of an ExFat partition? The linux tools I've tried (mlabel, gparted) only allow resetting the UUID to a different random one, not to a UUID I choose.
JanKanis's user avatar
  • 259
0 votes
0 answers
37 views

Files and folders on shared drive created on Linux are not visible in Windows (dual-boot)

I have a dual-boot with Linux (Manjaro) and Windows installed on two separate SSDs, plus I have a shared ex-fat HDD which contains documents and the like. Problem is, very often, when I'm on Linux and ...
diridev's user avatar
0 votes
1 answer
176 views

Is there a quick way to reclaim space overallocated for files on ext4?

Samba 3 has somehow overallocated a lot of space on my NAS for hundreds of files. (Looks like that was caused by strict allocate = yes in smb.conf even though it's unclear to me why. Filesystem is ...
Konstantin Pelepelin's user avatar
0 votes
0 answers
48 views

Bcachefs: remove dead drive from an online filesystem

I'm playing around with bcachefs to see how it handles various scenarios. Currently, I'm doing a simple experiment where I'm writing random data to a file on an array with 3 HDDs set up with 2 data ...
Melon Chan's user avatar
0 votes
0 answers
52 views

RHEL + can't resize the partition sda2 on RHEL 7.2 machines while it's passed on higher RHEL version

We have old Linux machines with RHEL7.2 and others with RHEL7.6 We want to resize the partition sda2 and then grow the filesystem. ( as /var or root filesystem ) The thing is that we succeeded to do ...
King David's user avatar
2 votes
1 answer
159 views

linux last status change time / last modification time

When I modify the content of a file, for example by date > f.txt then I execute stat f.txt I see that both last status change time and last modification time are both are changed. I am looking for ...
tahzibi.jafar's user avatar
0 votes
0 answers
117 views

Windows found problems with the file system that could not be corrected?

I have a NTFS formatted USB drive that I use both with Linux and Windows 11 and it normally works OK. Recently Linux gave me a rather dire sounding error: zog@kb:~$ sudo mount /dev/sdc2 ~/Templates/ [...
DrZog's user avatar
  • 1
2 votes
1 answer
81 views

exFAT for mechanical spinning external HD as cross-platform backup?

We have a mix of Linux (Debian) and MacOS laptops. I have a 4 TB external USB mechanical rotary drive I'd like to use for backups. I'd not want to partition the drive with different file systems for ...
Stacker's user avatar
  • 21
0 votes
0 answers
21 views

What is the benefit of tailoring `mke2fs` regarding inode count compared to leaving the default

I have found that manually setting the -N parameter of mke2fs -t ext4 according to guesses or looking at df -i output creates much less inodes for a given size of a file system. Filesystem creation ...
PoC's user avatar
  • 141
1 vote
1 answer
87 views

linux + wipe a signature from a device not succeeded

we have the following file system. from lsblk -f sdb LVM2_member uMrU0b-6F3l-M9Ue-LPsf-kd6n-5l4m-WfxaRQ └─DB_vg-DB_lv xfs a800d759-c8c7-4e7e-86d5-3d6a06123465 ...
King David's user avatar
1 vote
0 answers
72 views

Linux won't boot with f2fs

I recently had a hardware failure and replaced by old HDD with an SSD. Therefore I used f2fs for my root partition. But now I am unable to boot properly due to fsck failure. I keep getting the ...
walderich's user avatar
  • 161
0 votes
1 answer
209 views

Why am I getting "Partition 3 does not start on physical sector boundary" warning with this setup?

On a fresh install of Proxmox 8.1, fdisk -l is warning "Partition 3 does not start on physical sector boundary". This is unexpected to me, because the start of the partition is 2099200, ...
brendanw999's user avatar
0 votes
0 answers
57 views

ubuntu filesystem display names in df -hT

I have an older linux system that has a certain file structure that we need for a program we use. im building a new ubuntu server to take over for the older one and im trying to make the filesystem ...
G. G.'s user avatar
  • 1
9 votes
7 answers
5k views

Where exactly does the root directory exist in the linux filesystem?

In Windows each drive has a letter and file paths start with a drive letter. so my home directory is inside C:\Users. In linux the OS is installed into the main partition which is say /dev/sda1 which ...
Juliana Restrepo's user avatar
1 vote
2 answers
118 views

Create a folder with a name ending with a dot on a NTFS volume in Linux

On Windows, the win32 API seemingly disallows a directory name to end in a dot (.) but according to several questions asked in that direction (e.g. link1, link2), the solution on windows is to specify ...
antiplex's user avatar
  • 149
0 votes
0 answers
132 views

How to sync filesystem and wait until it's done

On my embedded device, I want to let user export logs on plugged USB disk. USB disk is normally used only to read, so I don't care much about safe unmounting. But when logs are stored to it, I need to ...
Thugmek's user avatar
  • 13
0 votes
0 answers
160 views

How to get the total actual number of inodes for file system?

In the Linux terminal I can do df -i to show how the inodes are allocated. That is explicitly not what I need. What is the terminal command needed to reveal how many inodes are available to the file ...
John's user avatar
  • 2,147
1 vote
0 answers
222 views

How to investigate ext4 filesystem going read-only (no hardware errors reported)?

I have two separate systems experiencing what appears to be the same issue: "Desktop" - i7-7700K, ASUS Prime Z270-A, Ubuntu 22.04. Kernel 5.15.0-94-generic. "Server" - NUC8i3BEH, ...
ilmiont's user avatar
  • 111
0 votes
1 answer
71 views

Linux - What causes processes to block aka "disk sleep" on synchronous writes?

...as in, for example using dd to dump an ISO image to a thumb drive, or such. At the end of the transfer, the process doing the (afaik synchronous) write is left in 'disk sleep' status for several ...
delt's user avatar
  • 3
0 votes
1 answer
117 views

Rescuing data from HFS+ backup?

I recently learned about the "pitfalls" of using HFS+ when backing up data. I backed up a Time Machine drive a couple of months ago. I just used rsync to do so. So now I have a copy of it on ...
datafan's user avatar
0 votes
0 answers
33 views

Linux mounted VFAT filesystem shows semicolon-asciicode for some uppercase letters

The disk is listed as follows: $ sudo fdisk -l /dev/sdd Disk /dev/sdd: 298.09 GiB, 320072933376 bytes, 625142448 sectors Disk model: USB 2.5"-HDD Units: sectors of 1 * 512 = 512 bytes Sector ...
zormit's user avatar
  • 103
0 votes
2 answers
177 views

lvm: lvresize --resizefs does not read the request size in correctly

I am trying to resize a logical volume (as well as the filesystem contained on that volume) and am a little confused by the output of the lvresize command: # lvresize --resizefs -L 2T /dev/archive/...
aarondiel's user avatar
  • 101
0 votes
1 answer
718 views

How do I import ZFS pool from a crashed system?

I had one ZFS pool attached to a system that crashed. I was looking for ways to bring that pool to a new system however it looked like I need to use zfs export first, given I do not have access to the ...
yarun can's user avatar
  • 1,010
2 votes
1 answer
618 views

How to mount BTRFS partition multiple times both using the same space allocation?

I’m new to BTRFS and am wondering if it’s possible to share the space of a single partition but mount it under multiple mount points? For example, I have a 1 TiB partition and want to share the same ...
Joe J's user avatar
  • 518
2 votes
0 answers
169 views

Partitions on a TF card are not working as expected; third partition is not seen

I want to create three partition in a new brand TF card (not micro SD), but I can't sort it out! What I did up to now: create a disk partition table fdisk -l /dev/sdd Disco /dev/sdd: 250 GiB, ...
seirov's user avatar
  • 31
0 votes
2 answers
321 views

How to test for ext4 Partition? Not ext4 Filesystem

using: neofetch --stdout |grep 'OS:' OS: Kubuntu 22.04.3 LTS x86_64 Start Update Question due to someone deleted information: No interest in testing for ext4 Filesystem. lsblk -n -o FSTYPE /dev/sdb1 ...
joseph22's user avatar
  • 367
2 votes
0 answers
149 views

How to determine what script is deleting files in Linux?

I run a Plex Media Server (PMS) on a ubuntu 22.04 system. There's been no update to the PMS libraries for a while, and I recently started adding a few movies to the collection. But what I've found ...
Dennis 's user avatar
  • 151
8 votes
3 answers
3k views

No space left in device error despite being empty

Why am I getting No space left on device when I try to create more than 32767 files in my vFat USB Flash Drive? Info Flash drive is empty (freshly formatted) $ df -H > Filesystem Size Used ...
cmhteixeira's user avatar
0 votes
2 answers
220 views

linux: /home/user's owner is changed to an integer; why?

The owner of the mysql users on my AWS instance has been changed from username to a number. The number is not listed in passwd, group, shadow or gshadow. It appears to be associated with an installed ...
Joseph White's user avatar
2 votes
0 answers
403 views

BTRFS: no space but plenty free, balance doesn't do anything

I've got a BTRFS filesystem on four 20TB disks. It used to be three disks and I recently added a fourth: > btrfs filesystem usage /data Overall: Device size: 72.76TiB Device ...
Johannes Bauer's user avatar
1 vote
1 answer
337 views

With raw disk, before Partition, before filesystem, how to map bad blocks?

using: neofetch --stdout |grep 'OS:' OS: Kubuntu 22.04.3 LTS x86_64 After zeroing disk with: time sudo dd if=/dev/zero of=/dev/sd_ bs=1M status=progress #Zero_disk_delete_wipe We have ...
joseph22's user avatar
  • 367
0 votes
0 answers
97 views

Drive balancing and duplication with mergefs in Ubuntu

I want to use mergefs to create a drive pool in Ubuntu. Is there any option available on mergefs to pick the drive with the most "relative" free space (the % Free space of the drive) instead ...
Paolo Crocè's user avatar
0 votes
1 answer
416 views

btrfs errors when running newer kernel

There is a strange btrfs related problem I'm facing on a server. When running a kernel version up to 4.9, everything works like a charm. If I upgrade to any version >= 4.19, everything breaks down. ...
gmelis's user avatar
  • 697
0 votes
0 answers
350 views

Desktop,Music and Public folder in the Home directory gets Link (broken) (inode/symlink) on opening a pdf in the Home directory.How do I fix it?

Yesterday I shut down my laptop and it took an exceptionally long time to shut down after lots of messages being displayed by the OS(Ubuntu 20.04.6 LTS) on shutdown. Today,when I started my laptop it ...
Anurag 's user avatar
0 votes
0 answers
105 views

Cannot write to SSHFS mount in user namespace created with "unshare -c -m --keep-caps bash"

Background Ultimately I am trying to mount a remote filesystem in a kubernetes pod on a self-hosted cluster that uses Docker as a container runtime. The process running in the pod determines the mount ...
Sebastian's user avatar
8 votes
7 answers
4k views

Is this possible to boot an OS from some kind of a file?

First of all, I want to say that this quesiton is purely theoretical. But if it's possible, I would be really glad to learn its possible use cases, and overall drawbacks. Is this possible to boot an ...
degD's user avatar
  • 99
0 votes
1 answer
47 views

How to understand the hardlinks field of a directory

I've run ls -l command but I have got a big confusion: Ouput of ls -l in home directory: $ ls -l total 16 drwxr-x--- 19 farah farah 4096 اگست 18 18:40 farah drwxr-x--- 40 hussain hussain 4096 ...
Muhammad Hussain's user avatar
1 vote
0 answers
61 views

ecryptfs: What would happen if we entered the wrong passphrase and continued like that? Can we prevent encryptfs from accepting a wrong passphrase?

Using ecryptfs, a fine file-system encryption mechanism on Linux. After the filesystem is setup with ecryptfs (ecryptfs is an overlay of the actual filesystem, like ext4. Files and directories name ...
Déjà vu's user avatar
  • 685
0 votes
2 answers
336 views

Check if an image already exists in the filesystem under a different name

I've been given a suitcase full of old data-cds full of images which have to be saved. However, it is quite possible that a lot of these images are already saved in the filesystem, but i don't know ...
ductTapeIsMagic's user avatar
0 votes
1 answer
789 views

need POSIX solution to remove special invisible characters from file

I have a file that comes to us from a third party (Windows) and is not in our control. I observed that it has special characters like below: root@DKERP:~# cat -ev ~/check_disk_space.sh M-oM-;M-?#!/bin/...
Ashar's user avatar
  • 103
0 votes
1 answer
1k views

Using overlayfs on ext4 with casefold enabled?

My dockerd service was not working anymore and failed because it could not initialize the overlay2 storage driver. I have a primary partition formatted with ext4 that has the casefold option enabled. ...
seyfahni's user avatar
-1 votes
1 answer
32 views

Files do not open when they begin with . on Windows

I noticed that files fail to open if they begin with a dot. I tested .pptx files and .pdf files, comparing their behavior on Linux and Windows. I created one nearly empty pdf file and one nearly empty ...
vikx6661's user avatar
1 vote
0 answers
42 views

btt in blktrace tool does not report any data in android

I have collected trace data in file parse.bin with blktrace in android. Then I use btt to parse the cellocted data as below: /ssd/blktrace/btt/btt -i parse.bin But it does not report any data. The ...
Jun's user avatar
  • 11
0 votes
2 answers
160 views

filesystem on Linux for SD card for Dropbox sync

I have a super small drive on my ultraportable lenovo 100s. I want to sync several gb of stuff from my dropbox onto it, so I have equipped it with a western digital purple sd card. I plan to use that ...
Rho Phi's user avatar
  • 141
1 vote
2 answers
120 views

What are version and revision of a file?

The docs for the nnn file manager says that nnn is able to sort a list of files on the basis of: apparent disk usage / disk usage / extension / revision / size / time / version But what are the &...
robertspierre's user avatar
0 votes
0 answers
338 views

Which file should I refer to? /proc/self/mounts or /proc/self/mountinfo?

In some places I can see that people are suggesting to avoid using /proc/self/mounts file as it is deprecated. However, I don't see any such thing in the official documentation: https://man7.org/linux/...
codego123's user avatar
1 vote
0 answers
20 views

How to find the absolute path of the source of a mounted device? [duplicate]

How can I find the absolute or full path of a mount from /proc/self/mountinfo file?
codego123's user avatar
1 vote
0 answers
223 views

How to find true source of a mount?

I want to understand how can I figure out the actual source of a mount from /proc/self/mountinfo file? Here is an example of a mountinfo file: 19 60 0:5 / /dev rw,nosuid shared:2 - devtmpfs devtmpfs ...
codego123's user avatar

1
2 3 4 5
23