How to run FSCK to /dev/sda3

jingjong

New Member
Jan 12, 2018
11
0
1
42
Hi,

I am currently working on a test server trying to recreate a manual FSCK to SDA3

Tried e2fsck to /dev/sda3 but I am getting this

# e2fsck /dev/sda3
e2fsck 1.42.12 (29-Aug-2014)
/dev/sda3 is in use.
e2fsck: Cannot continue, aborting.

Tried these to articles

But nothing works

1. https://www.cyberciti.biz/tips/surviving-a-linux-filesystem-failures.html
2. https://www.cyberciti.biz/faq/can-i-run-fsck-or-e2fsck-when-linux-file-system-is-mounted/

when in single user mode and doing the unmounting I got

# umount /dev/sda3
umount: /dev/sda3: not mounted
 
I am currently working on a test server trying to recreate a manual FSCK to SDA3

Tried e2fsck to /dev/sda3 but I am getting this

# e2fsck /dev/sda3
e2fsck 1.42.12 (29-Aug-2014)
/dev/sda3 is in use.
e2fsck: Cannot continue, aborting.

Tried these to articles

But nothing works

1. https://www.cyberciti.biz/tips/surviving-a-linux-filesystem-failures.html
2. https://www.cyberciti.biz/faq/can-i-run-fsck-or-e2fsck-when-linux-file-system-is-mounted/

when in single user mode and doing the unmounting I got

# umount /dev/sda3
umount: /dev/sda3: not mounted


The parameter of "umount" has to be the mount point where it's currently mounted. To figure it out run

Code:
df -h
 
The parameter of "umount" has to be the mount point where it's currently mounted. To figure it out run

# df -h
Filesystem Size Used Avail Use% Mounted on
udev 10M 0 10M 0% /dev
tmpfs 6.3G 9.0M 6.3G 1% /run
/dev/dm-0 95G 9.3G 81G 11% /
tmpfs 16G 25M 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/fuse 30M 20K 30M 1% /etc/pve

Nothing about /dev/sda3

# fdisk -l /dev/sda

Disk /dev/sda: 894.3 GiB, 960197124096 bytes, 1875385008 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: AA0066F5-EA50-4BD7-A8CE-344F493427A0

Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 528383 524288 256M EFI System
/dev/sda3 528384 937703054 937174671 446.9G Linux LVM
 
'/dev/sda3' is a physical volume of a volume group. Check with 'vgdisplay' a VG should appear (probably pve). You can activate that VG with 'vgchange -a y <VGname>', then those devices get mapped. The fsck then can run on these mapped devices (eg. /dev/mapper/pve).
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!