LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-04-2007, 05:12 PM   #1
banjzooie
LQ Newbie
 
Registered: Feb 2006
Distribution: Slackware 10.2
Posts: 19

Rep: Reputation: 0
Problems installing SquashFS in Fedora 4


Hi... I was going to attempt to make my own personal Fedora LiveCD using the Linux Live scripts. They require UnionFS.ko and SquashFS.ko. I downloaded and installed UnionFS no sweat, and the UnionFS.ko module was already included in the gzipped tar. SquashFS is a different story though... I've tried both 3.2 and 3.1 to no avail. If I try to patch the kernel, it all goes well until a certain point, where it says there is no file to patch. If I simply "make" the squashfs tools it installs, but that doesn't create the squashfs.ko module required to use the Live scripts. Is there something else I have to do to properly patch the kernel, or is there another way to obtain the squashfs.ko module?

Edit: My kernel is 2.6.11-1.1369_FC4-i686

Double edit, here is what happens when I try to patch the kernel:

Quote:
[root@localhost 2.6.11-1.1369_FC4-i686]# patch -p1 < /tmp/squashfs3.2/kernel-patches/linux-2.6.10/squashfs3.2-patch
patching file fs/Kconfig
Hunk #1 succeeded at 1366 (offset 100 lines).
patching file fs/Makefile
Hunk #1 succeeded at 52 (offset 1 line).
patching file fs/squashfs/inode.c
patching file fs/squashfs/Makefile
patching file fs/squashfs/squashfs2_0.c
patching file fs/squashfs/squashfs.h
patching file include/linux/squashfs_fs.h
patching file include/linux/squashfs_fs_i.h
patching file include/linux/squashfs_fs_sb.h
can't find file to patch at input line 4353
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nurp -x .gitignore linux-2.6.10/init/do_mounts_rd.c linux-2.6.10-squashfs3.2/init/do_mounts_rd.c
|--- linux-2.6.10/init/do_mounts_rd.c 2004-12-24 21:35:23.000000000 +0000
|+++ linux-2.6.10-squashfs3.2/init/do_mounts_rd.c 2007-01-01 09:00:02.000000000 +0000
--------------------------
File to patch:
Skip this patch? [y] y
Skipping patch.
5 out of 5 hunks ignored

Last edited by banjzooie; 02-04-2007 at 07:18 PM.
 
Old 02-05-2007, 03:41 AM   #2
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
OK are you trying to patch the kernel, or kernel source? to make a squashfs.ko module you need to patch the kernel source, this will usually located at /usr/src/linux and then recompile the kernel which will create the squashfs.ko module.

You also need the patch that matches your kernel number, fedora uses different names for their kernels since they add security patches and other stuff. This may also cause problems when trying to patch a kernel. I had errors trying to patch a 2.6.17.13 with a 2.6.17 patch for my slackware 11 livecd.

You might have to download the 2.6.18 kernel, the is the latest kernel that squashfs currently supports, or was a couple of months ago. patch it with unionfs and squashfs then compile it.
 
Old 02-05-2007, 05:59 AM   #3
banjzooie
LQ Newbie
 
Registered: Feb 2006
Distribution: Slackware 10.2
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
You might have to download the 2.6.18 kernel, the is the latest kernel that squashfs currently supports, or was a couple of months ago. patch it with unionfs and squashfs then compile it.
I thought about that, but I heard Fedora doesn't really work as well with plain kernels as it does with its own.
 
  


Reply



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
SQUASHFS error... theherkman Linux - Newbie 4 12-08-2010 08:47 AM
modifications in a squashfs filesystem fenix4life Linux - General 2 11-10-2009 03:26 AM
Unionfs and Squashfs support pengu Linux - Kernel 4 01-07-2007 04:06 PM
Making an initrd for a squashfs steveo_mcg Linux - General 1 09-12-2006 10:06 AM
squashfs Vookimedlo Linux - Software 0 07-21-2004 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:49 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
Open Source Consulting | Domain Registration