You are not logged in.

#1 2006-03-23 03:00:37

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

After moving/resizing root partition, kernel is not found.

In my current setup, my / and /opt are on different partitions. I am trying to create a new partition and move both my / and /opt partition onto it.   I've created the partition and copied / and /opt with cp -ax.

After modifying my fstab and lilo.conf and running lilo, I rebooted.  When booting up, the message "Uncompressing the kernel" is *not* displayed. There's the message about loading initrd and then the system hangs.

After reading the wiki about restoring lilo with the install CD, I could successfully get my system running with the old / partition. Thinking that I did something wrong, I tried again but I still get the hang.

BTW, I don't have a separate /boot partition.

Any help/hint  appreciated.

Thanks.

Offline

#2 2006-03-23 03:46:06

tyme
Member
From: PA
Registered: 2003-06-12
Posts: 139
Website

Re: After moving/resizing root partition, kernel is not found.

please post the fstab and lilo.conf that you tried to use when switching the / mount point to the new partition, there might be an error in there somewhere - it can help us narrow down the problem.  if you don't have it, post your current fstab and lilo.conf and let us know what your partition set up is (where the old and new partition is) smile

Offline

#3 2006-03-24 02:37:03

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: After moving/resizing root partition, kernel is not found.

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0
tmpfs                  /tmp          tmpfs     defaults            0      0
usbfs                  /proc/bus/usb usbfs  defaults            0      0

/dev/hdc        /mnt/cdrom     iso9660   ro,user,noauto,unhide   0      0
/dev/hdc        /mnt/dvd       udf       ro,user,noauto,unhide   0      0
/dev/scd0       /mnt/cdrom_ext iso9660   ro,user,noauto,unhide   0      0
/dev/scd0       /mnt/dvd_ext   udf       ro,user,noauto,unhide   0      0

/dev/sda1       /mnt/hd_ext    ext3 noauto,user,rw,suid,dev,exec,async   1       0

/dev/hda7 swap swap defaults 0 0
/dev/hda1  /mnt/winxp ntfs noauto,user,ro,umask=022 1 0
/dev/hda6 /     ext3 defaults 0 1
/dev/hda8  /usr  ext3 defaults 0 1
/dev/hda9  /var  ext3 defaults 0 1
/dev/hda10  /home ext3 defaults 0 1
/dev/hda5  /mnt/bak_orion ext3  noauto,user,rw,suid,dev,exec,async   0       1
/dev/hda11 /mnt/music    ext3 defaults 0 1
#/dev/hda12 /opt                 ext3 defaults 0 1
#
# /etc/lilo.conf
#

boot=/dev/hda append="devfs=nomount"
# This line often fixes L40 errors on bootup
# disk=/dev/hda bios=0x80

#bitmap=/boot/arch-lilo.bmp
#bmp-colors=1,0,8,3,8,1
#bmp-table=250p,150p,1,18
#bmp-timer=250p,350p,3,8,1

default="ArchCK"
timeout=50
lba32
compact
prompt

image=/boot/vmlinuz26
        label="ArchLinux"
        append="quiet"
        root=/dev/hda6
        vga=792
        initrd=/boot/initrd26.img
        read-only

image=/boot/vmlinuz26archck
        label="ArchCK"
        root=/dev/hda6
        append="video=vesafb:ywrap,mtrr:3,1024x768-32@60 splash=silent,theme:darch quiet console=tty1"
        initrd=/boot/initramfs26.img 
        read-only

image=/boot/memtest86+/memtest.bin
        label="Memtest86+"

other=/dev/hda1
        label="WindowsXP"

# End of file

These are the fstab and lilo.conf that I tried to used on my new /partition. My current / is on /dev/hda13 and my /opt is on /dev/hda12. Also, the / partition that I'm currently using is not the original partition that I had before repatitioning. It was supposed to be a temporary partition.  It's probably a question of when I run the lilo command. I'm guessing that it uses the kernel of the old partition instead of the new one. I'll try again this weekend to figure this out.

Let me know if you need other information.

Offline

#4 2006-03-24 07:24:42

gradgrind
Member
From: Germany
Registered: 2005-10-06
Posts: 921

Re: After moving/resizing root partition, kernel is not found.

It is a long time since I used lilo, so I may be completely wrong here, but could it be that you need to run lilo within the new system (i.e. chroot)? You didn't mention doing this. I think certain preparatory steps are necessary, something like:

mount /dev/ /newarch/dev/ --bind
mount /sys/ /newarch/sys/ --bind
mount /proc/ /newarch/proc/ --bind

Also, I suppose your initramfs really is called 'initramfs26.img'? I just ask because mine is called something else.

(You could also try GRUB, but I suppose you have already rejected this option).

Offline

#5 2006-03-24 19:21:59

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: After moving/resizing root partition, kernel is not found.

I've tried chroot and the instructions here: http://wiki.archlinux.org/index.php/Res … oot_loader

When I moved my / partition from its original location to its current location, I didn't used chroot at all. I just mounted it somewhere, edited the files and ran lilo. Maybe chroot isn't needed after all...

Offline

#6 2006-03-24 21:43:37

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: After moving/resizing root partition, kernel is not found.

Do you have the right root=/dev/hdXX kernel option?

Offline

#7 2006-03-25 00:22:35

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: After moving/resizing root partition, kernel is not found.

jaboua wrote:

Do you have the right root=/dev/hdXX kernel option?

I don't understand what you mean by that. Are you talking about the append line? I haven't changed anything except the root line.

EDIT: My /dev/hda6 is indeed my new root partition.  I can mount it in /mnt/tmp and all (I think) the files are there.

Offline

#8 2006-03-27 01:11:46

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: After moving/resizing root partition, kernel is not found.

Update:
After trying again, I concluded that the problem was caused either because I was using a copy of the initial / partition or I was repeating a silly mistake. In any case, I decided to keep that working root partition and to keep /opt on a seperate partition. I've just resized/moved the other partitions and now I'm done. smile

Thanks to everyone who made suggestions.

Offline

Board footer

Powered by FluxBB