[SOLVED]need to mount sda drive

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
billwillow
Level 2
Level 2
Posts: 61
Joined: Sun Aug 23, 2015 8:52 pm

Re: need to mount sda drive

Post by billwillow »

I do not have a /home folder on sdb.

lsblk -f

NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda
└─sda1
ext4 fe8b2f81-e555-4b71-92a2-cd1902d83659 869.2G 0% /media/bil
sdb
├─sdb1
│ vfat 0458-CE14 504.9M 1% /boot/efi
└─sdb2
ext4 2a75ad10-2e9a-4f81-95af-83b1dd63c2f3 204.3G 5% /


ls -l /home
total 4
drwxr-xr-x 20 bill bill 4096 Jun 3 08:58 bill

Thanks!
linux-rox
Level 10
Level 10
Posts: 3334
Joined: Sun Jul 19, 2020 9:17 pm

Re: need to mount sda drive

Post by linux-rox »

billwillow wrote: Sun Jun 04, 2023 11:17 am I do not have a /home folder on sdb.
But you do seem to have one on sdb2. :wink: More to the point, have you copied the bill sub-folder to sda1?

If so, the next thing we need to see is fstab. Report the output of cat /etc/fstab. Please use code tags.
billwillow
Level 2
Level 2
Posts: 61
Joined: Sun Aug 23, 2015 8:52 pm

Re: need to mount sda drive

Post by billwillow »

I did create a blank /bill

Code: Select all

sda      8:0    0 931.5G  0 disk 
└─sda1   8:1    0 931.5G  0 part /media/bill/fe8b2f81-e555-4b71-92a2-cd1902d83659
My fstabs:

Code: Select all

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/sdb2 during installation
UUID=2a75ad10-2e9a-4f81-95af-83b1dd63c2f3 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sdb1 during installation
UUID=0458-CE14  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0
linux-rox
Level 10
Level 10
Posts: 3334
Joined: Sun Jul 19, 2020 9:17 pm

Re: need to mount sda drive

Post by linux-rox »

billwillow wrote: Sun Jun 04, 2023 12:48 pm I did create a blank /bill
Sorry, but I'm going to have to withdraw from the thread, as we seem to be talking past each other.
If someone else wants to jump in and try to complete the project, please feel free.
mikeflan
Level 17
Level 17
Posts: 7159
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: need to mount sda drive

Post by mikeflan »

Bill,

You want sda to load automatically. Start Disks, highlight the largest partition on sda and then do this:
.
disks.png
billwillow
Level 2
Level 2
Posts: 61
Joined: Sun Aug 23, 2015 8:52 pm

Re: need to mount sda drive

Post by billwillow »

Thanks Mike. I had already done a manual mount and the above would not work.

However (fingers crossed) I think I have sda partioned and mounted as MYDATA with a link to this drive on my desktop. Before I restore my backup data to sda I have a few questions:

If I move data to MYDATA what happens to the Home folder on my desktop ? Both MYDATA and the current Home folder will contain similar subfolders: Documents, Music, etc.

And my thanks to all for your patience in helping me go get my head around this !
mikeflan
Level 17
Level 17
Posts: 7159
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: need to mount sda drive

Post by mikeflan »

Nope, I'm not going off the mount topic. Start another topic if you have some other question to address. Personally I don't know what you are trying to do with that MYDATA / Home stuff, so I can't answer your undecipherable questions.

Regarding mount - take a copy /etc/fstab. Place the copy in a folder. Run through my procedure. Take another copy of /etc/fstab. Compare the two and post the difference here, along with a much better explanation of "would not work". I may not be able to fix this mount problem, but I can almost guarantee that somebody here can fix that.
billwillow
Level 2
Level 2
Posts: 61
Joined: Sun Aug 23, 2015 8:52 pm

Re: need to mount sda drive

Post by billwillow »

On your procedure at #2, which should I choose from the drop down menu ?
mikeflan
Level 17
Level 17
Posts: 7159
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: need to mount sda drive

Post by mikeflan »

Edit Mount Options
billwillow
Level 2
Level 2
Posts: 61
Joined: Sun Aug 23, 2015 8:52 pm

Re: need to mount sda drive

Post by billwillow »

Before Disk edit (fstab)

Code: Select all

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb2 during installation
UUID=2a75ad10-2e9a-4f81-95af-83b1dd63c2f3 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sdb1 during installation
UUID=0458-CE14  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0
After Disk edit (fstab.Save

Code: Select all

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb2 during installation
UUID=2a75ad10-2e9a-4f81-95af-83b1dd63c2f3 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sdb1 during installation
UUID=0458-CE14  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0
/dev/disk/by-uuid/f976163b-1ea5-4202-b057-045761d729d1 /mnt/f976163b-1ea5-4202-b057-045761d729d1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
billwillow
Level 2
Level 2
Posts: 61
Joined: Sun Aug 23, 2015 8:52 pm

Re: need to mount sda drive

Post by billwillow »

Ok. The difference is the addition of this line of code, allowing mount at boot up automatically:

Code: Select all

/dev/disk/by-uuid/f976163b-1ea5-4202-b057-045761d729d1 /mnt/f976163b-1ea5-4202-b057-045761d729d1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
The chage did remove my permissons on the drive but restored them with:

Code: Select all

sudo chown -R bill:bill /mnt/f976163b-1ea5-4202-b057-045761d729d1
So my next step is to restore by backed up home folder (from an external drive) to sda at above mount point.

If I run into problems I will post under a new topic.
Locked

Return to “Installation & Boot”