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

Re: kernel

Le 30 juin 08 à 21:04, Geert Uytterhoeven a écrit :

On Mon, 30 Jun 2008, Laurent Vivier wrote:
Le 30 juin 08 à 20:17, Petr Stehlik a écrit :
Roman Zippel pí?e v Po 30. 06. 2008 v 20:08 +0200:
On Mon, 30 Jun 2008, Stephen R Marenka wrote:
How exactly does one configure nfblock? What's the aranym config or
command line needed to make it work?

There is no extra configuration needed. All [IDE?] and [PARTITION?]
entries are exported this way, although the latter have only very limited value due to the forced boot block, so you can't create partitions on it and you will have problems to loop mount the disk images on the host.

That's not true - the [PARTITION] was introduced to actually SIMPLIFY
the loop mount!

Just a comment about the loop mount:

I've introduced in linux 2.6.26 a patch allowing to manage partitions with
you must load loop modules with a new parameter giving the maximum number of
partitions per loop:

# rmmod loop
# modprobe loop max_part=63

and then you can:

# losetup -f my_disk.img
# mount /dev/loop0p1 /mnt


Alternatively, you use kpartx, which uses the device mapper to create
partitions on any device.

Yes, but kpartx supports only a subset of partition types whereas loop supports all partition types know by the kernel.

----------------------- Laurent Vivier ----------------------
"The best way to predict the future is to invent it."
- Alan Kay

Reply to: