I just got 9.0 loaded and everything right where I wanted it when I just had to screw around and cause a problem. I was trying to transfer information from my CF card reader and I couldn't get it to stop so I hit the reset button on my computer. Ya, I know it was stupid, but something was locked up and I didn't know what. Well, upon rebooting, I had a ton of errors, which would be expected, including not being able to get my reiserfs systems mounted. / and /home wouldn't mount and during bootup, I got a message saying it couldn't fsck and that I would have to do it manually. I tried tweaking and playing and finally got to KDE. The problem was that it would reboot itself have way through loading. I managed to get into Gnome just fine. So, what is the correct way to fsck my / and /home partitions? I read the man page but it made about as much sense to me as reading it in a foreign language. So, any help would be great!! Thanks, Tom
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, 01 Nov 2003 14:24:41 -0800 Tom Nielsen <tom@neuro-logic.com> wrote:
I just got 9.0 loaded and everything right where I wanted it when I just had to screw around and cause a problem.
I was trying to transfer information from my CF card reader and I couldn't get it to stop so I hit the reset button on my computer. Ya, I know it was stupid, but something was locked up and I didn't know what. Well, upon rebooting, I had a ton of errors, which would be expected, including not being able to get my reiserfs systems mounted. / and /home wouldn't mount and during bootup, I got a message saying it couldn't fsck and that I would have to do it manually. I tried tweaking and playing and finally got to KDE. The problem was that it would reboot itself have way through loading. I managed to get into Gnome just fine.
So, what is the correct way to fsck my / and /home partitions? I read the man page but it made about as much sense to me as reading it in a foreign language. So, any help would be great!! fsck will run automatically when you transition from single to multi-user mode during bootup. Or, you can run it manually. You must be in single user mode to fsck root, AND the root file system must be mounted read-only. SuSE generally does this for you when you either boot up into run level 1 or change to run level 1 from other run levels.
The other file systems must be unmounted. If you try to run fsck on a rw root or mounted file system, you can do bad things. Here isi what I generally use: fsck -fsy /dev/hda1 /dev/hda2 The options are: f == force s == serial (in other words run one at a time). y == answere yes to all questions (can be dangerous). Many of the options are file system specific (such as ext2 or reiserfs), but this is reasonably generic. - -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE/pYcO+wA+1cUGHqkRAlulAJ9bqApo/R8RLhkhJH6iaytFqJSsyACfRxt8 TGGdoNlCxPGzqAK3ph23fJY= =CLzG -----END PGP SIGNATURE-----
On Sun, 2003-11-02 at 14:37, Jerry Feldman wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sat, 01 Nov 2003 14:24:41 -0800 Tom Nielsen <tom@neuro-logic.com> wrote:
I just got 9.0 loaded and everything right where I wanted it when I just had to screw around and cause a problem.
I was trying to transfer information from my CF card reader and I couldn't get it to stop so I hit the reset button on my computer. Ya, I know it was stupid, but something was locked up and I didn't know what. Well, upon rebooting, I had a ton of errors, which would be expected, including not being able to get my reiserfs systems mounted. / and /home wouldn't mount and during bootup, I got a message saying it couldn't fsck and that I would have to do it manually. I tried tweaking and playing and finally got to KDE. The problem was that it would reboot itself have way through loading. I managed to get into Gnome just fine.
So, what is the correct way to fsck my / and /home partitions? I read the man page but it made about as much sense to me as reading it in a foreign language. So, any help would be great!! fsck will run automatically when you transition from single to multi-user mode during bootup. Or, you can run it manually. You must be in single user mode to fsck root, AND the root file system must be mounted read-only. SuSE generally does this for you when you either boot up into run level 1 or change to run level 1 from other run levels.
The other file systems must be unmounted. If you try to run fsck on a rw root or mounted file system, you can do bad things.
Here isi what I generally use: fsck -fsy /dev/hda1 /dev/hda2 The options are: f == force s == serial (in other words run one at a time). y == answere yes to all questions (can be dangerous).
Many of the options are file system specific (such as ext2 or reiserfs), but this is reasonably generic.
From what I understand it's supposed to run automatically, but it told me it couldn't do it and I would have to do so manually. Manually??!! I don't do anything manually. So, at this point, how do I unmount, or set it as read only, to check?
Thanks for the commands. As soon as I figure out how to do the read only thing, I'll try it. Tom
On Sunday 02 November 2003 00:00, Tom Nielsen wrote:
From what I understand it's supposed to run automatically, but it told me it couldn't do it and I would have to do so manually. Manually??!! I don't do anything manually. So, at this point, how do I unmount, or set it as read only, to check?
The system does do general file system check automatically during bootup, and in case of ext2/ext3 occasional fsck when needed. However, if they turn out to be erroneous to some extend it doesn't just "automatically" throw away data found, etc. It tells you that the fsck needs your attention and that you must run the fsck manually, to determine what to do with these erros. It should then provide you with a password prompt, after which you are positioned in single user mode. For the purpose of doing, just that fsck the system told you, you need to do. In case you've messed it up, reboot and go single user, by saying 'telinit s', if it doesn't put you there automatically. Then run 'fsck /dev/<disk>', where <disk> is the partition that the system told you earlier, needed manual fsck. hth
Thanks for the commands. As soon as I figure out how to do the read only thing, I'll try it.
Tom
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sat, 01 Nov 2003 14:24:41 -0800 Tom Nielsen <tom@neuro-logic.com> wrote:
I just got 9.0 loaded and everything right where I wanted it when I just had to screw around and cause a problem.
I was trying to transfer information from my CF card reader and I couldn't get it to stop so I hit the reset button on my computer. Ya, I know it was stupid, but something was locked up and I didn't know what. Well, upon rebooting, I had a ton of errors, which would be expected, including not being able to get my reiserfs systems mounted. / and /home wouldn't mount and during bootup, I got a message saying it couldn't fsck and that I would have to do it manually. I tried tweaking and playing and finally got to KDE. The problem was that it would reboot itself have way through loading. I managed to get into Gnome just fine.
So, what is the correct way to fsck my / and /home partitions? I read the man page but it made about as much sense to me as reading it in a foreign language. So, any help would be great!! fsck will run automatically when you transition from single to multi-user mode during bootup. Or, you can run it manually. You must be in single user mode to fsck root, AND the root file system must be mounted read-only. SuSE generally does this for you when you either boot up into run level 1 or change to run level 1 from other run levels.
The other file systems must be unmounted. If you try to run fsck on a rw root or mounted file system, you can do bad things.
Here isi what I generally use: fsck -fsy /dev/hda1 /dev/hda2 The options are: f == force s == serial (in other words run one at a time). y == answere yes to all questions (can be dangerous).
Many of the options are file system specific (such as ext2 or reiserfs), but this is reasonably generic.
I ran /dev/hda3, which is my home directory, and got a ton of messages. Most of them have to do with objectids being shared by 2 files. The last note says: 14 found corruptions can be fixed only when running with --rebuild-tree. Can't I delete the files instead? If not, how do I run the option? I tried and can't seem to get it working. Thanks, Tom
* tom@neuro-logic.com <tom@neuro-logic.com> [11-02-03 19:23]:
I ran /dev/hda3, which is my home directory, and got a ton of messages. Most of them have to do with objectids being shared by 2 files. The last note says: 14 found corruptions can be fixed only when running with --rebuild-tree. Can't I delete the files instead? If not, how do I run the option? I tried and can't seem to get it working.
Have you looked at: man reiserfsck or googled ???? -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
* tom@neuro-logic.com <tom@neuro-logic.com> [11-02-03 19:23]:
I ran /dev/hda3, which is my home directory, and got a ton of messages. Most of them have to do with objectids being shared by 2 files. The last note says: 14 found corruptions can be fixed only when running with --rebuild-tree. Can't I delete the files instead? If not, how do I run the option? I tried and can't seem to get it working.
Have you looked at: man reiserfsck or googled ???? --
The man page was absolutely no help at all. It never is. Anyway, I had to do an fsck --rebuild-tree /dev/hda3 and everything's fine so far. Tom
I ran /dev/hda3, which is my home directory, and got a ton of messages. Most of them have to do with objectids being shared by 2 files. The last note says: 14 found corruptions can be fixed only when running with--rebuild-tree. Can't I delete the files instead? If not, how do I run the option? I tried and can't seem to get it working. Yes, you have reiserfs, and the reiserfsck will not run on a mounted file system. The only way to fix your root file system with reiserfsck is to boot another system, generally the rescue CD. Then you can rebuild
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 2 Nov 2003 16:20:49 -0800 (PST) <tom@neuro-logic.com> wrote: the tree. I've done this a few times on my laptop when I had a bad memory chip that caused me some corruption. - -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE/pa5l+wA+1cUGHqkRAvQiAKCA2W99K2GEeh5F6dj8sCWaginWcQCghAV0 E2ZQMFuyS1+pt28Yj2/+1hg= =7bHr -----END PGP SIGNATURE-----
participants (5)
-
Jerry Feldman
-
Patrick Shanahan
-
Tom Nielsen
-
tom@neuro-logic.com
-
Örn Hansen