Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Swap Around HDD (Solved)

Message
Author
User avatar
Krissharm
Forum Novice
Forum  Novice
Posts: 97
Joined: Mon Feb 26, 2018 7:53 pm

Swap Around HDD (Solved)

#1 Post by Krissharm » Sat May 26, 2018 6:18 pm

Hi All
Not sure this is a specific MX thing, more of a general linux thing that I can't seem to get an answer on. Hope that someone here might know what i'm talking about.

I had a my OS installed on a SATA SSD that replaced the old disk. But it occurred to me that was also an msata slot. So I installed a similar sized msata ssd in the machine, used DD to copy the orignal disk over to the new one. Then changed the boot order in the bios to the new drive. So far so good. MX is so very clever with this stuff.
However my original drive now needs me to enter the root password to mount it now at every boot. I have reformatted the drive but the problem persists. I assume there is an entry somewhere I need to add in that the drive can be mounted at boot?
Last edited by Krissharm on Mon May 28, 2018 12:40 am, edited 1 time in total.
Primary HP Omen 15-ax009na, i5-6300HQ+NVIDIA GTX 950 Running MX17 64 bit.
Secondary Thinkpad x220 12GB ssd msata & ssd sata drive MX17 64 bit
Light child duties Thinkpad R51 MX17/Windows XP 32bit with forcepae and IDE to SATA + Kingston SSD.

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 9382
Joined: Sun Dec 16, 2007 1:17 pm

Re: Swap Around HDD

#2 Post by dolphin_oracle » Sat May 26, 2018 6:19 pm

Krissharm wrote:
Sat May 26, 2018 6:18 pm
Hi All
Not sure this is a specific MX thing, more of a general linux thing that I can't seem to get an answer on. Hope that someone here might know what i'm talking about.

I had a my OS installed on a SATA SSD that replaced the old disk. But it occurred to me that was also an msata slot. So I installed a similar sized msata ssd in the machine, used DD to copy the orignal disk over to the new one. Then changed the boot order in the bios to the new drive. So far so good. MX is so very clever with this stuff.
However my original drive now needs me to enter the root password to mount it now at every boot. I have reformatted the drive but the problem persists. I assume there is an entry somewhere I need to add in that the drive can be mounted at boot?
I use disk-manager to set up my auto mounts. it will add entries to your fstab.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-17
lenovo s21e & 100s - antiX-17, MX17(live-usb)
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1707
Joined: Wed Apr 11, 2018 5:09 pm

Re: Swap Around HDD

#3 Post by fehlix » Sat May 26, 2018 6:30 pm

Krissharm wrote:
Sat May 26, 2018 6:18 pm
I have reformatted the drive but the problem persists.
Reformated the whole drive or only the partions ?
If you do a dd-copy from one hd/sd onto another you have also copied over the UUID of old the partitions, which will certainly will make a lot of trouble, if you leave both within the computer. You need either take on HD/SD out or remove/wipe all partions from one HD to create new partitions with new UUID's. Easiest to use Gparted to empty the disk in question!
As an expert you could assign new UUID/PUUID individually.
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
Krissharm
Forum Novice
Forum  Novice
Posts: 97
Joined: Mon Feb 26, 2018 7:53 pm

Re: Swap Around HDD

#4 Post by Krissharm » Sat May 26, 2018 6:33 pm

dolphin_oracle wrote:
Sat May 26, 2018 6:19 pm
Krissharm wrote:
Sat May 26, 2018 6:18 pm
Hi All
Not sure this is a specific MX thing, more of a general linux thing that I can't seem to get an answer on. Hope that someone here might know what i'm talking about.

I had a my OS installed on a SATA SSD that replaced the old disk. But it occurred to me that was also an msata slot. So I installed a similar sized msata ssd in the machine, used DD to copy the orignal disk over to the new one. Then changed the boot order in the bios to the new drive. So far so good. MX is so very clever with this stuff.
However my original drive now needs me to enter the root password to mount it now at every boot. I have reformatted the drive but the problem persists. I assume there is an entry somewhere I need to add in that the drive can be mounted at boot?
I use disk-manager to set up my auto mounts. it will add entries to your fstab.
I looked there - but I couldn't see an answer. I'll have another look. Thanks
Primary HP Omen 15-ax009na, i5-6300HQ+NVIDIA GTX 950 Running MX17 64 bit.
Secondary Thinkpad x220 12GB ssd msata & ssd sata drive MX17 64 bit
Light child duties Thinkpad R51 MX17/Windows XP 32bit with forcepae and IDE to SATA + Kingston SSD.

User avatar
Krissharm
Forum Novice
Forum  Novice
Posts: 97
Joined: Mon Feb 26, 2018 7:53 pm

Re: Swap Around HDD

#5 Post by Krissharm » Sat May 26, 2018 6:35 pm

