Am 17.11.2010 22:59, schrieb James: > Hello, > > I have a ~250 gig sata disk I want to migrate to a 2T > Sata disk. This is simple, but, I have a few caveats. > [...] > > Device Boot Start End Blocks Id System > /dev/sda1 * 1 6405 51448131 7 HPFS/NTFS > /dev/sda2 6406 6431 208845 83 Linux > /dev/sda3 6432 14080 61440592+ 83 Linux > /dev/sda4 14081 38913 199471072+ 5 Extended > /dev/sda5 14081 14861 6273351 82 Linux swap / Solaris > /dev/sda6 14862 26335 92164873+ 83 Linux > /dev/sda7 26336 38913 101032753+ 83 Linux
[...] > <needs formatting and file systems installed> > > OK, so I format using fdisk <no big deal> > <new disk will just have /(200G), swap, boot(250M) and one > bit fat /usr/local (1.8T) > My advice: dd if=/dev/sda of=/dev/sdb bs=65535 You end up with a lot of empty space on the end your disk but it is easy to extend your extended partition with GParted (or whatever) and then add new logical partitions. Alternative: Migrate to LVM for everything not needed for booting. > > Ok now I was going to use same reiserfs < no big deal> > unless I can use reiser4? good idea? <discuss-caveats> > I guess you are a die-hard reiserfs user? You should really try ext4. The perceived performance is much better than with ext3. Additional advantages: Its development continues. With the next big patch, it will scale well on multiple CPU cores.[1] > OK now I want the new fstab to use disklabels > <old dog learning new trick here> > > like this simple (few) partition scheme: > /dev/sdb3 200G 52G 42G 55% / > udev 10M 224K 9.8M 3% /dev > /dev/sdb1 250M 47M 189M 20% /boot > /dev/sdb4 1800G 125G 12G 92% /usr/local > > Current <non disklabel fstab> > > /dev/sda1 /boot reiserfs defaults 1 2 > /dev/sda2 none swap sw 0 0 > /dev/sda3 / reiserfs defaults 0 1 > /dev/sda4 /usr/local reiserfs defaults 0 1 > /dev/cdrom /mnt/cdrom auto noauto,ro,user 0 0 > /dev/fd0 /mnt/floppy vfat noauto,user,umask=000 0 0 > shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 > none /proc proc defaults 0 0 > > so what does new fstab using disk labels look like? > Just replace "/dev/sdb1" with "LABEL=boot", for example. Of course, your file system needs to have that label. For Ext* you set it with `tune2fs -L $label`, `e2label $label` or `mke2fs -L $label`. For reiserfs, it should be similar. Another approach (less readable but arguably less easy to break) is using "UUID=...". You can find these out with dumpe2fs. I guess something similar exists for reiserfs, as well. > Last, just dd it over like this? > dd if=/dev/sda of=/dev/sdb bs=32768 > see above. Hope this helps, Florian Philipp [1] http://thunk.org/tytso/blog/2010/11/01/i-have-the-money-shot-for-my-lca-presentation/
signature.asc
Description: OpenPGP digital signature