[Buildroot] EXT2-fs error

Johnny Beardsmore jny0 at hotmail.com
Fri Sep 10 15:41:06 UTC 2010


Further to this problem:

I tried following advice recieved earlier in this thread (to check it on the build machine), and get the following output.

rootfs.i486.tar.bz2 was generated by Buildroot.  I didn't think e2fsck could be used in this way, and that may be why this error is thrown, but if this is a valid operation, what could cause it?

[root at localhost images]# /sbin/e2fsck -f rootfs.i486.tar.bz2 
e2fsck 1.41.9 (22-Aug-2009)
/sbin/e2fsck: Superblock invalid, trying backup blocks...
/sbin/e2fsck: Bad magic number in super-block while trying to open rootfs.i486.tar.bz2

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
filesystem (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>


From: jny0 at hotmail.com
To: buildroot at busybox.net
Date: Thu, 9 Sep 2010 12:35:17 +0000
Subject: Re: [Buildroot] EXT2-fs error









> >bzImage is the kernel file, and I didn't ask you about it.  I'm asking
> >about your filesystem.
>  
> >The rootfs files contain your root filesystem.  Can you tell us clearly
> what you're doing to set up the root filesystem on
> >your device?
> 
> Apologies.  I use the following script (see below) to install the filesystem
> 'rootfs.i486.tar.bz2' and the kernel image 'bzImage'.
> This script is called from /boot/grub/menu.lst on the USB stick.
> 
> 
> echo Setting up main drive...
> echo "d
> n
> p
> 1
> 
> 
> a
> 1
> w
> " | /sbin/fdisk /dev/hda
> /usr/sbin/mkfs.ext2 /dev/hda1
> 
> echo Mounting drive and populating...
> /bin/mount /dev/sda2 /mnt
> /bin/mount /dev/hda1 /mnt/disk
> rm -rf /mnt/disk/*
> /bin/tar -C /mnt/disk/ -xvf /mnt/rootfs.i486.tar.bz2
> mkdir /mnt/disk/var/log/lighttpd
> cp /mnt/grub/menu.lst /mnt/disk/boot/grub/
> cp -av /mnt/home/* /mnt/disk/home/
> cp -av /mnt/etc/inittab /mnt/disk/etc/
> cp -av /mnt/etc/lighttpd /mnt/disk/etc/
> cp -av /mnt/etc/network/* /mnt/disk/etc/network/
> cp -av /mnt/etc/init.d/* /mnt/disk/etc/init.d/
> cp -av /mnt/var/www /mnt/disk/var/
> #umount /dev/hda1
> 
> echo "root (hd0,0)
> setup (hd0)
> quit
> " | /sbin/grub
> 
> 
> echo 
> echo Installation Finished. Please Reboot.
> echo =====================================
> /bin/sleep 8000
> -- 
> View this message in context: http://old.nabble.com/EXT2-fs-error-tp29591683p29641651.html
> Sent from the Buildroot (busybox) mailing list archive at Nabble.com.
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
 		 	   		  

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100910/a1ced494/attachment.html>


More information about the buildroot mailing list