Questions tagged [fsck]

a tool to check the consistency of and repair a file system for Unix-like operating systems

Fsck ("file system check") is a tool to check the consistency of and repair a file system for and Unix-like operating systems, such as and Mac .

Man page: http://www.manpagez.com/man/8/fsck/

Wikipedia: http://en.wikipedia.org/wiki/Fsck

205 questions
9
votes
4 answers

ext3 fsck time versus partition size

I'm doing the setup for a large-scale storage farm, and to avoid the need for month-long fscks, my plan is to split the storage into numerous smaller filesystems (this is fine, as I have a well-bucketed file tree, so I can easily have separate…
womble
  • 95,029
  • 29
  • 173
  • 228
9
votes
1 answer

fsck a filesystem in a file

I created a filesystem like this: dd if=/dev/zero of=disk-image count=40960 filesystem is created with this: /sbin/mkfs -t ext3 -q disk-image I then mounted and copied some test files and unmounted like this: mount -o loop disk.image foo cp…
user124464
  • 101
  • 1
  • 1
  • 3
9
votes
3 answers

Causes of sudden massive filesystem damage? ("root inode is not a directory")

I have a laptop running Maverick (very happily until yesterday), with a Patriot Torx SSD; LUKS encryption of the whole partition; one lvm physical volume on top of that; then home and root in ext4 logical volumes on top of that. When I tried to boot…
poolie
  • 1,155
  • 1
  • 9
  • 17
8
votes
1 answer

ext3_dx_add_entry: Directory index full

Background: I'm running lighttpd 1.4.28-1 on CentOS 5.3 to serve the static assets. Signal: recently, it gets slow sometimes. I'm getting the below errors in the kernel log and /var/log/messages: proftpd[5145]: (::ffff:xx[::ffff:xx]) - FTP session…
quanta
  • 50,327
  • 19
  • 152
  • 213
8
votes
3 answers

Is it safe to stop a fsck in progress?

I have a server that I rebooted without using the f option in my shutdown command, and it started doing a fsck of a very large filesystem... which will take a very long time, as you can imagine. Is it safe to reboot while this is in progress to get…
snk
  • 372
  • 3
  • 4
  • 10
7
votes
3 answers

fsck on shutdown instead of startup

Usually, fsck is executed automatically at startup after every 30th reboot or so. Sometimes, it can be really slow, and can delay bootup by more than half an hour. Is there any way to run fsck at shutdown instead? (I don't mind if shutdown is…
7
votes
3 answers

CentOS disable filesystem check: superblock last mount time is in the future

I'm persistently getting the "Superblock last mount time is in the future" error when booting CentOS 6. I've seen other questions which ask how to resolve this error, but I know exactly why it's occurring: our development/testing VMs regularly have…
Zac B
  • 841
  • 1
  • 15
  • 27
7
votes
4 answers

is there an fsck for .iso disk images?

I have an iso file on a hard drive that's been having problems. Is there any way to check that the file didn't get corrupted, like an fsck for iso file systems?
JanKanis
  • 473
  • 1
  • 5
  • 11
7
votes
1 answer

Linux: Print all messages to primary console *and* secondary console (monitor/KVM)?

I run Linux (Red Hat-based, CentOS, SL, versions 5 & 6) on a variety of Supermicro and other whitebox servers. Some have IPMI, some do not. Some of these systems are attached to a Keyboard/monitor (KVM) console switch. Other systems are attached to…
Stefan Lasiewski
  • 22,949
  • 38
  • 129
  • 184
7
votes
3 answers

e2fsck on large filesystem fails with Error : Memory Allocation Failed

I'm trying to use e2fsck on a large raid array that is 2TB large and uses GPT for partitioning (because of size). There is only 1GB of ram installed on the system and I do not have the ability to add more at this time. The problem is, shortly after…
Jason
  • 71
  • 1
  • 2
7
votes
2 answers

running automated fsck on remote server

I had another question about df, and now i came to conclusion i need to run fsck my partition, i've been reading about it and would like some advice, if possible. The situation is like this, no physical access to the server and i want to run…
GriffinHeart
  • 411
  • 6
  • 14
6
votes
0 answers

Every startup i need to manually run fsck /dev/mapper/ubuntu--vg-root

Hi every day when I start my ubuntu 18.04, then it's not starting and gives a below error. (initramfs) exit /dev/mapper/ubuntu--vg-root contains a file system with errors, check forced. Inodes that were part of a corrupted orphan linked list…
Subhash
  • 161
  • 1
  • 5
6
votes
2 answers

e2fsck / resize2fs problems

I've got 6 drives (each 1.5T, all same model and firmware revision) that are part of a RAID5 array. The RAID5 makes a LVM volume group and a logical group. The latter contains only one ext3 partition. I've recently ran: e2fsck -f /dev/vg03/lv01 &&…
BlakBat
  • 274
  • 1
  • 3
  • 9
5
votes
5 answers

Superblock last mount time is in the future

Yesterday, I encountered a confusing problem. During booting, the system complained that the superblock last mount time is in the future and asks me to fsck. I have used Debian Squeeze for months and encountered the problem for the first time. I…
Shawn Xie
  • 163
  • 1
  • 1
  • 6
5
votes
2 answers

Ubuntu server 12.04.03 not checking disk partitions on reboot?

My MOTD is showing: *** /dev/md2 will be checked for errors at next reboot *** *** /dev/md1 will be checked for errors at next reboot *** *** /dev/md3 will be checked for errors at next reboot *** However, a standard sudo shutdown -r now does not…
jamesc
  • 181
  • 1
  • 2
  • 11
1
2
3
13 14