Create Mount Point
1 Attachment(s)
Installed Mint 21.1, Something else. sda7 has my home files. How do I create mount point /home there?
I can mount my home folder from the command line to the Desktop and open its files. |
You haven't given many details. Did you have some other OS on sda5 before 21.1? If yes, was it mounting sda7 to /home? Please paste input/output here in plain text form from an X terminal from the following commands after mounting sda7 <somewhere> (e.g. /mnt):
|
mint 20.3 was on /dev/sda5. It was it mounting sda7 to /home.
tom@tom-1520:~$ sudo lsblk -f [sudo] password for tom: NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS sda ├─sda1 │ ├─sda5 │ ext4 1.0 1ef880e6-cdbe-4e06-bfa5-3c567cb8b1bd 41G 16% / ├─sda6 │ swap 1 093409f7-f0af-4c8f-a22c-5a3b3816a364 [SWAP] └─sda7 ext4 1.0 9983149b-3a05-462b-96a6-939625e6c7b6 sr0 tom@tom-1520:~$ cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/sda5 during installation UUID=1ef880e6-cdbe-4e06-bfa5-3c567cb8b1bd / ext4 errors=remount-ro 0 1 # swap was on /dev/sda6 during installation UUID=093409f7-f0af-4c8f-a22c-5a3b3816a364 none swap sw 0 0 tom@tom-1520:~$ ls -n ~/ total 36 drwxr-xr-x 2 1000 1000 4096 Jan 14 23:27 Desktop drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Documents drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Downloads drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Music drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Pictures drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Public drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Templates drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Videos drwxrwxr-x 2 1000 1000 4096 Jan 14 22:30 Warpinator tom@tom-1520:~$ ls -n /mnt/.* /mnt/* ls: cannot access '/mnt/*': No such file or directory /mnt/.: total 0 /mnt/..: total 72 lrwxrwxrwx 1 0 0 7 Jan 14 22:09 bin -> usr/bin drwxr-xr-x 3 0 0 4096 Jan 14 22:22 boot drwxr-xr-x 2 0 0 4096 Jan 14 22:19 cdrom drwxr-xr-x 20 0 0 4380 Jan 15 00:43 dev drwxr-xr-x 145 0 0 12288 Jan 14 23:21 etc drwxr-xr-x 3 0 0 4096 Jan 14 22:20 home lrwxrwxrwx 1 0 0 7 Jan 14 22:09 lib -> usr/lib lrwxrwxrwx 1 0 0 9 Jan 14 22:09 lib32 -> usr/lib32 lrwxrwxrwx 1 0 0 9 Jan 14 22:09 lib64 -> usr/lib64 lrwxrwxrwx 1 0 0 10 Jan 14 22:09 libx32 -> usr/libx32 drwx------ 2 0 0 16384 Jan 14 21:59 lost+found drwxr-xr-x 3 0 0 4096 Jan 14 22:35 media drwxr-xr-x 2 0 0 4096 Dec 17 09:08 mnt drwxr-xr-x 2 0 0 4096 Dec 17 09:08 opt dr-xr-xr-x 284 0 0 0 Jan 14 23:16 proc drwx------ 3 0 0 4096 Jan 14 22:22 root drwxr-xr-x 36 0 0 980 Jan 15 00:34 run lrwxrwxrwx 1 0 0 8 Jan 14 22:09 sbin -> usr/sbin drwxr-xr-x 2 0 0 4096 Dec 17 09:08 srv dr-xr-xr-x 13 0 0 0 Jan 14 23:16 sys drwxrwxrwt 16 0 0 4096 Jan 15 00:45 tmp drwxr-xr-x 14 0 0 4096 Dec 17 09:08 usr drwxr-xr-x 11 0 0 4096 Dec 17 09:43 var |
Quote:
|
can't mount /dev/sda7
|
Quote:
|
All my files are available at /mnt
|
Quote:
|
tom@tom-1520:/mnt$ ls -n ~/
total 36 drwxr-xr-x 2 1000 1000 4096 Jan 14 23:27 Desktop drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Documents drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Downloads drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Music drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Pictures drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Public drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Templates drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Videos drwxrwxr-x 2 1000 1000 4096 Jan 14 22:30 Warpinato I presume so. |
We already knew all in ~/ were 1000:1000. Are they, or are they not 1000:1000 on wherever you have succeeded to mount sda7? Have you been saying that you have never managed to mount sda7 anywhere since switching to 21.1?
There are potential booby traps here by not knowing the answer to the issue of numeric owner:group of files on sda7, but to mount it on /home, boot rescue media and use it to edit /etc/fstab to include the following line: Code:
UUID=9983149b-3a05-462b-96a6-939625e6c7b6 /home ext4 defaults 0 2 After the procedure, either from rescue media or via root login, inspect /home/ with ls -l and ls -n to see if your normal username and files are there. If they are, all may be good to go as your normal user. If there are already files you need to keep in your 21.1 homedir, you'll need to back them up, then after the process of getting sda7 mounted on /home, restore them. [1] to create root login: Code:
sudo passwd root |
Quote:
tom@tom-1520:/mnt/tom$ ls -n ~/ total 36 drwxr-xr-x 2 1000 1000 4096 Jan 14 23:27 Desktop drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Documents drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Downloads drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Music drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Pictures drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Public drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Templates drwxr-xr-x 2 1000 1000 4096 Jan 14 22:30 Videos drwxrwxr-x 2 1000 1000 4096 Jan 14 22:30 Warpinator tom@tom-1520 |
What do mount | grep sda and df report?
|
tom@tom-1520:~$ mount | grep sda
/dev/sda5 on / type ext4 (rw,relatime,errors=remount-ro) /dev/sda7 on /mnt type ext4 (rw,relatime) tom@tom-1520:~$ df Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 400848 1500 399348 1% /run /dev/sda5 54671512 8839164 43022704 18% / tmpfs 2004236 0 2004236 0% /dev/shm tmpfs 5120 4 5116 1% /run/lock tmpfs 400844 1668 399176 1% /run/user/1000 /dev/sda7 661891928 334687724 293555412 54% /mnt tom@tom-1520:~$ |
Sorry about all the bother. During the install I did not choose ext4 for sda7 thinking it was already ext4 and selecting ext4 would wipe my files.
|
That shows you managed to mount sda7 on /mnt. :) So, now you can examine /mnt with ls -n /mnt to see if its content is all 1000:1000. If it is, make the /etc/fstab edit and then then reboot.
|
All times are GMT -5. The time now is 10:09 PM. |