Access files in Home directory from live mode

RishiC

I have Ubuntu 18.04 installed on my computer. Recently it stopped booting into GUI mode due to low disk space on the HOME directory. For some reason I'm unable to boot it into terminal mode either. The next solution I am trying is to use a Live CD and then delete some files from the HOME folder to free up some space so it can boot into GUI mode again .

How do I access the files in the HOME folder of the Ubuntu which is installed on my comp via the Live Mode ?

vanadium

First, you mount partitions, not folders. If your home folder is on a system partition, you will need to access that system partition in order to access the home folder.

If the volumes are not displayed in the file manager, ready for you to click and have them mounted, then you will need to mount using the terminal. A lot of text follows for something that essentially is very simple. I however also want you to gain some understanding on how it works.

1 Identify your partition

List the partitions with the command sudo blkid. (also sudo fdisk -l can be used). You may see /dev/loop partitions. Ignore these. You are looking for partitions on disks. This will typically start with /dev/sd.. or /dev/nvme.... You will also recognize disk partitions because other information, such as the UUID, the LABEL, the file system (TYPE) etc is provided.

That is all the information you have got. You will need to recognize the partition you need. One important hint is that the partition containing your home folder will most likely be formatted in ext file system format, so you can eliminate any partitions that do not have TYPE="ext4".

Example

$ sudo blkid
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/nvme0n1p1: UUID="CD64-FBDE" TYPE="vfat" PARTUUID="0fjkf6a9-66c8-2d08-be7e-75c8f23d5411"
/dev/nvme0n1p2: UUID="a370dd86-3284-41a6-32f6-a7343cc43886" TYPE="ext4" PARTUUID="2e4d8754-5ceb-401a-ad7d-0349abb54725"
/dev/nvme0n1p3: UUID="ee3a9083-a324-4396-b432-8542f46e85c2" TYPE="ext4" PARTUUID="d59af1dd-fafb-521b-2c33-9563633a8163"
/dev/nvme0n1: PTUUID="7bad0580-36c7-4458-84a2-d54a2f3aadde" PTTYPE="gpt"

I have two partitions formatted as ext4. One will be my home, the other my separate home partition. At least, you will find one if you have a single system partition containing your system and your data. The partition is referred to by the /dev/... entry, but actually is more commonly referred to by its UUID.

2 Mount the partition

Use the mount command, which takes two arguments: the partition identifier (/dev/...) and a folder in the system where you will mount the partition: the mount point. You then be able to access the partition from the mount point.

The folder must exist. Typically, a folder /mnt will exist in a linux system by default. If not, create it first:

sudo mkdir /mnt

Mount a partition with a command such as:

sudo mount /dev/nvme0n1p3

Of course, substitute /dev/nvme0n1p3 by the device names of your system. Now, you will find the contents of the partition under /mnt ("Other Locations, Computer, mnt" in the default Ubuntu file manager).

IF you have multiple partitions, and the one you mounted is not the one you were looking for, then simply unmount it and mount another. Unmounting is done with the umount command. The single argument you need to provide can be the partition, or it can be the folder where the mount has happened:

sudo umount /mnt

Thus, if needed, unmount and explore further. You cannot do harm with these commands.

You are not restricted to mount on /mnt. You can mount on any existing folder in your system.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Copying files from home directory to computer directory

From Dev

I really need to access my files :( from my previous Home directory

From Dev

I really need to access my files :( from my previous Home directory

From Dev

how to access home files from try ubuntu

From Dev

Move Files From Root Directory to another users Home Directory

From Dev

Permissions issue: how can Apache access files in my Home directory?

From Dev

Permissions issue: how can Apache access files in my Home directory?

From Dev

Permissions issue: how can Apache access files in my Home directory?

From Dev

How to redirect apache /var/www to the home directory and access all the directories and files in my home directory?

From Dev

How to redirect apache /var/www to the home directory and access all the directories and files in my home directory?

From Dev

No write access to $HOME directory

From Dev

Access home directory on Linux from macOS over NFS

From Dev

Proper way to checkout home directory .rc files from a git repo?

From Dev

How to Access Ubuntu files, while running from live cd

From Dev

How to access and edit GRUB files on SSD from Live CD?

From Dev

How to Access Ubuntu files, while running from live cd

From Dev

How do I list the public files in my home directory? (mode 777)

From Dev

Allowing apache access to a subdirectory in a home directory without access to the home directory

From Dev

Allowing apache access to a subdirectory in a home directory without access to the home directory

From Dev

PHP Nginx server - access files from home not web root

From Dev

Kiosk Mode - How do I get all files from a directory?

From Dev

Upstart PID files in home directory?

From Dev

List files in your home directory

From Dev

Upstart PID files in home directory?

From Dev

access all files in a directory

From Dev

Unable to Access files in Directory

From Dev

Access data files from subfolder of current script directory

From Dev

How to access static files from inside Wordpress plugin directory

From Dev

Deny access to files in root directory from invalid users with php

Related Related

  1. 1

    Copying files from home directory to computer directory

  2. 2

    I really need to access my files :( from my previous Home directory

  3. 3

    I really need to access my files :( from my previous Home directory

  4. 4

    how to access home files from try ubuntu

  5. 5

    Move Files From Root Directory to another users Home Directory

  6. 6

    Permissions issue: how can Apache access files in my Home directory?

  7. 7

    Permissions issue: how can Apache access files in my Home directory?

  8. 8

    Permissions issue: how can Apache access files in my Home directory?

  9. 9

    How to redirect apache /var/www to the home directory and access all the directories and files in my home directory?

  10. 10

    How to redirect apache /var/www to the home directory and access all the directories and files in my home directory?

  11. 11

    No write access to $HOME directory

  12. 12

    Access home directory on Linux from macOS over NFS

  13. 13

    Proper way to checkout home directory .rc files from a git repo?

  14. 14

    How to Access Ubuntu files, while running from live cd

  15. 15

    How to access and edit GRUB files on SSD from Live CD?

  16. 16

    How to Access Ubuntu files, while running from live cd

  17. 17

    How do I list the public files in my home directory? (mode 777)

  18. 18

    Allowing apache access to a subdirectory in a home directory without access to the home directory

  19. 19

    Allowing apache access to a subdirectory in a home directory without access to the home directory

  20. 20

    PHP Nginx server - access files from home not web root

  21. 21

    Kiosk Mode - How do I get all files from a directory?

  22. 22

    Upstart PID files in home directory?

  23. 23

    List files in your home directory

  24. 24

    Upstart PID files in home directory?

  25. 25

    access all files in a directory

  26. 26

    Unable to Access files in Directory

  27. 27

    Access data files from subfolder of current script directory

  28. 28

    How to access static files from inside Wordpress plugin directory

  29. 29

    Deny access to files in root directory from invalid users with php

HotTag

Archive