Results 1 to 6 of 6

Thread: change boot time ramdisk size howto

  1. #1
    Junior Member
    Join Date
    Dec 2015
    Posts
    3

    change boot time ramdisk size howto

    Hi,
    I have 8G of ram
    at boot Knoppix (7.6) makes a ramdrive of 4G ... but I kinda need 5G

    any solution to change ramdisk size ?

  2. #2
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    Quote Originally Posted by sorcerer View Post
    at boot Knoppix (7.6) makes a ramdrive of 4G ... but I kinda need 5G
    A 4 Gb limit may be to prevent its being used to contain a single file larger than 4 Gb.
    4 Gb is a filesize limitation of fat32 or vfat filesystems.
    Does this have any bearing on your question?

  3. #3
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    Hi sorcerer!

    How did you find out the size of the ramdisk?

    When I booted Knoppix 7.6.0 in Virtualbox 5.0.10 with 8 GB of RAM the command
    Code:
    df -h
    showed that the /ramdisk is 6.3 GB large.

  4. #4
    @klaus2008
    What a good catch regarding the ratio of 4GB to 8GB mentioned in sorcerer's post! But, with KNOPPIX 7.4.2, a ram with physical size of 4096MB can only be recognised as 3246MB when running in 32-bit mode and 3631MB in 64-bit mode. If the latest KNOPPIX is able to see all 4GB by default, that's awesome!

    @sorcerer
    From my very limited understanding of Linux and KNOPPIX, the default size of ramdisk is 80% of the ram size recognised by the kernel when the physical ram size is greater than 2000MB. If setting the ramdisk size manually is of interest, you could have a look at the /init file and keep an eye on the keywords of ramdisk and RAMDISK. The syntax of this hidden cheatcode is a bit tricky; the init script can take floating-point number, whereas the mount command only understands integer. One big question which keeps popping up in my head is what if the used space of ramdisk is larger than the ram size recognisable by the kernel but is still within the physical ram size... As I am not 100% sure what I'm talking about, so do it with your own risk... Sorry for the cliché...

  5. #5
    Junior Member
    Join Date
    Dec 2015
    Posts
    3
    @utu nope, they don't, this is about 8G ram and ram only, no connection with vfat
    @klaus2008 you have A REALLY GOOD POINT, yes, there is a /ramdisk with 6.3G, but / is exactly half memory (4G if you have 8G, and 8G if you have 16G)

    so, changing the question:
    is it safe to use /ramdisk and / in the same time as they are more with 25% than total memory ? (4+6 = 10, and total memory is 8 )
    is there any solution to modify them at boot time ?


    now this is just curiosity, I bet I can use those 5G in /ramdisk, thank you for actually solving it
    Last edited by Werner P. Schulz; 12-07-2015 at 05:24 PM.

  6. #6
    Junior Member
    Join Date
    Dec 2015
    Posts
    3
    please edit my post and change:
    (4+6 = 10, and total memory is
    to
    (4+6 = 10, and total memory is 8 )

    thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


WAVLINK RAID 2 Bay Hard Drive Docking Station SATA 2.5''3.5'' SSD HDD USB C 4Bay picture

WAVLINK RAID 2 Bay Hard Drive Docking Station SATA 2.5''3.5'' SSD HDD USB C 4Bay

$107.99



QNAP TR-004 4 Bay USB-C Hardware RAID Enclosure DAS 3.5 2.5 SATA Tested Working picture

QNAP TR-004 4 Bay USB-C Hardware RAID Enclosure DAS 3.5 2.5 SATA Tested Working

$149.99



9300-8i LSI SAS3008 8-Port 12Gb PCIe IT mode ZFS FreeNAS unRAID 2*SFF-8643 US picture

9300-8i LSI SAS3008 8-Port 12Gb PCIe IT mode ZFS FreeNAS unRAID 2*SFF-8643 US

$49.50



Vintage Promise EIDEMAX Enhanced IDE Disk Controller ISA Non-RAID Card Boxed picture

Vintage Promise EIDEMAX Enhanced IDE Disk Controller ISA Non-RAID Card Boxed

$34.99



2-Bay/4-Bay Hard Drive Enclosure for 3.5

2-Bay/4-Bay Hard Drive Enclosure for 3.5"/2.5'' SATA HDD/SSD 10Gbps USB-C 3.2

$119.99



Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller picture

Broadcom LSI 9305-16i 12Gbps SAS-3 PCIe x8 HBA 16-Ports Raid Controller

$64.99



Lot Mini SAS SFF-8643 To 4 SATA 7pin Hard Disk 6Gbps Data Server Raid Cable 1M picture

Lot Mini SAS SFF-8643 To 4 SATA 7pin Hard Disk 6Gbps Data Server Raid Cable 1M

$1150.00



TerraMaster D5-300C 5-Bay USB-C Hard Drive Enclosure picture

TerraMaster D5-300C 5-Bay USB-C Hard Drive Enclosure

$115.00



Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003 picture

Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003

$639.69



Dell EMC 15-Bay 3.5

Dell EMC 15-Bay 3.5" SAS Disk Array Enclosure 12Gbps Dual LCC - 2x Power Supply

$249.00