Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

fsck error

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
jer1ch0
LXF regular


Joined: Sat Apr 09, 2005 11:42 am
Posts: 135
Location: Ireland

PostPosted: Sat Aug 06, 2005 3:14 pm    Post subject: fsck error Reply with quote

Running Ubuntu. During boot it says

fsck failed. Please repair manually.
* CONTROL-D will exit from this shell and continue system startup.
root@(none)::~#

Control+d does indeed continue the boot process and brings me to the login screen. (Incidently this problem only occured when I installed this new login screen) Logging in results in the error.

"Your home dir is listed as: /home/john, but it does not appear to exist. Do you want to log in with the / (root) dir as your home dir. It is unlikly that anything will work unless you use a failsafe session"

so I answer yes and it throws up more errors about "etc/gdm/presession/default ..."oo many to list here, but I will if needed.
Back to top
View user's profile Send private message Visit poster's website
towy71
Moderator


Joined: Wed Apr 06, 2005 3:11 pm
Posts: 4259
Location: wild West Wales

PostPosted: Sat Aug 06, 2005 5:38 pm    Post subject: RE: fsck error Reply with quote

please look here: http://www.linuxformat.co.uk/index.php?name=PNphpBB2&file=viewtopic&t=3

then post again
TIA
Dick
_________________
still looking for that door into summer
Back to top
View user's profile Send private message
jer1ch0
LXF regular


Joined: Sat Apr 09, 2005 11:42 am
Posts: 135
Location: Ireland

PostPosted: Sun Aug 07, 2005 11:28 pm    Post subject: RE: fsck error Reply with quote

Re your link:

"Be concise" Am I not?
"Give enough detail... What error messages do you get?" -I've given the error messages?
"What have you already tried" Short of reinstalling, I don't know what to try, hence my post here.

If it's any help, I tri-boot with SuSE and can access the Ubuntu partitions from there.
Back to top
View user's profile Send private message Visit poster's website
towy71
Moderator


Joined: Wed Apr 06, 2005 3:11 pm
Posts: 4259
Location: wild West Wales

PostPosted: Mon Aug 08, 2005 12:30 am    Post subject: Re: fsck error Reply with quote

jer1ch0 wrote:
so I answer yes and it throws up more errors about "etc/gdm/presession/default ..."oo many to list here, but I will if needed.


error messages oo many to list here Rolling Eyes

hhm Wink
_________________
still looking for that door into summer
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8457
Location: Warrington, UK

PostPosted: Mon Aug 08, 2005 9:16 am    Post subject: RE: Re: fsck error Reply with quote

The errors are probably because /home is not mounted.

Instead of pressing Control-D, you need to repair the partition first, as the message tells you, by typing

Code:
fsck -f /dev/hdxN


where /dev/hdxN is the partition containing /home. If you don't know which partition this is, type

Code:
 grep home /etc/fstab


Once you have repaired the partition, then you can press Control-D to continue.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
jer1ch0
LXF regular


Joined: Sat Apr 09, 2005 11:42 am
Posts: 135
Location: Ireland

PostPosted: Tue Aug 09, 2005 11:43 pm    Post subject: Reply with quote

Towy71, that error mesage was:
Code:
The session only lasted less than 10 seconds. If you haven't logged out yourself, this could mean that there is some installation problem or that you may be out of diskspace. Try logging in with one of the failsafe sessions to see if you can fix this problem.
View Details (#/.xsessions-errors file)
/etc/gdm/PreSessions/Default: Registering your session with wtmp and utmp
/etc/gdm/PreSessions/Default: running: /usr/bin/X11?sessreg -a -w /var/log/wtmp -u
/var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h " " -l ":0" "john"
etc.gdm/Xsession:Beginning sesion setup
(gnome-session: 7621): libgnomevfs-WARNING **:Unable to create #/.gnome2 directory Permission denied
Could not create per-user gnome configuration directory '/home/john/.gnome2/' Permission denied


nelz, doing the grep command gives me:
Code:
/dev/hda4       /home  ext  defaults  0   2
/dev/hda3    /home    ext3   defaults.user_xattr   1 2


Running fsck -f /dev/hda3 seems to do something positive, giving messages such as "recovering journal, various pass and checks" It only takes a few seconds and leaves me back at the root command.
Running the same command on /dev/hda4 gives a lot of negative feedback about the superblock not been read or not containing a correct ext2 filesystem.

I have 2 hdds, 1 containing Winxp and Ubuntu, the second SuSe.Checking out the disks in SuSe partioner gives this:

/dev/hda 186.2 gb st3200822a
/dev/hda1 97.6 gb hpfs/ntfs /windows/c
/dev/hda2 525.5 mb extended
/dev/hda3 4.2 gb linux native /data1
/dev/hda4 83.8 gb linux native /
/dev/hda5 525.5 mb linux swap swap

/dev/hdb 37.2 gb st340823a
/dev/hdb1 1004.0 mb linux swap swap
dev/hdb2 36.2 gb linux native /data2

Is there something wrong with the way the first disc is partitioned?
Sorry about the long and protracted post. It would not be a big deal for me to just reinstall. But I really want to break the habit of opting for a reinstallation whenever Linux gets broken.
Back to top
View user's profile Send private message Visit poster's website
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8457
Location: Warrington, UK

PostPosted: Wed Aug 10, 2005 12:23 am    Post subject: Reply with quote

The obvious question is... why do you have two partitions mounted at /home?

The entry for hda4 is wrong anyway, the filesystem should be ext2 or ext3, not ext.

Replacing the defaults option in the hda4 entry with noauto will prevent the filesystem fro being mounted at bootup, which should at least enable you to boot into a full system. then you can try to find the problem with hda4.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
jer1ch0
LXF regular


Joined: Sat Apr 09, 2005 11:42 am
Posts: 135
Location: Ireland

PostPosted: Wed Aug 10, 2005 9:40 pm    Post subject: Reply with quote

Yea, it seems like a right mess. This may have happened when I installed SUSE. There were partitions left over from a previous Linux install, and I may have been a bit ambitious in what I was trying to do. Still, it was working ok for months. I have it all backed up, so I was thinking of starting anew. (note to self - I am never going to reinstall again - D'oh!)
I made your reccommended changes to hda4, but hda3 seems to give problems as well.
Back to top
View user's profile Send private message Visit poster's website
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8457
Location: Warrington, UK

PostPosted: Wed Aug 10, 2005 10:22 pm    Post subject: Reply with quote

There's no "seems like" about it Sad

Boot from a Knoppix CD and fix each filesystem in turn. Then see about setting up a more sensible partitioning strategy.

If you do decide to backup and repartition, I strongly recommend you use LVM, it makes changing things at a later date, even adding a new drive, so much easier.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast