Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fsck.ext4 no such file or directory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
PtrTo573
n00b
n00b


Joined: 02 Jun 2010
Posts: 5
Location: Verona, Italy

PostPosted: Fri Jul 30, 2010 9:31 am    Post subject: fsck.ext4 no such file or directory Reply with quote

When my gentoo try to check the filesystem...

Code:
* checking root filesystem
fsck.ext4 no such file or directory while trying to open /dev/sda4
                   ....
Filesystem couldn't be fixed


In my /etc/fstab the boot partition is /dev/sda5 (type ext3), the swap /dev/sda6 and the root /dev/sda4 (type ext4).

The grub conf is this


title Gentoo Linux 2.6.34-r1
root (hd0,4)
kernel /boot/kernel-genkernel-x86-2.6.34-gentoo-r1 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda4 vga=791
initrd /boot/initramfs-genkernel-x86-2.6.34-gentoo-r1
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Jul 30, 2010 11:44 am    Post subject: Reply with quote

Hi, can you post this from your box :
Code:

# fdisk -l
# mount
# cat /etc/fstab
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3925
Location: Hamburg

PostPosted: Fri Jul 30, 2010 12:55 pm    Post subject: Reply with quote

And you're really sure that "/dev/sda4 (type ext4)" shouldn't be "dev/sda7 (type ext4)" ?
Back to top
View user's profile Send private message
PtrTo573
n00b
n00b


Joined: 02 Jun 2010
Posts: 5
Location: Verona, Italy

PostPosted: Fri Jul 30, 2010 4:50 pm    Post subject: Reply with quote

/etc/fstab
Code:
#

... comments  are not reported

#
/dev/sda5       /boot               ext3     noauto,noatime     1 2
/dev/sda4      /                      ext4     noatime                0 1
/dev/sda6      none                swap    sw                        0 0
/dev/cdrom    /mnt/cdrom      auto     noauto,ro              0 0

#

...

#
shm       /dev/shm      tmpfs       nodev,nosuid,noexec     0 0


...and fdisk -l && mount
Code:
rootfs on / type rootfs (rw)
/dev/sda4 on / ext4 (rw,noatime,barrier=1,data=ordered)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw,nosuid,noexec,relatime,devgid=85,devmode=664)
Back to top
View user's profile Send private message
rogerdv
Apprentice
Apprentice


Joined: 01 Apr 2006
Posts: 185
Location: Santiago, Cuba

PostPosted: Wed Sep 08, 2010 7:06 pm    Post subject: Reply with quote

Is there any solution for this? I have the same probleam and cant find the cause of the error.
_________________
Game programming news for newbies | The Ark, making an RPG the right way!
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Wed Sep 08, 2010 7:19 pm    Post subject: Reply with quote

Is util-linux installed?
And e2fsprogs?
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download


Last edited by gerard27 on Wed Sep 08, 2010 7:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
rogerdv
Apprentice
Apprentice


Joined: 01 Apr 2006
Posts: 185
Location: Santiago, Cuba

PostPosted: Wed Sep 08, 2010 7:25 pm    Post subject: Reply with quote

Yes, version 2.17.2
_________________
Game programming news for newbies | The Ark, making an RPG the right way!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Sep 08, 2010 8:48 pm    Post subject: Reply with quote

@ roger
boot the install cd, then run (using your root partitions device name for /dev/sda3)
Code:
fsck.ext4 /dev/sda3
If that works; mount the gentoo partitions,enter the chroot (nominally):
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda2 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"

Then:
Code:
emerge wgetpaste
fdisk -l | wgetpaste
mount | wgetpaste
df -h | wgetpaste
wgetpaste -s ca /usr/src/linux/.config
zcat /proc/config.gz |  wgetpaste -s ca

and post the url's here.

edit: matched his partition devices


Last edited by DONAHUE on Thu Sep 09, 2010 12:12 am; edited 1 time in total
Back to top
View user's profile Send private message
rogerdv
Apprentice
Apprentice


Joined: 01 Apr 2006
Posts: 185
Location: Santiago, Cuba

PostPosted: Wed Sep 08, 2010 9:28 pm    Post subject: Reply with quote

The first step works fine, fxck reports all the ext4 partitions as clear and ok.

Here are the urls:

http://paste.pocoo.org/show/259704/
http://paste.pocoo.org/show/259705/
http://paste.pocoo.org/show/259706/
http://pastebin.ca/1936076
http://pastebin.ca/1936078
_________________
Game programming news for newbies | The Ark, making an RPG the right way!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Sep 08, 2010 9:50 pm    Post subject: Reply with quote

if still in chroot:
Code:
wgetpaste /etc/fstab
wgetpaste /boot/grub/grub.conf

if not boot cd and mount gentoo partitions
Code:
wgetpaste /mnt/gentoo/etc/fstab
wgetpaste /mnt/gentoo/boot/grub/grub.conf

and post url's


Last edited by DONAHUE on Wed Sep 08, 2010 11:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
rogerdv
Apprentice
Apprentice


Joined: 01 Apr 2006
Posts: 185
Location: Santiago, Cuba

