e2fsck


Hello!
dmesg offers e2fsck running: "EXT4-fs (dm-2): warning: mounting fs with errors, running e2fsck is recommended"
But dm-2 mounted. I tried:
~ # umount -f /dev/md2
umount: /i-data/9dba6a2b: target is busy
Well. Can I add this command to rc.shutdown file?
After this:
[quote]/bin/umount cat /proc/mounts|grep /dev/md|awk '{print $2}' 2>/dev/null
/bin/umount cat /proc/mounts|grep /dev/sd|awk '{print $2}' 2>/dev/null
/bin/umount cat /proc/mounts | grep "/dev/mapper/vg_" | awk '{print $2}' 2>/dev/null
/usr/sbin/vgchange -an
/bin/umount /etc/zyxel
mdadm -Ss[/quote]
All Replies
-
Yes, you can. But it's more convenient to add a telnet daemon, followed by some blocking function to stop the shutdown. This way you can open a shell and do the work, and more important, read the error messages. As dm-2 is a logical volume, you'd better inject this before 'vgchange', as that stops the logical volumes:
/bin/umount cat /proc/mounts | grep "/dev/mapper/vg_" | awk '{print $2}' 2>/dev/null
/bin/telnetd
/bin/sh
/usr/sbin/vgchange -an
Check if telnetd is in /bin. Could also be /sbin. After a reboot the rc.shutdown is back to stock. It's in the initramfs.
0
Categories
- All Categories
- 439 Beta Program
- 2.7K Nebula
- 191 Nebula Ideas
- 121 Nebula Status and Incidents
- 6.2K Security
- 468 USG FLEX H Series
- 308 Security Ideas
- 1.6K Switch
- 82 Switch Ideas
- 1.3K Wireless
- 44 Wireless Ideas
- 6.8K Consumer Product
- 281 Service & License
- 440 News and Release
- 88 Security Advisories
- 31 Education Center
- 10 [Campaign] Zyxel Network Detective
- 4.3K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 85 About Community
- 93 Security Highlight