Sorry you've gone so long without a reply...here's my general suggestions.
Set everything up in the Linode Manager
- Deploy a distribution
- Create the new disk images for all the extra partitions you want in the Linode Manager (LM). These are mine (rather simplistic):
Code:
- home (ext3) 3072 MB
- tmp (ext3) 256 MB
- var (ext3) 2048 MB
- usr (ext3) 1024 MB
- I create a FINNIX Configuration Profile so I can mess with all of my images at one time even if things get messed up.
- Click "Create New Config. Profile" and select "Recovery...Finnix" for the kernel
- Make /dev/xvda "Recovery Finnix"
- Assign each image to some dev path, like /dev/xvda, etc.; do this for all partitions. Mine are:
Code:
- /dev/xvda Recovery - Finnix (iso)
- /dev/xvdb home
- /dev/xvdc tmp
- /dev/xvdd var
- /dev/xvde usr
- /dev/xvdf <Your OS Image>
- For Uncompressed initrd image, select Finnix
- Add the partitions to your OS deployment (replace as you see fit, just make sure you know where everything is at), by clicking your profile from the LM Dashboard. Use the drop downs.
Code:
- /dev/xvda <Your OS Image>
- /dev/xvdb home
- /dev/xvdc usr
- /dev/xvdd var
- /dev/xvde tmp
- /dev/xvdf swap
- Boot your Finnix profile
Then you'll need to move everything from the default deployment of your OS (everything in / partition) onto your partition images.
- Boot your FINNIX profile and connect with LISH from the LM
- First you've got to mount the partitions. These are mine (replace with what you setup above):
Code:
mkdir /mnt/{home,var,usr,root}
mount /dev/xvdd /mnt/var
mount /dev/xvde /mnt/usr
mount /dev/xvdf /mnt/root
- You now have to copy everything from the OS into the partitions. Do this for all of the default OS directories (that aren't empty in a default deployment) that you want on its own partition. Mine:
Code:
cp -a /mnt/root/var/* /mnt/var/
cp -a /mnt/root/usr/* /mnt/usr/
- You now have everything on your new images for the partitions you created in the LM
- You now have to edit your fstab file to tell your Linode it needs to mount these images where you want when it starts up. For my setup (I'm using Debian, might be somewhere else depending on your OS and where you mounted your OS deployment that had everything on it...note: I keep calling that root since you cant just use a /):
Code:
pico /mnt/root/etc/fstab
- Create a line for each partition, making sure the /dev/xvd? corresponds to those you setup in the LM for your OS configuration profile (not the FINNIX profile) and the desired mount point
Code:
proc /proc proc defaults 0 0
/dev/xvda / ext3 defaults,nosuid 0 1
/dev/xvdb /home ext3 defaults,nodev,nosuid,nouser,usrquota,grpquota 0 1
/dev/xvdc /usr ext3 defaults,nodev 0 1
/dev/xvdd /var ext3 defaults,nodev,usrquota,grpquota 0 1
/dev/xvde /tmp ext3 defaults,noexec,nodev,nosuid 0 0
/dev/xvdf none swap sw 0 0
- Boot your OS config profile now to make sure everything works before putting any data on it or making any OS changes
- If it boots right up without a bunch of warnings popping up in the LISH console...you're probably good, but you may want to cd into the mount points of the partitions just to make sure everything got moved correctly
- Setup Linode; install packages, setup sites, have fun, be smart...etc.
Let me know if you have any questions. This is basically what I do and has served me well; it maybe more detailed than you needed, but just wanted it there in case you did.
For things different than mine like options in fstab etc., just search Google and let us know what you find and we'll help you the rest of the way. Good luck...