Results 1 to 9 of 9

Thread: Newbie question about partitions

  1. #1
    Join Date
    Oct 2015
    Beans
    16
    Distro
    Ubuntu Studio 16.04 Xenial Xerus

    Newbie question about partitions

    Hi there,

    This was the first time I installed Linux entirely from an Ubuntu disc and wanted to create 2 partitions (on previous installs of mine the PC either had them already separated or I did not make any changes), one for the system and another one for the important files that I would like to keep, even when I reinstall the system with clearing everything on the partition.

    I did kind of mess things up. I created one for the system which works as I wanted it to do, and the other one seems to be invisible. I'm pretty sure I was the one who set things up incorrectly for such intention.

    Here is a screenshot of GParted, showing my partitions:



    When I install a game on Steam, it asks which partition I'd like to use, however, I can't access the partition with the File manager simply to put some files on it, which I would like to.

    So basically I just want that other partition to be available in the file manager so I can access it and put some of my important files on it. How could I make this work?

    Thanks in advance!

  2. #2
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    2,023
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Newbie question about partitions

    the partition is there, but it is not mounted. did you create it during the installation of Ubuntu? i guess not.

    normally the installation will set it up by formatting it and configuring it to be mounted. now you have 2 options. you can format it and edit files to make it be mounted at boot -or- you can do the install again and select /dev/sda5 during the volume setup stage.
    Mask wearer, Social distancer, System Administrator, Programmer, Linux advocate, Command Line user, Ham radio operator (KA9WGN/8, tech), Photographer (hobby), occasional tweetXer

  3. #3
    Join Date
    Oct 2015
    Beans
    16
    Distro
    Ubuntu Studio 16.04 Xenial Xerus

    Re: Newbie question about partitions

    Quote Originally Posted by Skaperen View Post
    the partition is there, but it is not mounted. did you create it during the installation of Ubuntu? i guess not.

    normally the installation will set it up by formatting it and configuring it to be mounted. now you have 2 options. you can format it and edit files to make it be mounted at boot -or- you can do the install again and select /dev/sda5 during the volume setup stage.
    I actually did create it during the installation, and it says it's technically mounted (Edit: I can only Unmount it):


  4. #4
    Join Date
    Dec 2008
    Location
    Cleveland, OH, USA
    Beans
    489
    Distro
    Ubuntu Studio Development Release

    Re: Newbie question about partitions

    I could very well be wrong, but I'm thinking it could be your mount point? Is there a reason you have it set to /usr/local? Not something I've seen often in my minimal experience.
    Be sure to mark your thread [SOLVED] if your issue has been fixed!
    How to get answers as quickly as possible | Wireless Issue? | How to use 'Code' tags

  5. #5
    Join Date
    Oct 2015
    Beans
    16
    Distro
    Ubuntu Studio 16.04 Xenial Xerus

    Re: Newbie question about partitions

    Quote Originally Posted by SlidingHorn View Post
    I could very well be wrong, but I'm thinking it could be your mount point? Is there a reason you have it set to /usr/local? Not something I've seen often in my minimal experience.
    When I created it, it did not let me choose "/" as the mount point because it's already in use, so I had to pick another one and as a newbie I could not really see the difference between the choices. I guess it was the wrong one. Any way to change it now?

  6. #6
    Join Date
    Dec 2008
    Location
    Cleveland, OH, USA
    Beans
    489
    Distro
    Ubuntu Studio Development Release

    Re: Newbie question about partitions

    The /usr... path isn't writable by normal users, as it's owned by root. This would probably cause a lot of issues.

    A more likely mount point would be /home. A lot of people like to create a /home partition so that their personal configuration files, photos are separate from the system files.

    In your case, you could have / (for your system files) and /home (for your users' personal files). Again, I could be wrong, but you'll likely have to do a new install once the partitions are fixed.

    The naming structure may be a little confusing, but directories like /var, /lib, /usr, /etc, etc. are all system directories. By default, when you create your first user, its "home" directory will be /home/<user>. In there, you'll already have directories for "Downloads," "Documents," "Music," etc. That's (/home) where USERS will store their personal iems, so that's where you should mount your partition.
    Last edited by SlidingHorn; December 6th, 2015 at 12:13 PM. Reason: Clarification
    Be sure to mark your thread [SOLVED] if your issue has been fixed!
    How to get answers as quickly as possible | Wireless Issue? | How to use 'Code' tags

  7. #7
    Join Date
    Nov 2011
    Beans
    2,336
    Distro
    Ubuntu

    Re: Newbie question about partitions

    The '/' partition is mandatory. (The only mandatory partition, actually).

    GParted shows /usr/local as the mount point for sda5. Your inability to access /usr/local with the file manager is probably because you, as an ordinary user, lack permission to alter the contents of the /usr/local directory. (/usr/local is owned by root.)

    You've allocated slightly less than half the disk space to /usr/local. That's an unusually large amount for the partition.

    If your goal is to keep important files on a partition that can remain unaltered during a reinstall, your /home directory is the appropriate place for that. You have full rights to do as you please there. You might consider repartitioning to mount your home folder on its own partition. There no need to create a specific partition on which to mount /usr/local, since *all* directories are subordinate to the '/' directory and will be created on the partition where it is mounted if not specifically given their own partition.

    When you do a reinstall, to preserve the contents of your /home folder, choose the "Something Else..." option in the installer's partitioning section and then be sure to indicate that the existing home partition should be mounted on /home but *do not* check the formatting box. The new system will mount that partition on /home but will not format it, leaving its content intact.

  8. #8
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Newbie question about partitions

    Quote Originally Posted by at35z View Post
    ... Any way to change it now?
    Not easily. Everything that is at /usr/local is on the separate partition. This is the data I am referring to
    Code:
    ls -l /usr/local
    total 32K
    drwxr-xr-x 2 root root 4.0K Dec  4 15:57 bin
    drwxr-xr-x 2 root root 4.0K Apr 16  2014 etc
    drwxr-xr-x 2 root root 4.0K Apr 16  2014 games
    drwxr-xr-x 2 root root 4.0K Apr 16  2014 include
    drwxr-xr-x 4 root root 4.0K Apr 16  2014 lib
    lrwxrwxrwx 1 root root    9 Jan  3  2015 man -> share/man
    drwxr-xr-x 2 root root 4.0K Apr 16  2014 sbin
    drwxr-xr-x 7 root root 4.0K Apr 16  2014 share
    drwxr-xr-x 2 root root 4.0K Apr 16  2014 src
    All of the above will have to be temporarily moved to a location the is on /dev//sda1 Something like /usr/temp will work. You will also need to do the same for /home. Maybe /temp/home. Then you can unmount the partition (/dev/sda5) and remount it at /home. Then you make the change persistent by modifying the fstab file line in question by changiing the usr/local entry to /home.

    As you can see this is pretty extensive and you need to use sudo to act as the root user. My advice is to save your personal files on a flash drive and reinstall. It will be quicker and a lot less painful.
    -BAB1

  9. #9
    Join Date
    Oct 2015
    Beans
    16
    Distro
    Ubuntu Studio 16.04 Xenial Xerus

    Re: Newbie question about partitions

    Thanks everyone, you were really informative, I will fix this during another installation.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •