Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-20-2003, 02:30 AM
|
#1
|
LQ Newbie
Registered: Oct 2003
Posts: 3
Rep:
|
Partition check problem when booting with a Debian Distro.
first post yay, its a shame it had to be a problem one.
ok heres the scene:
power goes off and comes back, I try to boot my pc, when linux is booting and checking the partition for errors fsck crashes with this message:
"fsck.ext3: permission denied, you must have r/w access to the file system or be root"
so I get a prompt to log in as root and a message of how to change the fs into rw (mount -n -o remount,rw /), so I log in as root and run that command wich displays me this:
EXT3-fs warning: mounting fs with errors running e2fsck is recomended.
but looks like the mount didnt change the fs into rw because the fsck keep displaying "permission denied bla bla" when I run it, same with e2fsck.
tried to run a shutdown -f (wich for the help of the command tells me it will skip fsck the next time it boots) and I get a "init:/dev/initctl : i/o error"
scary stuff huh? any ideas?
|
|
|
10-21-2003, 03:17 PM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,381
|
Part of your problem is that running fsck against a mounted file system can cause more problems than it solves. I suggest that you boot a rescue CD and then run fsck against every one of your partitions.
___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html
Steve Stites
|
|
|
10-22-2003, 05:34 PM
|
#3
|
LQ Newbie
Registered: Oct 2003
Posts: 3
Original Poster
Rep:
|
mm yea, but I didnt run fsck, it was the same linux when it tried to boot that did and crashed because of the Read only thing.
Anyway I booted with a rescue cd, fsck my hda5, got so many errors, anyway I rebooted and at last fsck wouldnt crash because the fs was ro, but now it wasent even there!
so I had to log in maintenance mode and restore them with mknod,chmod and chown (thank god for lynx, I could document myslef on the net about this), I had lost /dev/hda5(my root partition), /dev/hda6(my swap) and dev/mem.
All set I reboot and my KDE was all damaged I guess since I tried to log and it would return me to kdm, I could only log to windows maker and gnome (only with root account), but konqueror or any other kde aplication wouldnt run.
so..... there I am again using Lynx to document myself about apt-get, and started downloading kde3, today I finally got it working.
Only need to fix:
my normal user account(I can only log with root account to kde, gnome or winmaker).
And the kdehelpcenter package(or something like that), cant install this package because in the masive corruption of files I had, this file wich is supose to be a normal file(desktop.something), changed atribs and its now a dir.....(im sure its not supose to be a dir since i asked a friend with the same distro), wich cant be moved, deleted or change its permissions (the package tries to move it when its installing itself, wish rmdir had a -f option).
Im glad I didnt reinstall debian and took the "man's" route, Its probably going to crash again but it was so fun and learned lots, any ideas for my current problems?
Last edited by ashgrim; 10-22-2003 at 05:39 PM.
|
|
|
10-22-2003, 06:02 PM
|
#4
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,381
|
"Only need to fix:
my normal user account(I can only log with root account to kde, gnome or winmaker)."
You could try creating a new user under a different name. If you get that set up OK then you can log in as root and copy data files from the old user to the new user. Then change ownership and permissions for the copied files.
___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html
Steve Stites
|
|
|
All times are GMT -5. The time now is 06:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|