Re: migratepage failures on reiserfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2007-10-30 at 16:08 -0700, Badari wrote:
> Chris Mason wrote:
> > On Tue, 30 Oct 2007 13:54:05 -0800
[cut]
> > The easy way to narrow our search is to try without data=ordered, it is
> > certainly complicating things.
> >   
> 
> I can try that, its my root filesystem :(

You meant to write "can't?"

Download BusyBox and build it into an initramfs.  It's pretty easy, you
can do it yourself.  Or you could download the Debian mkinitramfs (I
think) package and look at it.  Or the Fedora equivalent (I think
mkinitrd).

Then you can boot into that and mount your / with whatever options you
like.

Here's what I use for my own custom BusyBox initramfs /init script:
#!/bin/sh

get_arg() {
	local arg="$1"
	local x=`cat /proc/cmdline`
	for i in $x; do
		if [ "${i%=*}" = "$arg" ]; then
			echo ${i#*=}
			break
		fi
	done
}

do_switch() {
	mount -t proc none /proc
	local root=`get_arg root`
	local flags=`get_arg rootflags`
	mount "$root" /new ${flags:+-o "$flags"}
	umount /proc
	cd /new
	exec switch_root . /sbin/init
}

do_shell() {
	exec /sbin/init
}

# The following will wait 2 seconds for Enter before booting.
trap "do_switch" ALRM

target=$$
( sleep 2; kill -ALRM $target ) &
alarm=$!

echo -n "Press Enter for a shell: "
while read action; do
	kill $alarm
	break
done
do_shell

-- 
Zan Lynx <zlynx@xxxxxxx>

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux