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
- 426 Beta Program
- 2.6K Nebula
- 163 Nebula Ideas
- 112 Nebula Status and Incidents
- 6K Security
- 344 USG FLEX H Series
- 288 Security Ideas
- 1.5K Switch
- 78 Switch Ideas
- 1.2K Wireless
- 42 Wireless Ideas
- 6.6K Consumer Product
- 261 Service & License
- 404 News and Release
- 86 Security Advisories
- 31 Education Center
- 10 [Campaign] Zyxel Network Detective
- 3.8K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 85 About Community
- 82 Security Highlight