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
1
vote
0 answers

How to add a partition to CentOS without losing data on it

we had a CentOS 6.4 server with two RAIDs. One RAID-1 and the other RAID-5 RAID-1 had multiple partitions with OS installed on it. RAID-5 had two partitions with some data on it. In order to replicate a scenario, we had to quash RAID-1 partitions…
1
vote
1 answer

How to fsck a partition that is part of a software Raid that again is part of a LVM volume group?

The faulty partition is /dev/sdb3. from /proc/mdstat: md2 : active raid1 sda3[2] 2896184639 blocks super 1.2 [2/1] [U_] says /etc/fstab: # /dev/md/2 belongs to LVM volume group 'vg0' /dev/vg0/backups /backups ext4 defaults 0…
initall
  • 2,205
  • 3
  • 18
  • 19
1
vote
2 answers

server maintenance to prevent fsck failures

once in a while after a reboot I found fsck would fail on OS disk and booting becoming impossible on many of my servers. and then I had to reinstall OS and do data migration from the failed OS disk. would the following measures prevent this from…
user12145
  • 1,075
  • 6
  • 26
  • 47
1
vote
2 answers

OpenVZ containers will not start after a reboot

vzctl start 192 Dump file /vz/dump/Dump.192 exists, trying to restore from it Restoring container ... Opening delta /vz/private/192/root.hdd/root.hdd Data cluster 1112 beyond EOF, vsec=47137... FATAL Error in ploop_check (check.c:547): Fatal errors…
Jason
  • 3,821
  • 17
  • 65
  • 106
1
vote
0 answers

Directory index full, is this fsck result OK?

I found these in my /var/log/messages: kernel: EXT4-fs warning (device md2): ext4_dx_add_entry: Directory index full! kernel: EXT4-fs warning (device md2): ext4_dx_add_entry: Directory index full! kernel: EXT4-fs warning (device md2):…
adrianTNT
  • 1,007
  • 5
  • 21
  • 41
1
vote
1 answer

fsck.vfat auto repair on error

I use Ubuntu 10.04 on an embedded device. I have a CF card of 2GB formatted in FAT32. From time to time, the device is powered off while data is written to the FAT partition. As a result, the partition goes into read-only mode. I would like to know…
Stathis
  • 11
  • 3
1
vote
2 answers

Prevent a fsck at boot on EC2

I'm starting an instance on Amazon EC2, and it does a fsck at boot and restart. The console output at the start is: * Checking root filesystem .../dev/sda1: Adding dirhash hint to filesystem. /dev/sda1 primary superblock features different from…
Amandasaurus
  • 30,211
  • 62
  • 184
  • 246
1
vote
1 answer

Ubuntu server mounted in read-only?

This morning my Ubuntu server suddenly appeared in read-only mode. Google says this can happen after updates. I restarted the server and it booted with fsck errors: Inodes that were parts of a corrupted orphan linked list…
Martin
  • 220
  • 3
  • 9
1
vote
2 answers

Strange behavior of fsck

I am using Debian 7 with two HDDs: 500Gb PATA and 750Gb SATA. blkid shows me the following: root@intel:/etc# blkid /dev/sda1: UUID="b6350c6b-5fbd-4e07-9a4b-10b600fbb64c" TYPE="swap" /dev/sda2: UUID="2f852e13-38ee-4b56-a474-d675c22d5f28" TYPE="ext4"…
gooamoko
  • 163
  • 1
  • 8
1
vote
2 answers

can i say "NO" to "Clone multiply-claimed blocks" in fsck?

I need to know if i can still mount the volume when i tell fsck "no" in that question. i dont need to repair all the files in the volume, i just need recover one single file for this event. the volume got some big files that put fsck stuck for…
Freaktor
  • 271
  • 2
  • 9
1
vote
1 answer

Hard disk error

There seems to be something wrong with my hard drive, but I'm not sure what, or how to proceed. The first sign of any problems was this: I tried making a new directory on my server, but when I did so, it hung for like 30 seconds, then gave this…
1
vote
1 answer

Does my server have bad blocks or not?

My server crashed today. It switched the /sda8 device (/home) to read only and the log said "ext3_xattr_block_get: inode 590080: bad block 6" From rescue mode (something my hosting provider offers where the OS is loaded from the network) I ran…
user32381
  • 207
  • 3
  • 8
1
vote
2 answers

e2fsck on a low-memory machine: can I get more out of scratch_files or swap?

I am running CentOS 6 on a 32-bit machine with 1 GB of RAM. I have a 1TB external HDD that I am trying to run e2fsck on. It runs for about an hour and a half and then fails with Error storing directory block information (inode=45206324, block=0,…
1
vote
2 answers

If a machine has an unclean shutdown AND the time has expired for a fsck, which message will get printed?

OS is CentOS 5. Generally after an unclean shutdown, the CentOS startup text will display something about a fsck being needed due to an unclean shutdown. (I can't remember the exact text off the top of my head) Also, if you go a certain number of…
cat pants
  • 2,139
  • 10
  • 33
  • 44
1
vote
1 answer

Recover ext3 files from hard disk with bad sector

I have a folder of about 5GB that suddenly disappeared. When I checked its hard disk, I found out it has bad sector for about 2-3MB on this folder. Maybe it is on the folder's pointer. The partition is EXT3 , and operating system is Debian. I tried…
Arash Mousavi
  • 658
  • 3
  • 8
  • 21