You are not logged in.

#1 2021-11-24 21:23:18

Qohen
Member
Registered: 2021-11-24
Posts: 3

[SOLVED] How to move installed applications to another drive?

Hi, I want to move installed applications from my SSD which has Arch Linux installed on it, to my HDD that I want to use as my applications drive.
Is it possible to move apps just by copy pasting them from first drive to the second one?
Will the operation leave some data behind? Because I want to save some space on my SSD.
Thanks in advance!

Last edited by Qohen (2021-11-25 14:41:09)

Offline

#2 2021-11-24 22:03:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 25,907
Website

Re: [SOLVED] How to move installed applications to another drive?

What do you mean by "apps".  You cannot selectively move the contents of /usr/bin nor can you move any files managed by pacman without creating a complete mess.

You can, however, change where different parts of your filesystem are stored.  You could move the root partition to the HDD and keep the home partition (assuming you have one) on the SSD - however this would be the opposite of what would often be best for performance.

How much space is being used up?  How much is left?  How are your drives partitioned?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2021-11-24 22:22:24

Qohen
Member
Registered: 2021-11-24
Posts: 3

Re: [SOLVED] How to move installed applications to another drive?

Since I'm a windows user by default, I'll try explaining with windows terms: I want to move installation folder of a program to another drive.
Output of

 fdisk -l 
Disk /dev/nvme0n1: 119.24 GiB, 128035676160 bytes, 250069680 sectors
Disk model: SAMSUNG MZVLW128HEGR-000L2              
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 47CF7EE2-3E02-5740-9E4E-3E105DB5FE87

Device             Start       End   Sectors  Size Type
/dev/nvme0n1p1      2048    206847    204800  100M EFI System
/dev/nvme0n1p2    206848    239615     32768   16M Microsoft reserved
/dev/nvme0n1p3    239616 187774069 187534454 89.4G Microsoft basic data
/dev/nvme0n1p4 187774976 188823551   1048576  512M EFI System
/dev/nvme0n1p5 188823552 193017855   4194304    2G Linux swap
/dev/nvme0n1p6 193017856 250069646  57051791 27.2G Linux filesystem


Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WDC WD10SPZX-24Z
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: FFAA51FA-BAA3-4BF7-85CA-680CD4F0674B

Device          Start        End    Sectors   Size Type
/dev/sda1        2048 1848664063 1848662016 881.5G Microsoft basic data
/dev/sda2  1848664064 1953523711  104859648    50G Linux filesystem


Disk /dev/loop0: 4 KiB, 4096 bytes, 8 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 62.2 MiB, 65224704 bytes, 127392 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 99.44 MiB, 104267776 bytes, 203648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 164.76 MiB, 172761088 bytes, 337424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop6: 55.49 MiB, 58183680 bytes, 113640 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 65.21 MiB, 68378624 bytes, 133552 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 55.5 MiB, 58191872 bytes, 113656 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop7: 42.17 MiB, 44220416 bytes, 86368 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop8: 32.44 MiB, 34017280 bytes, 66440 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop9: 109.07 MiB, 114372608 bytes, 223384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Offline

#4 2021-11-25 08:20:49

seth
Member
Registered: 2012-09-03
Posts: 25,113

Re: [SOLVED] How to move installed applications to another drive?

folder of a program

…is not a thing.

Afaics you've a 27GB partition and a 50GB partition - you could make the former the root partition and the latter your /home partition as Trilby suggested.

Offline

#5 2021-11-25 11:17:13

Qohen
Member
Registered: 2021-11-24
Posts: 3

Re: [SOLVED] How to move installed applications to another drive?

I see thank you. Playing with disks can be a tricky business for the uninformed like me (talking from experience, 3 faulty installations :') ) So I'll do more reading on it in later time.
I decided to do a clean re install and increase more space in that process.
Thanks for the answers.

Offline

#6 2021-11-25 14:33:22

seth
Member
Registered: 2012-09-03
Posts: 25,113

Re: [SOLVED] How to move installed applications to another drive?

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Fwwi, you can bind-mount isloated directories that contain a lot of data (eg. textures and sounds for a game etc) but except for the appimage/snap/docker container failures, "programs" are not like on windows shipped as local blocks.

Offline

Board footer

Powered by FluxBB