Score:0

Moving Ubuntu from old HDD to SDD revisited

me flag

I am trying to do what was asked - and apparently solved - in a question from about 10 years ago:

How to move ubuntu to an ssd

I want to move an existing, working Ubuntu 20.04 install across to a new SSD and not use the old HDD following the move.

I created a partition on the new SSD using gparted, and booted from a Live DVD as suggested in the top answer in the thread above.

However, when I attempt to mount the new drives (which show up as sda and sdb when I type lsblk at the terminal prompt), the following occurs:

sudo mount /dev/sda

mount: /dev/sda: can't find in /etc/fstab

The same result occurred with

sudo mount /media/sda
mount: /media/sda: can't find in /etc/fstab

and if I try to mount a partition rather than the whole drive:

sudo mount /media/sda1
mount: /dev/sda1: can't find in /etc/fstab.

So, I know it's a numpty question, but what am I doing wrong? In a way I'm not surprised by these error messages, because the Live DVD Ubuntu presumably doesn't know anything about the drives on the machine or their partitions in /etc/fstab, since I haven't told it. But where do I go from here?

I also tried the Nautilus based method described here how to access hard drive files from live cd but Nautilus does not show devices (as reported in one of the comments on that page).

Do I need to edit fstab? Strange that none of the 10-years-ago guys mentioned that, if it is the case.

Many thanks,

Eric Ubuntu 20.04 Dell Precision T1650

ChanganAuto avatar
us flag
Reinstalling is BY FAR the best option. Do NOT follow that old answer, it isn't applicable to new UEFI based machines.
Score:1
ca flag

Migrating Linux can be done with clonezilla. Works like a charm.

Now mount require at least two params to achieve what your are trying to do:

mount what where

if you do not tell mount "where", it goes to look at /etc/fstab to find where. So your line could be:

sudo mount /dev/sda1 /mnt

That will mount the partition at /mnt. One important thing. /dev/sda is the disk. /dev/sda(n) is the partition.

Eric_L avatar
me flag
Thank you - it was a fundamental misunderstanding on my part about how to supply arguments to mount.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.