I will explain how to get a big partition (bigger than 4GB) without a native install (no need to flash or reinstall and you can keep your games too )
I will not use raid software (it doesn't work with loopfiles) instead i wll use LVM.
First i strongly recommend to backup those files
rootfs vmlinuz swap (on E partition)
You can't just run "emerge lvm2" you need to play with your kernel(you need kernel 2.4.22 check yours using "uname -r" if it doesn't match run magic to update)
Download this
ftp://sources.redhat.com/pub/dm/device- ... .00.21.tgz
put it in /usr/src
Code: Select all
cd /usr/src/
tar xvzf device-mapper.1.00.21.tgz
cd linux
patch -p1 < /usr/src/device-mapper.1.00.21/patches/linux-2.4.26-rc1-devmapper-ioctl.patch
set code maturity level option to yes
--return main menu---
OPEN multi-device support
set yes the following:
multiple device driver support
logical volume manager support
device-mapper support
SAVE AND EXIT
Next command will take some times(1 hour ?)
Code: Select all
make dep
make bzImage
make modules
make modules_install
Reboot (you will get some errors with audio just run "magic fix alsa && magic)
Now install LVM2
Code: Select all
emerge lvm2
Code: Select all
dd if=/dev/zero of=/mnt/fatx/f/part1di5 count=4000 bs=1024k
Next
Code: Select all
losetup /dev/loop/1 /mnt/fatx/f/part1di5
Format loops
Code: Select all
mkfs.ext3 -j /dev/loop1
This isn't necessary (i think) just do it
Code: Select all
tune2fs -i0 -c0 /dev/loop1
Use lvm
Code: Select all
pvcreate /dev/loop1
Create volume group
Code: Select all
vgcreate opt /dev/loop1 /dev/loop2 /dev/loop3 /dev/loop4 /dev/loop5
Create logic volume (run "vgdisplay" and check Total PE mine is 4995 use yours)
Code: Select all
lvcreate -l4995 -noptfs opt
mkfs.ext3 -j /dev/opt/optfs
Create a script and update boot sequence
Code: Select all
mkdir /mnt/raidone
cd /etc/init.d
nano loopback
Code: Select all
#!/sbin/runscript
start() {
ebegin "Attaching loopback filesystem for LVM partition"
losetup /dev/loop/1 /mnt/fatx/f/part1di5
losetup /dev/loop/2 /mnt/fatx/f/part2di5
losetup /dev/loop/3 /mnt/fatx/f/part3di5
losetup /dev/loop/4 /mnt/fatx/f/part4di5
losetup /dev/loop/5 /mnt/fatx/f/part5di5
vgchange -a y opt
mount /dev/opt/optfs /mnt/raidone
}
Save exit
and make loopback executables
Code: Select all
chmod a=+r+w+x loopback
Code: Select all
rc-update -a loopback boot
Reboot and you can access your partition from /mnt/raidone
I hope this will be useful for someone
I'm just a noob so my thanx go to:
http://evms.sourceforge.net/install/
http://www.gentoo.it/handbook/hb_part2_chap5.html
http://www.tldp.org/HOWTO/LVM-HOWTO/
This was really useful
http://xbox-linux.sourceforge.net/cgi-b ... Partitions
Feedbacks and corrections appreciated
Bye
P.S. If you have a kernel from 2.4.22 to 2.4.29 this tutorial should work
If you have a 2.6 kernel you don't need need to patch.