Overclock.net › How To's › Howto Moving Your Existing Nix Install To A New Pc Or Drive Using Gparted
Featured Sponsors
Related Forum Threads
- Price vs capacity vs speed: decent SSD on the cheap? Last post on 4/26/12 at 2:15pm in SSD
- XMBC NAS WEBserver FTPserver on same box Last post on 5/28/12 at 4:30pm in HTPC
- echo "The `uname` Club" Last post on 5/16/13 at 11:07am in Linux, Unix
Related Articles
-
How to change the Ubuntu GUI
Edited on 9/29/12
- How to install Ubuntu
Edited on 9/23/12- How To Install Archlinux The Easy Quick And Dirt Way
Edited on 5/8/13- Install and Configure a basic LAMP server in Ubuntu 11.10
Edited on 11/21/11- Install Nvidia Drivers in Ubuntu 11.04 & 11.10
Edited on 11/24/11 More ›Topics Discussed
- topicLinux Desktop
Alphabetical Article List
Howto Moving Your Existing Nix Install To A New Pc Or Drive Using Gparted
By: jrl1357This is a guide on one of the easiest ways of moving one *nix install to one disk from another, or, if you can move one of the disks, from computer to computer.
1. Connect both drives to ONE computer. Then boot off a live disk/usb with a live OS compatible with the filesystems on your current install(s). If you have a mixed *BSD/Solaris and Linux system, you may have to use two live OSes for either one, I would say PC-BSD for UFS/UFS2 and ZFS, any Linux live disk for Ext{1,2,3,4}/BtrFS/XFS/etc.
2. Install (if not already there) GParted on the live OS and launch it.
3. On the old disk, copy a partition. as shown:
4. Then use the menu in the top right to change disks to your new disks. Paste the partition there, by right clicking on the empty drive.
5. Repeat 4. until all partitions are copied. you can ignore copying efisys and bios_boot partitions if you use GPT, but remember to create a new one on the new disk if you plan on being able to boot from it. For for organization sake I suggest doing this from beginning onwards.
6. Now, all of your data is over, but grub hasn't been installed to the MBR/efisys/bios_boot. so, chroot time. NOTE= these next steps can also be used to recover an over written grub bootloader , minis the fstab step.
first you will need to mount all of your partitions, again not including efisys/biosboot. Become root and then start with /Code:su -Code:mount /dev/sdXx /mnt
replace the Xx with the number of the disk and the number of the partition. both of these should be listed in GParted.
Then, mount any other partitionsCode:mount /dev/sdXx /mnt/{home, boot, etc.}
after this change to that directoryCode:cd /mnt
then run these commands, one line at a time.Code:mount -t proc proc proc/ mount -t sysfs sys sys/ mount -o bind /dev dev/ mount -t devpts pts dev/pts/
Now to move back into your install,Code:chroot . /bin/bash
7. Update your fstab.
*in the chroot*Code:nano /etc/fstab
now, in a different terminal of the live OS run this:Code:ls -lF /dev/disk/by-uuid/
now, write the UUIDs of the new disks partitions into your fstab inside the chroot. alternately, you could run nano /mnt/etc/fstab and edit them from there, both should work. make sure to use the correct partition UUIDs for the right mount points, it's quite impossible to mount your home partition as root.
8. Now inside the chroot do the actual installing of grub.Code:grub-install /dev/sdX
again, replace X with the drive number. HOWEVER, I highly suggest not putting a partition number as this requires a different way of booting that is harder to setup and not recommended, called blocklisting.
now, last step:Code:update-grub
9. reboot, make sure bios is pointed at the right drive and enjoy!
POSSIBLE PROBLEMS: The only one I ran into was that everything in /home was owned by root, a simple change running any file manager as root. Also, in some OSes grub is called on by grub2, so update-grub would be update-grub2 etc. ran into that with F17. If anyone notices any problems with this please post.Overclock.net › How To's › Howto Moving Your Existing Nix Install To A New Pc Or Drive Using Gparted - How to install Ubuntu
Currently, there are 1666 Active Users
(542 Members and 1124 Guests)
Recent Discussions
- › GTX 480 SLI on 750 watts 14 seconds ago
- › [diy.pconline.com.cn] Intel Core i5 4670k first test 24 seconds ago
- › [PROBLEM] Windows 8 and Ubuntu 13.04 Dual Boot 37 seconds ago
- › The Cooler Master 690 Club 39 seconds ago
- › Going from a 240 to a 480 Rad 43 seconds ago
- › [Official] Delidded Club 47 seconds ago
- › [Various] GTX 780 Reviews 1 minute ago
- › Corsair Obsidian 650D Mid-Tower 1 minute ago
- › Computer shutting off after roughly 20-30 seconds. 2 minutes ago
- › Help cool my GPU's please? 2 minutes ago
View: New Posts | All Discussions
Recent Reviews
- › Zowie Gear Evo EC2 by trick4krg
- › Noctua NF-F12 PWM by krsboss
- › ENERMAX Maxrevo EMR1500EWT 1500W Power Supply by RavageTheEarth
- › Ione Scorpius M10 USB Mechanical Keyswitch Keyboard by unexpectedly
- › HP L2105tm Black 21.5" Swivel & Tilt Adjustable Full HD... by unexpectedly
- › Razer BlackWidow Ultimate Stealth Edition by unexpectedly
- › Cooler Master Hyper N520 CPU Cooler 92mm 1800rpm 1 X Sleeve Bearing... by unexpectedly
- › TX-521 black micro ATX computer case by unexpectedly
- › Thermaltake Commander Series VN40006W2N Computer Case by unexpectedly
- › CORSAIR Dominator Platinum 16GB (4 x 4GB) 240-Pin DDR3 SDRAM DDR3... by TLHarrell
View: More Reviews
New Articles
- › METRO 2033 STARTUP CRASH FIX WORKS by xiangelo
- › Why are DNS Servers Important? How to make... by exzacklyright
- › Titanium Backup Guide For Newbies by exzacklyright
- › How to install ADB (Android Debug Bridge) by exzacklyright
- › How to take ownership of a file, folder, or... by exzacklyright
- › How to disable the open file security warning... by exzacklyright
- › Clean and Make a USB Bootable Flash Drive for... by exzacklyright
- › Efficiency Trials by dava4444
- › How on EARTH Do I Build a Computer??... by dava4444
- › How to rip a Windows 7/8 Image using WinPE4.0... by RagingCain
View: New Articles | All Articles
Home | Reviews | Forums | Articles | My Profile
About Overclock.net | Join the Community | Advertise | Contact Us | All Staff
© 2013 Shogun Interactive Development Overclock.net is powered by Huddler Tech | FAQ | Support | Privacy | ToS | DMCA | Site Map
About Overclock.net | Join the Community | Advertise | Contact Us | All Staff
© 2013 Shogun Interactive Development Overclock.net is powered by Huddler Tech | FAQ | Support | Privacy | ToS | DMCA | Site Map
Comments (2)