Questions tagged [fsck]

fsck (for "file system consistency check") is a tool for checking the consistency of a file system

The system utility fsck (for "file system consistency check") is a tool for checking the consistency of a file system in Unix and Unix-like operating systems, such as Linux and OS X. A similar command, CHKDSK exists in Microsoft Windows.

Source: WikiPedia

47 questions
1
vote
2 answers

Changing replication of existing files in HDFS

I tried changing the replica factor from 3 to 1 and restarting the services. But the replication factor remains the same Can anyone suggest me how to change the replication factor of existing files? This is the fsck report: Minimally replicated…
Abhinav
  • 658
  • 1
  • 9
  • 27
1
vote
1 answer

How to get block report from one specific rack in Hadoop?

I am wondering whether it is possible to get block report only from one rack in hadoop? I know I can get a whole block report with the following command: hdfs fsck / -files -blocks -racks However, when your cluster is big, it takes a lot of time…
Nooshin
  • 943
  • 1
  • 9
  • 24
1
vote
0 answers

Regenerating a Corrupted Git Repo from Log Files?

I hit a random bluescreen on windows and when I restarted, my git repo was corrupted. It's a local-only repo and my backups are several weeks old. I've tried a number of different things (documented below) to get it working, but to no avail.…
speedplane
  • 15,673
  • 16
  • 86
  • 138
1
vote
0 answers

UFS - how a 0 bytes file broke filesystem header?

For those reaching here; Unfortunately I could not recover the data, after various tries and reproducing the problem it was too costy to keep trying, so we just used a past backup to recreate the information needed A human error broke an 150G UFS…
Marcus
  • 23
  • 6
1
vote
1 answer

Verifying a git repository (Stash) restore

We have disaster recovery plans that mean we take a backup of our git installation (Atlassian Stash in our case) and restore it on a test server to verify the backup was a good one. If the restore process fails then we have a problem but we're…
GogLlundain
  • 552
  • 4
  • 9
1
vote
0 answers

How to view corrupted files Hadoop?

I have some corrupted files on my Hadoop machine and I want to transfer them to another computer and see what is in them. I tried to do hadoop fsck -copyToLocal /dir1/ /dir2/. It gives nothing. When I do hadoop fs -copyToLocal /dir1/ /dir2/ or…
Oleg
  • 11
  • 1
1
vote
1 answer

Is it good to run "fsck" command in C++ code program before mounting a file system?

I am writing a C++ Library to attach/mount file systems present on Logical Volumes in Linux and AIX. Can I run/execute fsck command in the C++ code before mounting a file system? What problems will arise if I execute fsck command in C++ code on…
SwapG
  • 93
  • 1
  • 6
1
vote
1 answer

How to know if fsck is running?

My Android app needs to store 15 GB of data, so it needs to use removable storage. So I need to check if fsck is running while my app is loading (to quit if that is the case). Of course I can do a Runtime.getRuntime().exec("ps"); but I have read…
Luis A. Florit
  • 2,169
  • 1
  • 33
  • 58
1
vote
1 answer

Android: disable fsck_msdos on a particular SD card

Using a Samsung Galaxy SIII (AT&T version) running Android 4.0.4 with stock Samsung customizations, I am just trying to mount an SD card (through a card reader connected via an OTG adapter to the USB host port). Unfortunately, this device seems to…
AlcubierreDrive
  • 3,654
  • 2
  • 29
  • 45
0
votes
1 answer

How to recover home folder? Cloned partition recovered other directories like /etc/ but not /home

I have two linux partitions on my laptop (one ubuntu and one garuda). Ubuntu was giving me problems so I installed Garuda to check it out. The Garuda partition filled up so I used KDE partition manager to shrink the ubuntu partition so I could…
kreitz
  • 58
  • 6
0
votes
1 answer

GitLab server: broken link from tree to blob

Been getting a report from my GitLab server repocheck.md that there is a problem in one of my repositories. This is the problem: E, [2020-04-04T10:25:00.323291 #27099] ERROR -- : Could not fsck repository: broken link from tree…
BarryPye
  • 1,975
  • 2
  • 18
  • 19
0
votes
0 answers

How can I backup mysql files if system files became readonly in Ubuntu server?

FSCK needs to be done and a drive was already mounted. How can I backup the files since mysqldump is not working because the drive is set to read-only?
kiong
  • 116
  • 6
0
votes
1 answer

editing a file while in memory during a fresh provisioning?

I want to disable fsck from doing a file system checks (yes I am aware of it's purpose). Online it says to edit the 6th column in the /etc/fstab file. sed -i 's/ [1-]$/ 0/g' /etc/fstab I have tried putting it when the kickstarter files run but…
0
votes
1 answer

Git fsck for specific folder

Is it possible to run git fsck For a specific folder when I am sure that the files I have deleted were located under a specific folder in my Mac?
Sazzad Hissain Khan
  • 37,929
  • 33
  • 189
  • 256
0
votes
0 answers

Fsck Expect Script

So as the title suggests I am trying to create an expect script that will run fsck on my corrupted drive. The goal is to repair the drive so I can mount it and recover the data from it. When running the command manually I get: Either the superblock…