fehlix wrote:
Sat May 26, 2018 6:30 pm
Krissharm wrote:
Sat May 26, 2018 6:18 pm
I have reformatted the drive but the problem persists.
Reformated the whole drive or only the partions ?
If you do a dd-copy from one hd/sd onto another you have also copied over the UUID of old the partitions, which will certainly will make a lot of trouble, if you leave both within the computer. You need either take on HD/SD out or remove/wipe all partions from one HD to create new partitions with new UUID's. Easiest to use Gparted to empty the disk in question!
As an expert you could assign new UUID/PUUID individually.
I formatted the original drive.
So the OS was still live and is still live on the mstata device, the sata is now blank.
Primary HP Omen 15-ax009na, i5-6300HQ+NVIDIA GTX 950 Running MX17 64 bit.
Secondary Thinkpad x220 12GB ssd msata & ssd sata drive MX17 64 bit
Light child duties Thinkpad R51 MX17/Windows XP 32bit with forcepae and IDE to SATA + Kingston SSD.

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1707
Joined: Wed Apr 11, 2018 5:09 pm

Re: Swap Around HDD

#6 Post by fehlix » Sat May 26, 2018 6:43 pm

Krissharm wrote:
Sat May 26, 2018 6:35 pm
I formatted the original drive.
I didn't made it clear enough. You cannot format a drive! You can only format a partition! Better remove all partions an create new ones,
so you are sure you get new UUID's. But if you already got new uuid's than that might not be the cause of your problem
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
Richard
Posts: 2069
Joined: Fri Dec 12, 2008 10:31 am

Re: Swap Around HDD

#7 Post by Richard » Sat May 26, 2018 6:45 pm

Gparted offers to change the UUID of a partition so you don't have to reformat.
MX171: Lenovo T430: Intel DualCore i5-3320M, 8 GB RAM, 4.18.7-antix.1-amd64-smp, 119GB SSD
MX171: AA1-ZG5/EeePC-1005HA: DualCore N270, 1 GB RAM, 4.9.126-antix.1-686-smp-pae, 150GB HDD
Doublecmd84, LibO61, Dropbx, PMoon, CherryT,Vbox. LinuxCounter #208633

User avatar
Krissharm
Forum Novice
Forum  Novice
Posts: 97
Joined: Mon Feb 26, 2018 7:53 pm

Re: Swap Around HDD

#8 Post by Krissharm » Sat May 26, 2018 6:54 pm

Sorry - I am clearly confusing myself.

Ok so the matching UUID is the cause of my problem?

So I need to use gparted to create a new partition(S)? That should solve it.

Thank you all.
Primary HP Omen 15-ax009na, i5-6300HQ+NVIDIA GTX 950 Running MX17 64 bit.
Secondary Thinkpad x220 12GB ssd msata & ssd sata drive MX17 64 bit
Light child duties Thinkpad R51 MX17/Windows XP 32bit with forcepae and IDE to SATA + Kingston SSD.

User avatar
penguin
Forum Regular
Forum Regular
Posts: 261
Joined: Wed Jan 04, 2017 3:15 pm

Re: Swap Around HDD

#9 Post by penguin » Sun May 27, 2018 4:00 am

easy way to change UUID by terminal:

suppose that old UUID was: 9f4b67b5-8a7f-4c49-b1da-76c2a4040aa5
suppose that partition is: sdb3

you can change UUID on terminal :

if your sdb3 is ext4,typing on terminal as follow :
sudo tune2fs /dev/sdb3 -U 9f4b67b5-8a7f-4c49-b1da-76c2a4040aa5
if your sdbe is btfrs,typing on terminal as follow :
sudo btrfstune -U 9f4b67b5-8a7f-4c49-b1da-76c2a4040aa5 /dev/sdb3
I am not sure that if you can change UUID of a running Linux, but if so , start your laptop by a bootable Linux usb/cd or by a second Linux (if you have another one installed on your laptop).

Hope it helps.

P.S.
I have a spare part on my SD Card (12GB) and I have installed Manjaro on it.Because I experiment a lot, I used qt5-fsarchiver to backup Manjaro, installed on this sdb3 partition. When I decide to test another Linux distro on this 12 GB space , i need to format it. To come back to Manjaro , simply I use qt5-fsarchiver to have it back.....and above described lines to change UUID. For sure I can use dd command that also copies UUID, but dd command will requires much more space for backup file.

User avatar
stsoh
Forum Regular
Forum Regular
Posts: 393
Joined: Sun Aug 20, 2017 10:11 am

Re: Swap Around HDD

#10 Post by stsoh » Sun May 27, 2018 4:59 am

rather than creating swap partition on ssd, use zswap n zram.
https://mxlinux.org/wiki/other/zram

oops, mistook subject.
MX-17.1_x64 Horizon, G41M-P33 Combo(MS-7592), Pentium E5400 (min/max: 1203/2700 MHz), 8Gb RAM (800 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.

Post Reply

Return to “Hardware /Configuration”