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 2332 Active Users
(807 Members and 1525 Guests)
Recent Discussions
- › [Official] Screenshot of Your Games Thread 11 seconds ago
- › EK-FC7950 _not_ compatible with certain 7950 "Reference" cards? 15 seconds ago
- › [Official] The Korean PLS Monitor Club (Qnix & X-Star) 45 seconds ago
- › Radeon 7970, GTX 680 or 770? 57 seconds ago
- › [Sponsored] My TH-10 magnum to the Bitspower's exhibition booth @... 1 minute ago
- › [BUILDLOG] : The Big Orange Monster - Caselabs TH10 1 minute ago
- › if size and $$ weren't an issue, which rad size would you get? 1 minute ago
- › Club for those with beastly mATX/ITX rigs. 1 minute ago
- › [Official] The League of Legends Club 1 minute ago
- › [Official] Battlefield 4 Information & Discussion Thread 2 minutes ago
View: New Posts | All Discussions
Recent Reviews
- › Anker Laser Gaming Mouse with 2000DPI, 7 Programmable Button, 5... by Totally Dubbed
- › Anker Wireless Mouse, 3 Adjustable DPI Levels, 2000 DPI, 6 Buttons,... by Totally Dubbed
- › 16GB G.Skill DDR3 PC3-17000 RipjawsZ Series for Intel X79... by nleksan
- › Intel Core i5-3570K 3.4GHz LGA1155 by Tex1954
- › The Incredible Adventures of Van Helsing by iARDAs
- › Skyworth 39E780U UHD tv by maarten12100
- › S.T.R.I.K.E. 7 Gaming Keyboard for PC by hatlesschimp
- › Corsair Obsidian 350D by Oliver1234
- › CrossOver BLACK TUNE 2735AMG IPS LED by RSMJR87
- › Samsung 840 PRO Series MZ-7PD256 256GB 2.5-inch SSD by Drpillz624
View: More Reviews
New Articles
- › Fireproof safes or Burglar-resistant safes by fireproofSafes
- › ASUS ROG Poseidon by Amar
- › ASUS Transformer Book Trio : a weird Combination by Amar
- › FreeBSD HTPC and Home Server by CaptainBlame
- › Can AMD hardware in New Consoles leverage... by Amar
- › The Future of PC Gaming .. by dava4444
- › GTX 780 Overclocking! by Amar
- › 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
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)