You are not logged in.

#1 2007-09-06 11:03:05

nick122147
Member
Registered: 2007-05-17
Posts: 33

from reiserfs to xfs - boot problem

I wantet to switch my arch partition from reiserfs to xfs, and made a iso of the whole partition, formatted it as xfs and tar'ed the content of the iso back to the arch partition. Reinstalled grub and checked fstab. But when I boot off xfs I get a kernel panic, saying
init cannot open root device sda2 (8,2)
I tried to chroot to arch (with a live cd) and reinstall the kernel with pacman, so that it generated a new kernel image, but it didn't make any difference.

Are there issues with booting from a xfs partition, or is it anything else I should do in this transfer prossess?

Thanks,
Steinar

Offline

#2 2007-09-07 09:24:14

klixon
Member
From: Nederland
Registered: 2007-01-17
Posts: 525

Re: from reiserfs to xfs - boot problem

try rebuilding your initramfs with

# mkinitcpio -p kernel26

(i'm not completely sure if the syntax is correct. if not, mkinitcpio -h should help you out)

Reason: mkinitcpio has an autodetect feature, which also checks for which filesystems are used. When it was first run, there was no XFS, so its kernel-module is not included in the initramfs. Hence, kernel cannot mount it... Rebuilding should detect it and include it.

Make sure you have your boot-partition mounted read/write before you do this smile

Last edited by klixon (2007-09-07 09:24:50)


Stand back, intruder, or i'll blast you out of space! I am Klixon and I don't want any dealings with you human lifeforms. I'm a cyborg!

Offline

#3 2007-09-07 13:50:05

nick122147
Member
Registered: 2007-05-17
Posts: 33

Re: from reiserfs to xfs - boot problem

Yes, I can try that, but I think that happens when I reinstall the kernel with pacman, as I have already tried.

Offline

#4 2007-09-07 14:08:44

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: from reiserfs to xfs - boot problem

Try adding "rootfstype=xfs" to the kernel line.

Offline

#5 2007-09-07 15:57:05

nick122147
Member
Registered: 2007-05-17
Posts: 33

Re: from reiserfs to xfs - boot problem

lucke wrote:

Try adding "rootfstype=xfs" to the kernel line.

that didn't help

Offline

#6 2007-09-08 08:40:27

muczyjoe
Member
From: Szeged (Hungary)
Registered: 2007-05-16
Posts: 45
Website

Re: from reiserfs to xfs - boot problem

nano /etc/mkinitcpio.conf
At "MODULES" add xfs .

Offline

Board footer

Powered by FluxBB