[SOLVED] How to install a .deb file (Steam) to a partition of my choice (data partition)
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to install a .deb file (Steam) to a partition of my choice (data partition)
I am using xubuntu and have a separate /home directory plus a 'data' directory which is much larger than /home and on the same drive. The 'data' partition is formatted NTFS to allow Windows 10 access.
I believe a default install of a .deb file installs to your /home folder.
I want to install a Steam .deb package (from the Steam web site), which is a minimum of 21GB to the 'data' directory and am unsure how to achieve this.
'Googling' makes me even more unsure! Can anyone assist?
The .deb file will install to the / directory if you have not made separate partitions for the /lib and /bin directories where most of the files should be installed depending on where the installer wants to put them they do not install to the /home. The chances of it working on NTFS partition once extracted using the ar command to do it are slim, the permissions of the files will be all messed up and the directories on that partition will need to included in the path for it to even have hope in hell of it working. In short the idea is not a good one and the .deb should be installed to the / directory as intended.
The .deb file will install to the / directory if you have not made separate partitions for the /lib and /bin directories where most of the files should be installed depending on where the installer wants to put them they do not install to the /home. The chances of it working on NTFS partition once extracted using the ar command to do it are slim, the permissions of the files will be all messed up and the directories on that partition will need to included in the path for it to even have hope in hell of it working. In short the idea is not a good one and the .deb should be installed to the / directory as intended.
Thank you for that quick response.
This is the first time I have installed such a large .deb file and have come unstuck because I usually make a / partition of 35GB so this takes up most of it.
Is it possible to enlarge the /home partition, taking space from the data partition which comes after it on the SSD?
Edit: I think that question is more suitable for a separate thread.
Distribution: Ubuntu based stuff for the most part
Posts: 1,173
Rep:
I think the Steam app will create a .steam directory in your home, so you can make a steam folder in your larger partition, then create a link from that to ~/.steam that the installer will use.
This is the first time I have installed such a large .deb file and have come unstuck because I usually make a / partition of 35GB so this takes up most of it.
Is it possible to enlarge the /home partition, taking space from the data partition which comes after it on the SSD?
Edit: I think that question is more suitable for a separate thread.
Maybe a new thread, but let's not get rigid here. The trick is to back up first. You don't have to back up /home (although I view a usb backup disk as necessary) but you do need to back up data. Then you can delete /data, enlarge home, and recreate /data in reduced space. If anything goes wrong, you'll need /data and every partition onwards to the end of the disk from your backup. You really should have a full system backup because Murphy's Law dictates disks fail in proportion to the amount of irreplaceable stuff they are storing.
I think the Steam app will create a .steam directory in your home, so you can make a steam folder in your larger partition, then create a link from that to ~/.steam that the installer will use.
That looks like I could do that. Can you confirm:
1. Make a directory /.steam in the data partition.
2. Create a symlink /.steam in /home directory
3. Install the steam .deb in the normal way?
I have made symlinks in the past so should be able to do that.
However, I am concerned from reading above posts about NTFS permissions etc.
Maybe a new thread, but let's not get rigid here. The trick is to back up first. You don't have to back up /home (although I view a usb backup disk as necessary) but you do need to back up data. Then you can delete /data, enlarge home, and recreate /data in reduced space. If anything goes wrong, you'll need /data and every partition onwards to the end of the disk from your backup. You really should have a full system backup because Murphy's Law dictates disks fail in proportion to the amount of irreplaceable stuff they are storing.
As this is a new fresh install, I have no problem in deleting the data directory which contains little.
You will see that I have a separate /home directory, so, to enlarge / directory I would have to move /home and I have never done that so have no idea how.
Edit. I had already made another thread specific to the moving problem and have an answer - shrinking /home to the right, expanding / and then expanding /home into the temporary free free data space. If it works remake data directory.
You can do this with GParted. Either delete the data partition and move home to the right and then move / to the right.
Or you can simply move the data partition to the right to decrease it's size and then move home and / to the right. In GParted use the Partition tab and select the Move/Resize option.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.