Expanding File System
|
Table of Contents
|
Expanding Disk File System 4MB to 8MB
A ramdisk image can be downloaded from http://xilinx.wikidot.com by selecting file at the bottom of the page.
This ramdisk is about 4MB and a larger ramdisk might be needed. This pages illustrates how to make a new larger ramdisk and copy the old files to the new ramdisk. These instructions assume you are user root or have sudo privaledges.
Make an 8MB ramdisk
dd if=/dev/zero of=initrd.img bs=1M count=8
Format new ramdisk(initrd.img)
mke2fs -F -v -m0 initrd.img
Mount initrd.img to /mnt/new-disk
mkdir /mnt/new-disk
mount -o loop initrd.img /mnt/new-disk
Gunzip & mount ramdisk to old-ramdisk (/mnt/old-disk) file
mkdir /mnt/old-disk
gunzip ramdisk.image.gz
mount -o loop ramdisk.image /mnt/old-disk
Copy ex-files to new ramdisk
cp -rf /mnt/old-disk/* /mnt/new-disk
Umount the ramdisks
umount /mnt/old-disk
umount /mnt/new-disk
Gzip new ramdisk
gzip -9 initrd.img
mv initrd.img ramdisk.image.gz
Referanced from http://tamarases.wikidot.com/expanding-disk-file-system
page_revision: 12, last_edited: 1254414984|%e %b %Y, %H:%M %Z (%O ago)





