Remastersys Forums
September 10, 2010, 02:49:14 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Remastersys depends on user donations to survive.
Please help us keep the Remastersys project alive.
http://www.remastersys.com
 
   Home   Remastersys Home Remastersys downloads Donate Login Register AV LINUX Home Help  
Pages: [1]
  Print  
Author Topic: Ubuntu 8.04 with 2.6.31 kernel and LiveCD nor Backup mode won't boot  (Read 565 times)
0 Members and 1 Guest are viewing this topic.
maddis
Newbie
*
Offline Offline

Posts: 3


« on: February 08, 2010, 06:33:03 AM »

Like the subject says. I have originally Ubuntu 8.04 where I have installed new kernel from 9.10. Kernel is 2.6.31-9-rt. Remastersys is version 2.0.15-1.

First I encountered the squashfs problem, but that was solved by installing the squashfs-tools package from karmic as well. Now I have new problem and I couldn't find solution for it.

In casper.log I get following errors:

mount: Mounting unionfs on /root failed: No such device
unionfs mount failed

No matter if I try to use live or install mode. I tried already to upgrade genisoimage, but that didn't solve the problem. Aufs module also exists in real system so that's not the problem I hope.

Any suggestion what might be wrong?

I tried to upgrade casper, but it would upgrade half the system so I didn't do it. Hopefully that's not needed because then the whole 'staying in Ubuntu 8.04, but just upgrading the kernel' thing kind of make no more sense.
Logged
fragadelic
Administrator
Hero Member
*****
Offline Offline

Posts: 1466


Remastersys Developer


WWW
« Reply #1 on: February 08, 2010, 08:46:58 AM »

You can't do what you are doing.

Ubuntu keeps changing how their live scripts work and you cannot mix and match as you see fit if you want to create a backup or dist livecd.  Either go with 8.04 fully or with 9.10 fully.  You cannot mix and match.
Logged

I have spent considerable time creating remastersys and the documentation and offer it up for free.

As a courtesy to me, please read the documentation here and on the website before posting any questions.
maddis
Newbie
*
Offline Offline

Posts: 3


« Reply #2 on: February 09, 2010, 12:53:03 AM »

Damn. That doesn't sound good. And I was thinking I could make this easy. Ubuntu 9.10 causes problems in the system, but 8.04 with kernel from 9.10 seems to be working just fine. Oh well. I'll try to figure out something.
Logged
maddis
Newbie
*
Offline Offline

Posts: 3


« Reply #3 on: February 16, 2010, 05:32:07 AM »

Just to want to let you know that I got it working!

It wasn't easy, but relatively easy. I had to compile the kernel my self from ubuntu sources. Before that I added unionfs patch into it(that needed some fixing even though the kernel version was correct). After that I just installed the kernel package and created backup with remastersys and it worked with no problems!  Of course I also had to install squashfs-tools to match the kernel but that's it.
Logged
vmroeno
Newbie
*
Offline Offline

Posts: 1


« Reply #4 on: February 23, 2010, 10:13:52 AM »

I had the same problem and this worked for me too.

Thanks a lot
Logged
john33
Newbie
*
Offline Offline

Posts: 7


« Reply #5 on: March 05, 2010, 08:16:16 AM »

Hi,
I'm following the same path, I just added the squashfs patch to my ubuntu 8.04 2.6.24-27 openvz kernel, but applying the unionfs-2.5_for_2.6.24.7.diff patch fails :
Code:
patching file fs/splice.c
Hunk #1 FAILED at 893.
Hunk #2 FAILED at 914.
Hunk #3 succeeded at 897 with fuzz 2 (offset -44 lines).
Hunk #4 succeeded at 1025 (offset 14 lines).
Hunk #5 succeeded at 1083 (offset 14 lines).
Hunk #6 succeeded at 1157 (offset 14 lines).
Hunk #7 succeeded at 1178 (offset 14 lines).
2 out of 7 hunks FAILED -- saving rejects to file fs/splice.c.rej

Here is the fs/splice.c.rej content:
Code:
*************** EXPORT_SYMBOL(generic_splice_sendpage);
*** 893,900 ****
  /*
   * Attempt to initiate a splice from pipe to file.
   */
