LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices



Reply
 
Search this Thread
Old 04-17-2006, 07:17 PM   #1
Badut
LQ Newbie
 
Registered: Apr 2004
Posts: 16

Rep: Reputation: 0
Source files corrupted?


I'm having trouble with files getting corrupted on the LFS partition.
I'm using FC5 as host.

/dev/hda1 through /dev/hda8 are partitiions used by FC5.
So I
Code:
'mke2fs -j /dev/hda9'
to use for LFS. (/dev/hda9 is just spare unused space on my harddisk)

/dev/hda9 is not in /etc/fstab so I mount it manually each time with
Code:
'mount -v /dev/hda9 /mnt/lfs'
and when I'm done for the day I unmount /dev/hda9 with
Code:
'umount -v /mnt/lfs'
Things seem to be going ok, but I find that the md5sums change for some of the files I copied to /mnt/lfs
This will usually happen after a reboot (even if I unmount /dev/hda9 before I shutdown). The files whose md5sums no longer match are corrupt (bunzip2 told me so).

Is there something wrong with the way I'm mounting and unmounting that's causing this problem? Or is there something else that could be causing this problem?
 
Old 04-17-2006, 11:05 PM   #2
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
the mk2fs command is flawless (you are making a ext3 fs).

mount is good too (-v for verbose).

I don't see what might be causing the problem. unless it's an external harddrive that you unplug before umounting...
 
Old 04-17-2006, 11:37 PM   #3
professorllama
LQ Newbie
 
Registered: Apr 2006
Location: Kirksville, Missouri, USA
Distribution: gentoo / slackware
Posts: 7

Rep: Reputation: 0
You could try using a different filesystem... right now I believe you're using journaling ext2 (ext3 for all practical purposes...)? Personally I'd consider using reiserfs but I doubt FC5 will let you without a little kernel work and installing reiserfsutils.
 
Old 04-17-2006, 11:53 PM   #4
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
-j means journaling, therefore creating a journaled (ext3) filesystem. (by the gentoo handbook I read not too long ago anyway).

I don't expect changing filesystem to do much of a difference, but if the ext3 module for FC5 is currupted, or act unconventionally, then I'd say changing FS would be a good idea
 
Old 04-18-2006, 03:16 AM   #5
Badut
LQ Newbie
 
Registered: Apr 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for the replies. I was actually hoping that I had done something stupid so that it would be easy to fix.

The harddisk is not external. It is a standard IDE drive and the only harddrive in the system at that.

I tried ext2 first (which is what the LFS book uses) but switched to ext3 hoping that it would fix the problem. It obviously doesn't ;(

FC5 uses ext3 as the "default" FS, so I would think (hope) that they would have the ext3 module working somewhat flawlessly. I'll try to switch to another FS just for that partition to see if it helps.
 
Old 05-12-2006, 08:51 PM   #6
gerald45
LQ Newbie
 
Registered: Sep 2005
Distribution: Debian
Posts: 22

Rep: Reputation: 15
Just a thought.

In chapter 2.3 there is a note about distros using custom features and it suggests using the standard e2fsprogs to create the filesystem. I don't know whether it is custom features that is causing your problem. But in any case if your mke2fs is dodgy, it may be worth a try.

cd /tmp
tar -xjvf /path/to/sources/e2fsprogs-1.38.tar.bz2
cd e2fsprogs-1.38
mkdir -v build
cd build
../configure
make #note that we intentionally don't 'make install' here!
./misc/mke2fs -jv /dev/<xxx>
cd /tmp
rm -rfv e2fsprogs-1.38

This is taken from the LFS-dev, LFS 6.1.1 uses e2fsprogs-1.37 so adjust as appropriate.

Hope it helps
 
Old 05-12-2006, 09:10 PM   #7
Axalon
LQ Newbie
 
Registered: May 2006
Distribution: Archlinux, LFS 6.2
Posts: 20

Rep: Reputation: 0
Ah, yes. Doesn't FC use SELinux? The LFS book warns about custom features.

run "debugfs -R feature /dev/hda9" and if you get anything listed other than dir_index, filetype, large_file, resize_inode and/or sparse_super, you'll need to compile a fresh copy of e2fsprogs.

Last edited by Axalon; 05-12-2006 at 09:12 PM.
 
Old 05-12-2006, 10:07 PM   #8
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
http://fedora.jp/datapool/fedora-doc...html#id2684310

the link tells how to disable selinux, with a warning to it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Lots of missing (corrupted?) files in Fedora Core 4 install... cyberguy03 Linux - Software 1 03-07-2006 05:08 PM
package index files corrupted lil_becky Debian 1 02-16-2005 05:03 PM
Corrupted Files??? rm6990 Yoper 2 09-19-2004 02:29 AM
Corrupted Library Files Star Child Linux - General 1 04-07-2004 02:13 PM
HELP!!! Corrupted files!!! broxys Linux - General 7 08-18-2003 08:09 PM


All times are GMT -5. The time now is 01:12 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration