LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-02-2021, 12:30 PM   #1
seannachie
Member
 
Registered: Oct 2011
Location: BFE, Tennessee
Distribution: Debian
Posts: 41

Rep: Reputation: Disabled
Directory structure for a clean install


Due to the looming migraine that is Win11, I've decided that it's past time to return to Linux. I vaguely recall the last time I went through this, I had to manually setup my laptop's HD with directories like home, var, opt, etc. Now I want to install Debian (which I've used before) on my desktop. Do I need to setup those directories manually again? (I want to get rid of windows and use the whole HD). Or does the installer (I'm using the latest stable build) handle these during installation? Or should I let the installer run and input (pw, date/time, etc.) when necessary? My concern is that I've never been sure which folders (other than home) were essential, merely useful, or redundant or worse.
I'd rather install FreeDOS than deal with Win again. My choice would be Slitaz, but there's major concerns with that OS. IMHO, I find Debian to be user-friendly enough that I don't mind sticking with it for a long run.
 
Old 12-02-2021, 03:09 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,669

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
The only essential partition is /(root). A swap partition or file is always recommended but how big depends on how much RAM and how you use your computer etc.

At a minimum I would have a separate /home partition. If you use LVM that would make it easier to move things around but I would keep it simple.
 
Old 12-02-2021, 08:15 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,307
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
I second what michaelk said. A separate /home can make life a lot easier in case you have to reinstall or decide to move to another distro.
 
Old 12-03-2021, 04:02 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,482

Rep: Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485
Quote:
I vaguely recall the last time I went through this, I had to manually setup my laptop's HD with directories like home, var, opt, etc
I don't recall ever having to do that with any Linux system I have used but I would agree with the other members, all you need is . root partition. Everything else is optional and there are a lot of options. Debian is very popular and you should have no problem finding explicitly detailed instructions for installing. Using the machine as a 'personal' computer, a separate 'home' partition is useful as would a separate data partition, 2 common user choices.

I'd suggest checking out the Debian site for details on installing. Does the computer you plan to use have some version of windows? is it a GPT drive? are you familiar with UEFI installs? Check the Debian wiki at the link below.

https://wiki.debian.org/UEFI
 
Old 12-03-2021, 07:17 AM   #5
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,588

Rep: Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542Reputation: 2542

Debian has extensive documentation, including an Installation Guide (also in PDF/TXT format and other languages).

It also has a handbook with an installation chapter showing screenshots of the disk setup process - as can be seen there the default option is to setup a single partition across the whole disk.

My general advice is to stick to defaults unless you have a reason not to, and scan through the install guide before you start (in case it gives you a reason).

 
Old 12-04-2021, 04:33 AM   #6
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Most mainstream Linux have very intuitive installers.
When using the entire drive for the install, I typically let the installer do it's default install.
Although I've not had issues with Expert install and Debian, Fedora has given me headaches when not using it's default LVM setup.
 
Old 12-04-2021, 08:14 AM   #7
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,620
Blog Entries: 40

Rep: Reputation: Disabled
I do not partition anything manually, but make sure that /usr and /home are separate partitions. It can be an advantage to have /var on a partition on its own. But all these manipulations are easy during the installation process.

Keep free space for anything that may arrive later. On the first occasion I use to create a /data partition for ... well. Data.., photos, documents and stuff that I want to handle separately from the files that I move around in /home.

But all that is luxury. The defaults are usually well chosen and described. Especially for Debian.

Last edited by Michael Uplawski; 12-04-2021 at 08:18 AM.
 
1 members found this post helpful.
Old 12-15-2021, 08:52 AM   #8
seannachie
Member
 
Registered: Oct 2011
Location: BFE, Tennessee
Distribution: Debian
Posts: 41

Original Poster
Rep: Reputation: Disabled
### Dealing with offline drama ###

I found a good list of suggestions here:

https://www.howtogeek.com/117435/htg...ure-explained/

As opposed to the original post I was going to write, I found that most of my questions were answered. But now my immediate concern is the swap file. Does the tmp directory handle it, or should I go with a file solution? I recall setting up a swap file, but due to poor instructions how well it worked or if it even worked at all.

Thanks to all for the feedback.
 
Old 12-15-2021, 09:00 AM   #9
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,573

Rep: Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684
Quote:
Originally Posted by seannachie View Post
### Dealing with offline drama ###

I found a good list of suggestions here:

https://www.howtogeek.com/117435/htg...ure-explained/

As opposed to the original post I was going to write, I found that most of my questions were answered. But now my immediate concern is the swap file. Does the tmp directory handle it, or should I go with a file solution? I recall setting up a swap file, but due to poor instructions how well it worked or if it even worked at all.

Thanks to all for the feedback.
There is a performance advantage to using a swap PARTITION, and that is what I recommend for rotational storage. If you have an SSD I would use a file, management is easier when changes are desired if you use a file, and there is little speed difference on SSD. If you have mixed storage, then a partition on rotational media is the better option as long as your ram is adequate.
 
Old 12-15-2021, 09:28 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,669

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
swap is separate from /tmp. Some distributions might have the contents of /tmp deleted on boot or it might be just a temporary filesystem and so you do not want to use it for a swap file location.
Many distributions have it located in the top directory i.e /.

From what I have read there is little performance difference between a swap file or partition these days. It depends on what you do with your computer but for the typical user with lots of memory it will probably not be used much.
 
Old 12-15-2021, 03:18 PM   #11
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 472

Rep: Reputation: 178Reputation: 178
I'd just go with the default install and not worry about it. Works good . If you want a separate /home do it 'after the install' on a separate drive. Set it up at your leisure and then then just map (set mount point) to it with /etc/fstab when ready. That's how I have my R&D machine setup. As said above, then you can replace OSs at any time and then map back over to the other drive and get all your settings/data/whatever back.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Clean $PATH and clean python install iFunction Linux - General 1 10-12-2016 09:09 AM
structure inside a structure in C batman4 Programming 3 09-13-2012 05:52 AM
Convert directory structure from long file names in Linux to DOS 8.3 structure? manorina Linux - Software 5 09-12-2009 09:18 AM
Home Jail Folder Structure like Gobolinux Directory Structure luispt Linux - General 3 07-26-2008 06:46 PM
structure within a structure in C knobby67 Programming 3 03-06-2007 09:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:43 AM.

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