- static long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
-    loff_t *ppos, size_t len, unsigned int flags)
  {
  int ret;
 
--- 893,900 ----
  /*
   * Attempt to initiate a splice from pipe to file.
   */
+ long vfs_splice_from(struct pipe_inode_info *pipe, struct file *out,
+      loff_t *ppos, size_t len, unsigned int flags)
  {
  int ret;
 
*************** static long do_splice_from(struct pipe_inode_info *pipe, struct file *out,
*** 914,926 ****
 
  return out->f_op->splice_write(pipe, out, ppos, len, flags);
  }
 
  /*
   * Attempt to initiate a splice from a file to a pipe.
   */
- static long do_splice_to(struct file *in, loff_t *ppos,
- struct pipe_inode_info *pipe, size_t len,
- unsigned int flags)
  {
  int ret;
 
--- 914,927 ----
 
  return out->f_op->splice_write(pipe, out, ppos, len, flags);
  }
+ EXPORT_SYMBOL_GPL(vfs_splice_from);
 
  /*
   * Attempt to initiate a splice from a file to a pipe.
   */
+ long vfs_splice_to(struct file *in, loff_t *ppos,
+    struct pipe_inode_info *pipe, size_t len,
+    unsigned int flags)
  {
  int ret;

Maddis, what did you have to fix to get it working ?

Thanks  Smile
Logged
john33
Newbie
*
Offline Offline

Posts: 7


« Reply #6 on: March 05, 2010, 08:50:13 AM »

In the meanwhile I have tried to use module assistant, but it fails bhen trying to build the module (obscur "no such file or directory" error)
Which method could work ?
Logged
john33
Newbie
*
Offline Offline

Posts: 7


« Reply #7 on: March 08, 2010, 04:34:17 AM »

Actually, the module assistant error (not ignored) is the following:
Code:
usr/src/linux-headers-2.6.24-27-generic SUBDIRS=`pwd`/build CONFIG_UNION_FS=m  CC="gcc" modules
make[3]: entrant dans le r?pertoire ? /usr/src/linux-headers-2.6.24-27-generic ?
  CC [M]  /usr/src/modules/unionfs/build/subr.o
Dans le fichier inclus ? partir de /usr/src/modules/unionfs/build/subr.c:23:
/usr/src/modules/unionfs/build/unionfs.h:50:2: attention : #warning You are compiling Unionfs on an unsupported kernel version.
/usr/src/modules/unionfs/build/unionfs.h:51:2: attention : #warning To compile Unionfs, you will need to define UNIONFS_UNSUPPORTED.
/usr/src/modules/unionfs/build/unionfs.h:52:2: attention : #warning Try adding: EXTRACFLAGS=-DUNIONFS_UNSUPPORTED to fistdev.mk
In file included from /usr/src/modules/unionfs/build/subr.c:23:
/usr/src/modules/unionfs/build/unionfs.h:434: erreur: conflicting types for ?vfs_listxattr?
include/linux/xattr.h:52: erreur: previous declaration of ?vfs_listxattr? was here
make[4]: *** [/usr/src/modules/unionfs/build/subr.o] Erreur 1
make[3]: *** [_module_/usr/src/modules/unionfs/build] Erreur 2

The used kernel is recompiled from the ubuntu repository sources, shouldn't it be supported by the unionfs module ?

Regards
Logged
fragadelic
Administrator
Hero Member
*****
Offline Offline

Posts: 1466


Remastersys Developer


WWW
« Reply #8 on: March 08, 2010, 08:59:21 AM »

Things like unionfs and squashfs are version specific to the kernel.
Logged

I have spent considerable time creating remastersys and the documentation and offer it up for free.

As a courtesy to me, please read the documentation here and on the website before posting any questions.
john33
Newbie
*
Offline Offline

Posts: 7


« Reply #9 on: March 10, 2010, 03:37:54 AM »

Hi,
I managed to get it working with squashfs and unionfs kernel patches.

However after some system changes remastersys now stops at 6%, in the mksquashfs command. when I run "ps aux |grep mksquashfs" I can see the mksquashfs is "Sl+" mode.  What can it be waiting for ?
Logged
fragadelic
Administrator
Hero Member
*****
Offline Offline

Posts: 1466


Remastersys Developer


WWW
« Reply #10 on: March 10, 2010, 01:15:29 PM »

Did you upgrade squashfs-tools to match the version of squashfs in the kernel you are using?
Logged

I have spent considerable time creating remastersys and the documentation and offer it up for free.

As a courtesy to me, please read the documentation here and on the website before posting any questions.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!