Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help please with fsck problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
JAM-Computers
n00b
n00b


Joined: 14 Apr 2005
Posts: 23

PostPosted: Sat Apr 23, 2005 10:11 pm    Post subject: Help please with fsck problem Reply with quote

I just completed my first emerge --sync, emerge -u system, and emerge -u world, I also updated my kernel from r3 to r6. After which I rebooted and was greeted by

fsck.xfs not found
fsck: error 2 while executing fsck.xfs for dev root.


fsck.ext2: no such file or directory while trying to open dev/boot
dev/boot:
the superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesytem and not swap or ufs or something else, then the superblock is corrupt and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

I have no idea what this means? Help please
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Karlsruhe, Germany

PostPosted: Sat Apr 23, 2005 10:40 pm    Post subject: Reply with quote

Sounds like you overwrote /etc/fstab (and maybe other files) with etc-update. You have to restore them from your backup (which you made, didn't you :))
_________________
KDE
Back to top
View user's profile Send private message
JAM-Computers
n00b
n00b


Joined: 14 Apr 2005
Posts: 23

PostPosted: Sat Apr 23, 2005 11:34 pm    Post subject: Reply with quote

apparently not, I am very new, I guess I am screwed? I figured out how to install this OS then tried to update and my install died, I then tried again reinstalled and retried updating, I hope I can get this fixed? Can I?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43015
Location: 56N 3W

PostPosted: Sat Apr 23, 2005 11:43 pm    Post subject: Reply with quote

JAM-Computers,

Give the root password as it asks and edit /etc/fstab to put it back the way you like it.
Depending on what got updated other config files will ne in a mess too. You can fix those as you find things that are broken.

At worst, you have a fully up to date gentoo box with defualt configuration. Its a PIA but no more.
Take more care with etc-update. See what it wants to do on a file by file basis. In genereral, don't let it mess with files you have editied.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
JAM-Computers
n00b
n00b


Joined: 14 Apr 2005
Posts: 23

PostPosted: Sat Apr 23, 2005 11:45 pm    Post subject: Reply with quote

I added the line of code that lets gentoo fix my config files for me. I don't know what I'm doing I figured it would know better than I.

Okay, I am editing fstab but to what? I am looking in the manual for an answer

this is what I have
/dev/BOOT_____________/boot____________ext2_______noauto,noatime $
/dev/ROOT_____________/________________xfs_________noatime $
/dev/SWAP_____________none_____________swap________sw $
/dev/cdroms/cdrom0_____/mnt/cdrom________iso9660________noauto,ro $
#dev/fdo______________/mnt/floppy_________auto___________noauto $

NOTE: the next line is critical for boot
none_______/proc_______proc__________defaults $

then a bunch of commented out lines


do I need to tell it something like
/dev/hda0 / ntfs
/dev/hda1 /boot ext2 noauto,noatime $
/dev/hda2 / xfs noatime
/dev/hda3 none swap sw
/dev/hda4 / ext3 noatime

??

I find this out by fdisk right?

Thanks

EDIT:

Okay I got it working except for my windows partition I don;t know how to code it in fstab anyone??
Back to top
View user's profile Send private message
Jerri
Guru
Guru


Joined: 03 Apr 2003
Posts: 353

PostPosted: Sun Apr 24, 2005 7:52 am    Post subject: Reply with quote

As per gentoo handbook, your fstab should look something like this:

Code:
/dev/hda1   /boot     ext2    defaults,noatime     1 2
/dev/hda2   none      swap    sw                   0 0
/dev/hda3   /         ext3    noatime              0 1

none        /proc     proc    defaults             0 0
none        /dev/shm  tmpfs   nodev,nosuid,noexec  0 0

/dev/cdroms/cdrom0    /mnt/cdrom    auto      noauto,user    0 0


as for getting your windows partition to mount on boot up, you might want to add a line like such:

Code:
/dev/hda4   /mnt/win    vfat    noatime           0  0


change vfat to the fs type (ntfs perhaps?) also change the device name and mount point accordingly
Back to top
View user's profile Send private message
CitizenX
Apprentice
Apprentice


Joined: 11 Sep 2004
Posts: 158
Location: Fresno, CA

PostPosted: Fri Apr 29, 2005 12:05 pm    Post subject: Reply with quote

did the same just now as I installed on a new HD....I figured it was fstab but figured I'd take a look first.

default fstab put in root partition as xfs....gotta check that one it'll trip ya.

so to recap:

Read the Documentation.

Check fstab for each entry.

Read the Documentation.

Make sure you're using the correct filesystem for the correct partition.

Read the Documentation.

Make sure you've named the partitions and mount points correctly.

Read the Documentation.


Silly me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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