PostPosted: Wed Sep 08, 2010 9:59 pm    Post subject: Reply with quote

Here is it:

http://paste.pocoo.org/show/259713/


http://paste.pocoo.org/show/259714/
_________________
Game programming news for newbies | The Ark, making an RPG the right way!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Sep 08, 2010 11:57 pm    Post subject: Reply with quote

the standout weirdness so far is having /dev/sda2 listed twice in mount and df -h outputs
boot cd, mount / partition, do not mount the /boot partition:
Code:
mount /dev/sda3 /mnt/gentoo
ls /mnt/gentoo/boot

/mnt/gentoo/boot should be empty
if not,
Code:
rm -rf /mnt/gentoo/boot
mkdir  /mnt/gentoo/boot
to clean it out and remake it.

Quote:
CONFIG_SYSFS_DEPRECATED=y
CONFIG_SYSFS_DEPRECATED_V2=y
are in the kernel configuration and can cause problems for udev.

boot cd and:
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda2 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
cd /usr/src/linux
make menuconfig

Change menuconfig to:
Quote:
General setup --->
[ ] enable deprecated sysfs features to support old userspace tools

Device Drivers --->
< > ATA/ATAPI/MFM/RLL support ---> #Udev no longer makes nodes for these deprecated drivers, definitely need to be disabled
SCSI device support --->
*** SCSI support type (disk, tape, CD-ROM) ***
<*> SCSI disk support
< > SCSI tape support
< > SCSI OnStream SC-x0 tape support
<*> SCSI CDROM support
<*> Serial ATA (prod) and Parallel ATA (experimental) drivers ---> # the current libata hard drive adapter drivers, definitely needed
--- Serial ATA (prod) and Parallel ATA (experimental) drivers
[*] ATA ACPI Support
[ ] SATA Port Multiplier support
<* > AHCI SATA support
< > Silicon Image 3124/3132 SATA support
[*] ATA SFF support
# you have choices below here that are inconsistent
# you have too many choices for any motherboard I've ever met
# boot the cd, run code: lspci -k :code, use the driver in use and
# kernel modules and device names listed for ide, sata, pata to
# get an accurate read on the needed drivers
# post the lspci -k output if you want help with this

<*> ServerWorks Frodo / Apple K2 SATA support
<*> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
< > Marvell SATA support (HIGHLY EXPERIMENTAL)
<*> NVIDIA SATA support
< > Pacific Digital ADMA support
< > Pacific Digital SATA QStor support
< > Promise SATA TX2/TX4 support
< > Promise SATA SX4 support
<*> Silicon Image SATA support
< > SiS 964/965/966/180 SATA support
< > ULi Electronics SATA support
<*> VIA SATA support
< > VITESSE VSC-7174 / INTEL 31244 SATA support
< > Initio 162x SATA support
<*> ACPI firmware driver for PATA
< > ALi PATA support (Experimental)
< > AMD/NVidia PATA support
< > ARTOP 6210/6260 PATA support
<*> ATI PATA support
< > CMD640 PCI PATA support (Very Experimental)
< > CMD64x PATA support
< > CS5510/5520 PATA support
< > CS5530 PATA support (Experimental)
< > Cypress CY82C693 PATA support (Very Experimental)
< > EFAR SLC90E66 support
< > Generic ATA support
< > HPT 366/368 PATA support
< > HPT 370/370A/371/372/374/302 PATA support (Experimental)
< > HPT 372N/302N PATA support (Very Experimental)
< > HPT 343/363 PATA support
< > IT8211/2 PATA support
< > IT8213 PATA support (Experimental)
< > JMicron PATA support
< > Compaq Triflex PATA support
< > Marvell PATA support via legacy mode
<*> Intel PATA MPIIX support
< > Intel PATA old PIIX support
< > NETCELL Revolution RAID support
< > Ninja32/Delkin Cardbus ATA support (Experimental)
< > Nat Semi NS87415 PATA support (Experimental)
< > OPTI621/6215 PATA support (Very Experimental)
< > OPTI FireStar PATA support (Very Experimental)
< > Older Promise PATA controller support (Experimental)
< > RADISYS 82600 PATA support (Very Experimental)
< > PC Tech RZ1000 PATA support
< > SC1200 PATA support (Very Experimental)
< > SERVERWORKS OSB4/CSB5/CSB6/HT1000 PATA support
< > Promise PATA 2027x support
< > CMD / Silicon Image 680 PATA support
< > SiS PATA support (Experimental)
< > VIA PATA support
< > Winbond SL82C105 PATA support
<*> Intel SCH PATA support

Then:
Code:
make && make modules_install
cp arch/x86/boot/bzImage /boot/kernel-2.6.34
exit
reboot


edit adds kernel changes.
Back to top
View user's profile Send private message
rogerdv
Apprentice
Apprentice


Joined: 01 Apr 2006
Posts: 185
Location: Santiago, Cuba

PostPosted: Thu Sep 09, 2010 12:55 pm    Post subject: Reply with quote

Well, dont know what was the solution, but it is solved now. I think the problem was in the kernel.
_________________
Game programming news for newbies | The Ark, making an RPG the right way!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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