LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 10-20-2003, 02:30 AM   #1
ashgrim
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
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?
 
Old 10-21-2003, 03:17 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
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
 
Old 10-22-2003, 05:34 PM   #3
ashgrim
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 10-22-2003, 06:02 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Repartitioning Debian partition to make room for another distro? microsoft/linux Debian 9 04-18-2005 01:09 PM
Dual Booting 2 Distro in different partition novice26 Linux - General 2 04-08-2005 01:55 AM
Problem in booting after resizing partition rahulgup Linux - General 1 03-05-2005 10:06 AM
Partition check, check double check Vincentius Linux - General 0 12-25-2004 05:47 AM
problem w/ Grub booting a Win XP Partition RacerD Linux - Newbie 15 04-16-2004 01:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration