Moving the root partition to a new drive

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
pegasis
Level 4
Level 4
Posts: 470
Joined: Fri Dec 26, 2014 12:56 pm

Re: Moving the root partition to a new drive

Post by pegasis »

the Hd in question is in a hot dock

ran the command via my attached laptop

Hd in question is the 5TB:

Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 60.0GB 60.0GB primary ext4 boot
3 60.0GB 983GB 923GB primary ext4
2 983GB 1000GB 17.1GB extended
5 983GB 1000GB 17.1GB logical linux-swap(v1)


Model: ST5000DM 003-2FH18L (scsi)
Disk /dev/sdb: 5001GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 60.0GB 60.0GB primary ext4 boot
3 60.0GB 1981GB 1921GB primary ext4
User avatar
austin.texas
Level 20
Level 20
Posts: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Moving the root partition to a new drive

Post by austin.texas »

You can see from the result of sudo parted --list that your 5TB drive is msdos, not GPT
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
pegasis
Level 4
Level 4
Posts: 470
Joined: Fri Dec 26, 2014 12:56 pm

Re: Moving the root partition to a new drive

Post by pegasis »

Ok

so i will start over from here: Open a terminal and run the command sudo blkid to determine the UUID numbers using root partition, correct?
User avatar
austin.texas
Level 20
Level 20
Posts: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Moving the root partition to a new drive

Post by austin.texas »

The steps outlined in this tutorial would work for you.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
pegasis
Level 4
Level 4
Posts: 470
Joined: Fri Dec 26, 2014 12:56 pm

Re: Moving the root partition to a new drive

Post by pegasis »

getting boot error:

no such device: old uuid is shown?
hd1 cannot get C/H/S values
you need to load the kernal first?


this really should not be this difficult
pegasis
Level 4
Level 4
Posts: 470
Joined: Fri Dec 26, 2014 12:56 pm

Re: Moving the root partition to a new drive

Post by pegasis »

I don't even know where to begin??

If I start here; viewtopic.php?f=42&t=223015

what partition gets linux sda3??

I want to set up gpt, then install linux, move home to separate partition, and then copy the Home partition with data from my old HD

is this possible to do, copy a partition??
pegasis
Level 4
Level 4
Posts: 470
Joined: Fri Dec 26, 2014 12:56 pm

Re: Moving the root partition to a new drive

Post by pegasis »

on master drive (cloned from 2TB) I have updated fstab, boot takes minutes?

how can I fix this

I am really at my wits end with computers
pegasis
Level 4
Level 4
Posts: 470
Joined: Fri Dec 26, 2014 12:56 pm

Re: Moving the root partition to a new drive

Post by pegasis »

I fixed the slow boot

now clonzilla only sees one of the 2 drives in am attempted clone process

computers are POS
pegasis
Level 4
Level 4
Posts: 470
Joined: Fri Dec 26, 2014 12:56 pm

Re: Moving the root partition to a new drive

Post by pegasis »

I have followed this except I did NOT install linux
I copied the existing partitions

https://www.tecmint.com/install-linux-mint-17/

so I have 5 partitions, only only 3 showing in FSTAB?

the first 2 for grub, and EFI are not listed???

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=fa752849-db4d-4c8b-9e3d-33dcd654d93a / ext4 errors=remoun$

UUID=1f100a74-dbfb-439d-8415-3e08930eea1e /home ext4 defaults $


UUID=48bca054-b643-465f-b716-f303110c4791 none swap sw $

How can I fix this so the drive is correct and will boot?
pegasis
Level 4
Level 4
Posts: 470
Joined: Fri Dec 26, 2014 12:56 pm

Re: Moving the root partition to a new drive

Post by pegasis »

this did not work

I have tried 10 times and at least 5 different ways

does anyone have experience converting mbr to GOT on linux????

I can't understand why this is SOOOOOOOOOOOOOO difficult
User avatar
austin.texas
Level 20
Level 20
Posts: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Moving the root partition to a new drive

Post by austin.texas »

Please start a new thread with your support questions.
Include the result of:

Code: Select all

inxi -Fxzo
Creating a new partition table on your new hard drive (or SSD) is pretty simple. Boot the live Mint. Open GParted > Device menu > New partition table.
This is mentioned in the first post in this thread.
The first post also says:
Forum rules:
Please don't add support questions to tutorials, start your own thread in the appropriate sub-forum instead.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
mr.travo

Re: Moving the root partition to a new drive

Post by mr.travo »

Thank you austin.texas for writing this and helping everyone out! I bookmarked this in my browser (in both computers) and plan on using your instructions this week when I install my SSD!

It's users like you that keep everyone going and learning! Thank you for passing along your experience and taking the time to share this. :D
Post Reply

Return to “Tutorials”