Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Internal drive partitions listed as removable

Hybrid View

  1. #1
    Join Date
    Sep 2020
    Beans
    7

    Question Internal drive partitions listed as removable

    I just installed Lubuntu today on an HP Stream laptop. At the drives setup page there was no option to "Erase disk" so I manually partitioned swap, UEFI, and the remaining space as an ext4 mounted to /. I finished the install. While ejecting a USB drive that I used to transfer an image, I noticed that my UEFI partition and main partition were listed as "Removable Media" in the taskbar widget. Is there any way to set the drives to non-removable in Terminal so they don't appear in the widget?

    This is my first experience installing any Linux distro.

  2. #2
    Join Date
    Aug 2017
    Location
    melbourne, au
    Beans
    736
    Distro
    Lubuntu Development Release

    Re: Internal drive partitions listed as removable

    What release of Lubuntu are you talking about?

    The last four releases of Lubuntu use the LXQt desktop, and installs by default don't install swap by default; most users don't use it using Lubuntu as it's light & fast on modern hardware, though for others like myself with older or less powerful hardware swap is of huge benefit. Swapfiles though are usually used over swap partitions though as easily changed (enabled/disabled/erased/created).

    Releases prior to the last four, or Lubuntu 18.04 LTS & before used swap partition however, however even 18.04 could use swapfiles too.

    Your question as to removal, I'd like to know your desktop & release details (legacy? modern?)

    I'll provide some Lubuntu links too, in case of benefit

    Lubuntu Manual - https://manual.lubuntu.me/stable/
    Lubuntu Links page - https://lubuntu.me/%20links/
    Lubuntu's main page - https://lubuntu.me/

    If I knew your release, I'd probably have also provided the release notes, as some release notes do cover clues to get around conditions where the "Erase disk and install*" doesn't show.

  3. #3
    Join Date
    Sep 2020
    Beans
    7

    Re: Internal drive partitions listed as removable

    I'm running 20.04, the newest LTR as far as I know. The computer I'm running it on is new, but low spec. I installed swap in the partition setup because I figured it'd lighten the load on 4 gigs of RAM. Swap is the only of the three partitions that doesn't show up.

    The desktop is stock 20.04.

  4. #4
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    5,534
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Internal drive partitions listed as removable

    The EFI and root partitions shouldn't be listed as removable storage (but may be listed as such while in the live session). To get some data, try
    Code:
    sudo blkid
    cat /etc/fstab
    findmnt
    Run those commands in a terminal and paste the output in the forum in code tags, like I did above.
    Last edited by Impavidus; September 26th, 2020 at 04:36 PM. Reason: fintmnt -> findmnt

  5. #5
    Join Date
    Sep 2020
    Beans
    7

    Re: Internal drive partitions listed as removable

    Quote Originally Posted by Impavidus View Post
    Run those commands in a terminal and paste the output in the forum in code tags, like I did above.

    Code:
    /dev/mmcblk0p1: UUID="6f4ff2e9-1301-42f2-a5e1-a2e2d1986931" TYPE="swap" PARTUUID="5c35c774-b345-d14a-8323-32d2e69b02aa"
    /dev/mmcblk0p2: UUID="3A51-BAA6" TYPE="vfat" PARTUUID="9d974070-ebe7-a445-a4a1-81098e315869"
    /dev/mmcblk0p3: UUID="d9128124-7c5a-4d79-b247-3391b515eb8f" TYPE="ext4" PARTUUID="beed86cf-e23a-c641-8073-341b88b10940"

    Should I consider reinstalling or tackle each issue? Other than these, the machine works fine.
    Last edited by argon-1511; September 26th, 2020 at 05:35 PM.

  6. #6
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    21,626
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Internal drive partitions listed as removable

    There is a setting in the fstab for each mount that can make them not show up in any GVFS-type GUI program. I don't know if Qt supports that or not. It would start with x- ..... in the fstab. Need to see the actual fstab file to be more specific.

    BTW, Lubuntu is NOT "stock ubuntu". It is "stock Lubuntu" which is very different from a GUI perspective. Some libraries are different too, because Gnome isn't the preferred toolkit, Qt is. That shifts all sorts of things over to the KDE way of working. To lesson RAM use, best to choose the KDE options.

    Hibernation is out of favor for a number of reasons. Standby is preferred. Neither should be used if you care about security without every specific limitations. For example, never use standby or hibernation when moving a system between buildings.

  7. #7
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    5,534
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Internal drive partitions listed as removable

    And the other two commands? Note that I fixed a typo in one of them. I never see any mounts that I configured in fstab show up in any GUI tools (in particular thunar), just setting mount options to defaults (more or less).

    Hibernation is a different issue and I suggest one issue per thread, as it's unrelated. But hibernation only works if you first enable it and it's indeed out of favour, so maybe you don't want it fixed at all.

  8. #8
    Join Date
    Sep 2020
    Beans
    7

    Re: Internal drive partitions listed as removable

    If I were to reinstall, what would I change in the partition manager to resolve the ejectable drive issue?

    This isn't my main computer, so wiping and reinstalling is relatively easy.

  9. #9
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    21,626
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Internal drive partitions listed as removable

    I think it is probably a bug in whatever program is being used by Lubuntu to display this stuff. Is that Thunar?
    I say this assuming the fstab file shown is the correct file with the correct options.

    There is an x- .... set of comments (really fake options) that gvfs, udisks* and other gnome tools use to decide some behaviors. Those tools should use different configuration files for their needs, not bastardize the fstab file. I don't know where to get the full list of these abominations. Perhaps udisks manpage or buried somewhere in the gnome documentation at freedesktop.org?

    Searching ....
    Google found this list of programs: https://access.redhat.com/documentat...ools-xdg-utils
    My 16.04 systems don't have any gvfs-*. The mount one seems related to https://developer.gnome.org/gio/stable/gio.html 16.04 doesn't have any gio at all either.

    But on 20.04, there are a bunch of both commands.
    When I run, gvfs-mount --list I get a deprecation warning saying to use "gio mount" instead, with some output that isn't anything like what I'd expect needed to mount stuff.

    When I run gio mount --list, notice it is gio as the command, mount as an option with --list as the 2nd option, the same output, which doesn't contain anything useful to put into a normal "mount" command, is shown.
    gio mount --list --detail does show details for each available volume. Three of the items are
    1. is_removable=1 and
    2. is_media_removable=1
    3. can_eject=1

    It is shown for a fake CDROM, but not for other devices. Those both have
    1. is_removable=0
    2. is_media_removable=0
    3. can_eject=0

    which is expected. Perhaps Thunar is seeing these toggles on your system? You might run gio mount --list --detail to see. I have no idea how those are being set. My BIOS does have settings for hot-swap devices, but I don't have 20.04 running on any physical hardware that would have the gio command, so I cannot check.

    Thanks for this simple question. It got me too look much deeper into gvfs and gio subsystems. Didn't find an answer, but perhaps a lead for an answer?

  10. #10
    Join Date
    Aug 2017
    Location
    melbourne, au
    Beans
    736
    Distro
    Lubuntu Development Release

    Re: Internal drive partitions listed as removable

    Quote Originally Posted by TheFu View Post
    I think it is probably a bug in whatever program is being used by Lubuntu to display this stuff. Is that Thunar?
    I say this assuming the fstab file shown is the correct file with the correct options.
    FYI only

    Lubuntu/LXDE used `pcmanfm` to handle the desktop/GUI & as a file manager
    Lubuntu /LXQt uses `pcmanfm-qt` to handle the desktop/GUI & as a file manager
    Panel is handled by `lxqt-panel` (but conf file is the ~same in live & installed systems)

    On installed systems I wouldn't expect any / or /boot/efi (ESP) partitions to be ejectable, however they are on a live system prior to installation. I don't know the key/trigger that makes it show on live and not on installed systems, that maybe the fix.

Page 1 of 2 12 LastLast

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
  •