Skip to contentSkip to conversation

users Digest, Vol 27, Issue 3

SPAM volkov-6IceoeoMUCicTuHFI/[email protected] 2 participants 3 messages Jun 27, 2008 – Jul 4, 2008 4 messages not in the archive NILFS2 filesystem

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 12 lines
Quoted 12 lines

I installed Linux system on nilfs root partition
I use 2x32G usb flash (raid0, 64k chunks).
Nilfs with "-B 512."

I use gentoo linux.
I had to remove the script / etc / init.d / checkroot.

mount.nilfs2 does not understand the command:
mount -o remount, ro /
mount -o remount, rw /
mount -f ...

Quoted 7 lines
Quoted 1 line

Fixed please.

Please let me know some details.

How did you load the NILFS2 module (nilfs2.ko) before mounting the root partition created by NILFS2 ? Are you using an initrd image with nilfs2.ko ?

I patch kernel sources

--- linux-2.6.25-gentoo-r4/fs/Kconfig 2008-06-12 10:25:51.000000000 +0400
+++ linux-2.6.25-gentoo-r4-nilfs/fs/Kconfig 2008-06-24 22:54:57.000000000
+0400
@@ -6,6 +6,11 @@

if BLOCK

+config NILFS
+ tristate "NILFS"
+ help
+ NILFS
+
config EXT2_FS
tristate "Second extended fs support"
help
--- linux-2.6.25-gentoo-r4/fs/Makefile 2008-06-12 10:25:51.000000000 +0400
+++ linux-2.6.25-gentoo-r4-nilfs/fs/Makefile 2008-06-24 22:56:26.000000000
+0400
@@ -66,6 +66,7 @@
obj-$(CONFIG_DLM) += dlm/

# Do not add any filesystems before this line
+obj-$(CONFIG_NILFS) += nilfs/
obj-$(CONFIG_REISERFS_FS) += reiserfs/
obj-$(CONFIG_EXT3_FS) += ext3/ # Before ext2 so root fs can be ext3
obj-$(CONFIG_EXT4DEV_FS) += ext4/ # Before ext2 so root fs can be ext4dev

and copy nilfs to kernel sources

# cp -a nilfs-2.0.2/fs linux-2.6.25-gentoo-r4-nilfs/fs/nilfs/
# grep NILFS linux-2.6.25-gentoo-r4-nilfs/.config
CONFIG_NILFS=y
# sfdisk -d /dev/sdb
unit: sectors

/dev/sdb1 : start= 32, size= 100320, Id=fd, bootable
/dev/sdb2 : start= 100352, size= 62552064, Id=fd

/dev/sdb3 : start=        0, size=        0, Id= 0
/dev/sdb4 : start=        0, size=        0, Id= 0

raid1(sdb1+sdc1), xfs, /boot
raid0(sdb2+sdc2), nilfs, /

In /etc/lilo.conf:
lba32
boot = /dev/md1
map = /boot/.map
raid-extra-boot = mbr-only
install = /boot/boot-menu.b
menu-scheme=Wb
prompt
timeout = 50
delay = 30
vga = normal
default = Gentoo

image = /boot/vmlinuz
root = /dev/md0
label = Gentoo
append="pci=nommconf usbcore.autosuspend=1 snd_ac97_codec.power_save=1
acpi_irq_balance=0 nmi_watchdog=0 rootdelay=8"
read-write
image = /boot/vmlinuz.old

	root = /dev/md0
	label = old
	append="pci=nommconf"
	read-write

In /etc/fstab:
/dev/md0 / nilfs2 defaults 0 0
proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
shm /var/tmp tmpfs noatime 0 0

Quoted 2 lines

What kind of message was printed in the problem, or did it hang up ?

# mount -f /
/sbin/mount.nilfs2: invalid option -- f

mount -o remount,ro /
mount -o remount,rw /
It's my mistake.
I did not correctly /etc/fstab

---
Oleg Volkov

#4 lore raw
In reply to a message not in the archive
Quoted 7 lines · Oleg Volkov
Quoted 5 lines

Please let me know some details.

How did you load the NILFS2 module (nilfs2.ko) before mounting the root partition created by NILFS2 ? Are you using an initrd image with nilfs2.ko ?

I patch kernel sources

I got it, thanks for the useful patch.

Quoted 7 lines
Quoted 2 lines

What kind of message was printed in the problem, or did it hang up ?

# mount -f /
/sbin/mount.nilfs2: invalid option -- f
Quoted 7 lines

mount -o remount,ro /
mount -o remount,rw /
It's my mistake.
I did not correctly /etc/fstab

---
Oleg Volkov

I realized that the recent mount program passes this option to helper mount programs, but the current mount.nilfs2 does not support it.
OK, I will add the option to mount.nilfs2 later.

Thanks again for letting me know this.

Cheers,
Ryusuke Konishi

#6 lore raw
In reply to a message not in the archive

Dear Volkov,

Quoted 13 lines · Ryusuke Konishi
Quoted 12 lines · Oleg Volkov
Quoted 2 lines

What kind of message was printed in the problem,
or did it hang up ?

# mount -f /
/sbin/mount.nilfs2: invalid option -- f

mount -o remount,ro /
mount -o remount,rw /
It's my mistake.
I did not correctly /etc/fstab

Quoted 7 lines
Quoted 2 lines

---
Oleg Volkov

I realized that the recent mount program passes this option to helper mount programs, but the current mount.nilfs2 does not support it.
OK, I will add the option to mount.nilfs2 later.

I've uploaded mount.nilfs2 with the -f option on the nilfs2-utils git tree.
It seems to work so far, but I haven't tested it for a root partition.

Could you please try it to confirm everything works out?

The latest nilfs2-utils is obtainable by

 $ git clone http://git.nilfs.org/nilfs2-utils.git

and can build as follows,

 $ cd nilfs2-utils
 $ aclocal && autoheader && libtoolize -c --force
 $ automake -a -c
 $ autoconf
 $ ./configure
 $ make
 ( this may require some packages: git-core, libtool,
   autoconf, automake, and so forth )

Thanks in advance,
Ryusuke Konishi