Re: wheres the linux partition info stored in the linux kernel source?

From: Kasper Dupont (kasperd_at_daimi.au.dk)
Date: 10/04/05


Date: Tue, 04 Oct 2005 10:06:18 +0200

sudip05@mailcity.com wrote:
>
> Hi Everybody,
> I am working on Montavista linux kernel 0.3.0(most
> probably). :-) Busybox modules are also fused in the kernel.

Busybox is a user mode program, it is not a kernel module.

> When the kernel boots up I find that there are 4 partitions
> there(rootfs: /dev/ram0: 7Mb and /mnt/mtd2(flash):4Mb,
> /mnt/application:13Mb). I want to reduce this /mnt/application to be
> arnd 10Mb and increase the /dev/ram0 to some 10Mb. The 2 partitions are
> on the ram. I want to know the place in the kernel source where this
> information is kept and how to modify this.

Partition information is not in the kernel, it is on disk,
and the code to read it is in fs/partitions. The size of
ram0 is given by the image loaded at boot time. If you
want to resize it, you will have to modify the image.
You didn't tell us no what /mnt/application is, so I cannot
tell you anything about it.

> Is this info in the busybox?

No. Busybox is just a program.

-- 
Kasper Dupont
Note to self: Don't try to allocate
256000 pages with GFP_KERNEL on x86.


Relevant Pages