LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-02-2021, 09:04 AM   #1
makem
Member
 
Registered: Nov 2013
Posts: 209

Rep: Reputation: Disabled
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?
 
Old 06-02-2021, 09:45 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
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.
 
Old 06-02-2021, 09:47 AM   #3
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,141

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Also I'm not sure linux executables will work from an NTFS partition. They lack the permissions abilities that linux filesystems have.
 
Old 06-02-2021, 09:56 AM   #4
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by HappyTux View Post
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.

Last edited by makem; 06-02-2021 at 10:20 AM.
 
Old 06-02-2021, 10:32 AM   #5
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,173

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
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.
 
Old 06-02-2021, 10:38 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by makem View Post
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.
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.
 
Old 06-02-2021, 10:44 AM   #7
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by uteck View Post
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.
 
Old 06-02-2021, 10:58 AM   #8
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
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.

This is my current layout:

https://www.dropbox.com/s/cp4w79y26o...ayout.png?dl=0

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.

Last edited by makem; 06-02-2021 at 11:02 AM.
 
Old 06-02-2021, 05:54 PM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
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.
 
Old 06-03-2021, 07:08 AM   #10
makem
Member
 
Registered: Nov 2013
Posts: 209

Original Poster
Rep: Reputation: Disabled
Thankyou all. I now have my answer.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: New stable Steam Client up, fixing Steam Survey and NFS mounts on Linux, plus other Steam news LXer Syndicated Linux News 0 01-23-2020 10:24 PM
How do you check for a list of .deb dependencies without installing the deb file arthur_makowah Linux - Newbie 3 07-23-2014 11:04 PM
Steam on Wine, cannot login,"Steam is having trouble connecting to the Steam servers" cantab Linux - Games 1 06-19-2010 06:32 AM
How can I run this .deb file: install_flash_player_10_linux.deb abefroman Linux - Desktop 1 11-04-2009 10:02 AM
Can apt4rpm use deb repositories or install .deb packages? raylpc Linux - General 0 08-18-2003 01:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration