Re: Inquiry: run fsck in single user mode
On 2009-08-19 23:44, hadi motamedi wrote: Dear Niu With many thanks for your reply , I tried to force fsck after reboot as the followings : #cd / #touch /forcefsck #reboot Can you please do me favor and let me know if this is the same as your proposed procedure (since I am not familiar with your tune2fs and its usage) $ man tune2fs We need to know: are you a rank newbie? -- Featuring GRATUITOUS ALIEN NUDITY -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Inquiry: run fsck in single user mode
On Mon, Aug 17, 2009 at 07:35:46AM +0100, hadi motamedi wrote: Dear All I have an Linux server that gets problemy from sudden power cut . I need to run fsck in single user mode so I issued #init 1 on the server . At the server prompt , to serialize the fsck on the intended file system , I first tried to unmount the intended file system and then issue the fsck (as the following) : #umount /dev/hda2 #fsck -s -a /dev/hda2 But the server returned Device Busy . So I checked its status under fuser -u /dev/hda2 but no process recorded for it . Can you please do me favor If its any consolation, I get this on a working system where hda is the only drive: r...@box:~# fuser -u /dev/hda1 r...@box:~# fuser -u /dev/hda2 r...@box:~# fuser -u /dev/hda That is no output, although the machine is definitely being used. But: r...@box:~# lsof /home/chrisb COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME zsh 3430 chrisb cwdDIR3,1 20480 16312 /home/chrisb zsh 3572 chrisb cwdDIR3,1 20480 16312 /home/chrisb mutt5305 chrisb cwdDIR3,1 20480 16312 /home/chrisb vim 6444 chrisb cwdDIR3,1 20480 16312 /home/chrisb sh 7486 chrisb cwdDIR3,1 20480 16312 /home/chrisb vim 7487 chrisb cwdDIR3,1 20480 16312 /home/chrisb r...@box:~# lsof /root/ COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME bash3408 root cwdDIR3,1 4096 403252 /root/ lsof7549 root cwdDIR3,1 4096 403252 /root/ lsof7550 root cwdDIR3,1 4096 403252 /root/ etc ... -- Chris. == I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours. -- Stephen F Roberts -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Inquiry: run fsck in single user mode
Dear Chris Thank you very much for your reply . Ok , so then , how you would be able to get rid of that Device Busy though ? Your reply is appreciated Regards H.Motamedi On Wed, Aug 19, 2009 at 11:24 AM, Chris Bannister mockingb...@earthlight.co.nz wrote: On Mon, Aug 17, 2009 at 07:35:46AM +0100, hadi motamedi wrote: Dear All I have an Linux server that gets problemy from sudden power cut . I need to run fsck in single user mode so I issued #init 1 on the server . At the server prompt , to serialize the fsck on the intended file system , I first tried to unmount the intended file system and then issue the fsck (as the following) : #umount /dev/hda2 #fsck -s -a /dev/hda2 But the server returned Device Busy . So I checked its status under fuser -u /dev/hda2 but no process recorded for it . Can you please do me favor If its any consolation, I get this on a working system where hda is the only drive: r...@box:~# fuser -u /dev/hda1 r...@box:~# fuser -u /dev/hda2 r...@box:~# fuser -u /dev/hda That is no output, although the machine is definitely being used. But: r...@box:~# lsof /home/chrisb COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME zsh 3430 chrisb cwdDIR3,1 20480 16312 /home/chrisb zsh 3572 chrisb cwdDIR3,1 20480 16312 /home/chrisb mutt5305 chrisb cwdDIR3,1 20480 16312 /home/chrisb vim 6444 chrisb cwdDIR3,1 20480 16312 /home/chrisb sh 7486 chrisb cwdDIR3,1 20480 16312 /home/chrisb vim 7487 chrisb cwdDIR3,1 20480 16312 /home/chrisb r...@box:~# lsof /root/ COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME bash3408 root cwdDIR3,1 4096 403252 /root/ lsof7549 root cwdDIR3,1 4096 403252 /root/ lsof7550 root cwdDIR3,1 4096 403252 /root/ etc ... -- Chris. == I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours. -- Stephen F Roberts -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Inquiry: run fsck in single user mode
On 2009-08-17 01:35, hadi motamedi wrote: Dear All I have an Linux server that gets problemy from sudden power cut . I need to run fsck in single user mode so I issued #init 1 on the server . At the server prompt , to serialize the fsck on the intended file system , I first tried to unmount the intended file system and then issue the fsck (as the following) : #umount /dev/hda2 #fsck -s -a /dev/hda2 Is this the root partition? But the server returned Device Busy . So I checked its status under fuser -u /dev/hda2 but no process recorded for it . Can you please do me favor and let me know how can I force it as unmount to be able to try for safe fsck on it ? Which partition is this? -- Featuring GRATUITOUS ALIEN NUDITY -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Inquiry: run fsck in single user mode
Dear Ron Thanks for your reply . Please be informed that this is the /usr partition . Regards H.Motamedi On Wed, Aug 19, 2009 at 1:06 PM, Ron Johnson ron.l.john...@cox.net wrote: On 2009-08-17 01:35, hadi motamedi wrote: Dear All I have an Linux server that gets problemy from sudden power cut . I need to run fsck in single user mode so I issued #init 1 on the server . At the server prompt , to serialize the fsck on the intended file system , I first tried to unmount the intended file system and then issue the fsck (as the following) : #umount /dev/hda2 #fsck -s -a /dev/hda2 Is this the root partition? But the server returned Device Busy . So I checked its status under fuser -u /dev/hda2 but no process recorded for it . Can you please do me favor and let me know how can I force it as unmount to be able to try for safe fsck on it ? Which partition is this? -- Featuring GRATUITOUS ALIEN NUDITY -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Inquiry: run fsck in single user mode
hadi motamedi 写道: Dear Ron Thanks for your reply . Please be informed that this is the /usr partition . Regards H.Motamedi On Wed, Aug 19, 2009 at 1:06 PM, Ron Johnson ron.l.john...@cox.net mailto:ron.l.john...@cox.net wrote: On 2009-08-17 01:35, hadi motamedi wrote: Dear All I have an Linux server that gets problemy from sudden power cut . I need to run fsck in single user mode so I issued #init 1 on the server . At the server prompt , to serialize the fsck on the intended file system , I first tried to unmount the intended file system and then issue the fsck (as the following) : #umount /dev/hda2 #fsck -s -a /dev/hda2 Is this the root partition? But the server returned Device Busy . So I checked its status under fuser -u /dev/hda2 but no process recorded for it . Can you please do me favor and let me know how can I force it as unmount to be able to try for safe fsck on it ? Which partition is this? -- Featuring GRATUITOUS ALIEN NUDITY -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org mailto:debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org mailto:listmas...@lists.debian.org How about running tune2fs to force a fsck after next boot? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Inquiry: run fsck in single user mode
Dear Niu With many thanks for your reply , I tried to force fsck after reboot as the followings : #cd / #touch /forcefsck #reboot Can you please do me favor and let me know if this is the same as your proposed procedure (since I am not familiar with your tune2fs and its usage) ? Regards H.Motamedi On Thu, Aug 20, 2009 at 4:52 AM, Niu Kun haoniu...@gmail.com wrote: hadi motamedi 写道: Dear Ron Thanks for your reply . Please be informed that this is the /usr partition . Regards H.Motamedi On Wed, Aug 19, 2009 at 1:06 PM, Ron Johnson ron.l.john...@cox.netmailto: ron.l.john...@cox.net wrote: On 2009-08-17 01:35, hadi motamedi wrote: Dear All I have an Linux server that gets problemy from sudden power cut . I need to run fsck in single user mode so I issued #init 1 on the server . At the server prompt , to serialize the fsck on the intended file system , I first tried to unmount the intended file system and then issue the fsck (as the following) : #umount /dev/hda2 #fsck -s -a /dev/hda2 Is this the root partition? But the server returned Device Busy . So I checked its status under fuser -u /dev/hda2 but no process recorded for it . Can you please do me favor and let me know how can I force it as unmount to be able to try for safe fsck on it ? Which partition is this? --Featuring GRATUITOUS ALIEN NUDITY --To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org mailto:debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org mailto:listmas...@lists.debian.org How about running tune2fs to force a fsck after next boot?
Inquiry: run fsck in single user mode
Dear All I have an Linux server that gets problemy from sudden power cut . I need to run fsck in single user mode so I issued #init 1 on the server . At the server prompt , to serialize the fsck on the intended file system , I first tried to unmount the intended file system and then issue the fsck (as the following) : #umount /dev/hda2 #fsck -s -a /dev/hda2 But the server returned Device Busy . So I checked its status under fuser -u /dev/hda2 but no process recorded for it . Can you please do me favor and let me know how can I force it as unmount to be able to try for safe fsck on it ? Your reply is very welcome Regards H.Motamedi