Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230892 - sys-kernel/{gentoo,hardened}-sources-2.6.24-rX: Ramdisk runs out of space
Summary: sys-kernel/{gentoo,hardened}-sources-2.6.24-rX: Ramdisk runs out of space
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-05 20:51 UTC by 7v5w7go9ub0o
Modified: 2008-07-10 11:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/usr/src/linux-2.6.24-hardened-r3/.config (dot_config,53.76 KB, text/plain)
2008-07-05 22:12 UTC, 7v5w7go9ub0o
Details
/usr/src/linux-2.6.24-hardened-r3/.config (dot_config,53.76 KB, text/plain)
2008-07-06 00:56 UTC, 7v5w7go9ub0o
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 7v5w7go9ub0o 2008-07-05 20:51:20 UTC
1. The following config has worked fine on 2.6.23.x and earlier, gentoo and hardened sources
#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_PROC_SYSCTL=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
# CONFIG_TMPFS_POSIX_ACL is not set
# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not set
CONFIG_RAMFS=y
# 

This along with lilo.conf =
boot=/dev/hda4
prompt
ignore-table
timeout=100
default=Hard23r7
image=/boot/kernel-2.6.23-gentoo-r8
  label=Gentoo23r8
  ramdisk=300000
  read-only
  root=/dev/hda11
image=/boot/kernel-2.6.23-hardened-r7
  label=Hard23r7
  ramdisk=300000
  read-only
  root=/dev/hda11
image=/boot/kernel-2.6.24-hardened-r3
  label=Hard24r3
  ramdisk=300000
  read-only
  root=/dev/hda11

After booting up, I've always been able to mount /dev/ram. to a directory and use ramdisk files. e.g.

mke2fs -q -m 0 /dev/ram5
sleep 1
#mke2fs -q -m 0 /dev/ram6
mount /dev/ram5 /ramdisk5
sleep 1
#mount /dev/ram6 /ramdisk6
cp -Rp /jail/tor1 /ramdisk5

2. As of 2.6.24.x, my standard mounting procedures no longer work - in the example above, /ramdisk5 runs out of space.

A.)  I .....suspect..... that it has something to do with CONFIG_RAMFS (=y) no longer appearing as an option.

B.)  It may also have to  do  with " Default number of RAM disks". In pre-2.26.4.x version, it  defaulted to "8" and actually produced 16; it now defaults to 8 and produces only "8" (/dev/ram(0-7) ). I tried it both at default 8, and then changing it to 16.

Reproducible: Always
Comment 1 Gordon Malm (RETIRED) gentoo-dev 2008-07-05 21:57:26 UTC
Please attach your kernel config.  Have you confirmed this problem also occurs with gentoo-sources-2.6.24-r8?
Comment 2 7v5w7go9ub0o 2008-07-05 22:12:25 UTC
Created attachment 159666 [details]
/usr/src/linux-2.6.24-hardened-r3/.config

(hope I did this right..... newbie)

1. Yes, It occurred (first) on gentoo-sources-2.6.24-r8. 

I then uninstalled that and downloaded the hardened sources kernel, and it failed there in the same manner.  

In each case, I simply copied the .config over from the earlier kernel(s) and ran make oldconfig. The only changes from the earlier configs had to do with adding CONFIG_CRYPTO_XTS=y

2. Here is my .config for hardened.
Comment 3 7v5w7go9ub0o 2008-07-06 00:56:50 UTC
Created attachment 159668 [details]
/usr/src/linux-2.6.24-hardened-r3/.config

(hope I did this right..... newbie)

1. Yes, It occurred (first) on gentoo-sources-2.6.24-r8. 

I then uninstalled that and downloaded the hardened sources kernel, and it failed there in the same manner.  

In each case, I simply copied the .config over from the earlier kernel(s) and ran make oldconfig. The only changes from the earlier configs had to do with adding CONFIG_CRYPTO_XTS=y

2. Here is my .config for hardened.
Comment 4 Gordon Malm (RETIRED) gentoo-dev 2008-07-06 01:35:42 UTC
(In reply to comment #0)
>   ramdisk=300000

First, double check that the source to be copied is smaller than the destination ramdisk.

Please try removing the ramdisk=300000 line and using: append="ramdisk_size=300000"

Been awhile since I used lilo but I'm pretty sure you have to re-run lilo after this change.

Lastly, updating summary, reassigning to kernel@g.o, removing hardened@g.o, CCing myself.
Comment 5 7v5w7go9ub0o 2008-07-06 03:03:59 UTC
SUCCESS!  Your changes did the trick! Thanks for hanging in there - espcially given it was a user config problem!!

Which begs the question, WHY... did the kernel suddenly become finicky about that lilo wording, given lilo hasn't changed in months, and given I'd been using that lilo.conf for over a year?

Thanks again! (though it looks like I'll be sending in another note - one on "arpstar" - once I gather some info and confirm there's an issue there :-( )
Comment 6 Mike Pagano gentoo-dev 2008-07-10 11:53:33 UTC
Nice find on the configuration change, Gordon.