So, I finally got a whopping 300GB disk at Fry's. Special offer, 80 bucks. Not too bad. Here's how I transfered the system to the new disk:
- partition the new disk like the old one, just bigger /opt (where I keep the movies)
- initialize the file systems (mke2fs -j /dev/hdc1, mkfs.jfs /dev/hdc6, mkswap /dev/hdc5) and mount them under /mnt/
- Use cpio to transfer the files from the root file system: find / -xdev -print0 | cpio -pa0V /mnt/hdc1
- Use a plain cp to copy the video files (which cpio doesn't like due to huge file sizes): cp -av /opt/* /mnt/hdc6/
- Install grub: grub-install --root-directory:/mnt/hdc1 /dev/hdc
ok, the latter didn't work ("/dev/hdc does not have any corresponding BIOS drive"). wtf? after searching quite a bit I ended up editing /mnt/hdc1/boot/grub/devices.map. adding
(hd1) /dev/hdc
finally, that worked. and I can boot from that drive when it is hda.
No comments:
Post a Comment