I put myself a small NAS together, to experiment a bit with raid. I have a working RAID 5 array using mdadm
under Debian 6 ("squeeze").
I installed GRUB and Debian to an USB stick, since I was not aware one can actually boot from a raid, so this seemed like the best option. The stick has two partitions on it, an ext3 for /
and swap. The raid uses GPT and only has one big ext4 partition on it.
Unfortunately the USB stick is quite slow, at least slower than I expected. It would be awesome if I could get rid of it or only use it for booting purposes. Can I just copy my system folders (i.e. everything under /
, except for the mount point of the raid) and reinstall GRUB somehow? I'd prefer to avoid rebuilding and -formatting the array, since there's already quite a bit of data on it.
I found a related question, but the answers are quite mixed and I'm not sure whether I can go that route.
My current plan is to just copy /
to the array and reconfigure GRUB (using dpkg-reconfigure grub-pc
) on the stick. Could that work? I'd update fstab
too of course, but I'm not aware of any other needed changes.
grub-install /dev/sdx; update-grub
instead of re-configuring the package though. – jordanm Apr 06 '13 at 00:48