You are Here:
Download Linux Lite 5.6 Final today - See Release Announcements



X Close Ad
X Close Ad
[ SOLVED ] How to edit /etc/fstab to mount a windowsshare permanent

Author (Read 1526 times)

0 Members and 2 Guests are viewing this topic.

How to edit /etc/fstab to mount a windowsshare permanent
« on: April 20, 2021, 04:03:29 PM »
 

llmojo

  • New to Forums
  • *
  • 6
    Posts
  • Country: de
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.4 64bit
Hello everyone

On my windows10-PC with virtualbox and LinuxLite5.4. I've created a share on windows. Now i try to follow the instruction at this link
https://wiki.ubuntu.com/MountWindowsSharesPermanently. In Linuxlite the entire samba package is installed.
So i've created a mountpoint /media/win_share, a credentials-file /homelinuxlite/.smbcredentials with username, password and domain and edit /ect/fstab.

the entry in /etc/fstab looks like this right now:
Code: [Select]
//xxx.xxx.xx.x/win_share /media/win_share cifs credentials=/home/linuxlite/.smbcredentials,noauto,uid=1000,gid=1000,dir_mode=0700,file_mode=1000,iocharset=utf8,sec=ntlm 0 0
a. Does th options have an order? or are they random?

the win_share appears on the desktop but unmounted. when i click on it i got an error massage
Quote
mount: /media/win_share:this operation can be excuted by user root

b. where is my failure ?

ps:I am new to Linux and thank you for your help
Last Edit: April 25, 2021, 02:53:08 AM by llmojo
 


Re: How to edit /etc/fstab to mount a windowsshare permanent
« Reply #1 on: April 20, 2021, 04:42:05 PM »
 

Moltke

  • Platinum Level Poster
  • **********
  • 1033
    Posts
  • Country: ve
  • Reputation: 120
  • Linux Lite Member

  • Linux Lite: 5.0 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 5.x
Hello everyone

On my windows10-PC with virtualbox and LinuxLite5.4.

There's something I don't understand, is Windows 10 a VM? Is Linux Lite a VM? Which is which? Are you dual-booting Win10-Linux Lite? I ask because the link clearly states that
Quote
The shares might be hosted on a Windows computer/server, or on a Linux/UNIX server running Samba.
Meaning there have to be two computers for this to work or one must be a VM which is always running.

Quote
I've created a share on windows. Now i try to follow the instruction at this link
https://wiki.ubuntu.com/MountWindowsSharesPermanently. In Linuxlite the entire samba package is installed.
So i've created a mountpoint /media/win_share, a credentials-file /homelinuxlite/.smbcredentials with username, password and domain and edit /ect/fstab.

I think using /etc/samba/smb.conf let you do this, unless you're trying to do something special here.

Quote
the entry in /etc/fstab looks like this right now:
Code: [Select]
//xxx.xxx.xx.x/win_share /media/win_share cifs credentials=/home/linuxlite/.smbcredentials,noauto,uid=1000,gid=1000,dir_mode=0700,file_mode=1000,iocharset=utf8,sec=ntlm 0 0
a. Does th options have an order? or are they random?

the win_share appears on the desktop but unmounted. when i click on it i got an error massage
Quote
mount: /media/win_share:this operation can be excuted by user root

b. where is my failure ?

ps:I am new to Linux and thank you for your help

You need to either become root or use sudo to mount the drive
Code: [Select]
sudo mount /media/win_share
Without each others help there ain't no hope for us :)
Need a translation service? https://www.deepl.com/es/translator
 

Re: How to edit /etc/fstab to mount a windowsshare permanent
« Reply #2 on: April 20, 2021, 05:05:08 PM »
 

llmojo

  • New to Forums
  • *
  • 6
    Posts
  • Country: de
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.4 64bit
@Moltke sorry for the confision


On the windows-PC i installed Oracle VirtualBox6.1
On Virtualbox i installed Linux Lite5.4
On the windows-PC i created a share -> D:/win_share
So LinuxLite(VM) can only run when the windows-PC runs as well, i think
If am right the Windows PC is the server

this works ->
Code: [Select]
sudo mount /media/win_share
But how can i access this folder with out sudo?

I hope this is easier to understand
 

Re: How to edit /etc/fstab to mount a windowsshare permanent
« Reply #3 on: April 20, 2021, 08:09:55 PM »
 

Moltke

  • Platinum Level Poster
  • **********
  • 1033
    Posts
  • Country: ve
  • Reputation: 120
  • Linux Lite Member

  • Linux Lite: 5.0 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 5.x
@Moltke sorry for the confision


On the windows-PC i installed Oracle VirtualBox6.1
On Virtualbox i installed Linux Lite5.4
On the windows-PC i created a share -> D:/win_share
So LinuxLite(VM) can only run when the windows-PC runs as well, i think
If am right the Windows PC is the server

I hope this is easier to understand

Thanks, that clarifies a few things. What is it exactly you want to achieve with that? If Linux Lite is a VM running in virtualbox which is installed in Windows 10, then it'll be available only and when the Windows PC is on. In virtualbox, there's a feature to create a share folder, and you don't need to go through all this problem, it's a matter of ticking a box to make it permanent. In virtualization jargon, Windows 10 is the host OS and Linux the guest OS. Did you install virtualbox guest additions and VBox extension pack? https://www.virtualbox.org/wiki/Downloads These 2 packages will improve the way you interact with your virtual machines. Here are a couple of articles you might want to read
https://helpdeskgeek.com/virtualization/virtualbox-share-folder-host-guest/
https://www.virtualbox.org/manual/ch04.html#additions-linux

It seems to me that what you're trying to do is something that can be done with two computers.

Quote
this works ->
Code: [Select]
sudo mount /media/win_share
But how can i access this folder with out sudo?


I don't think you can. It might work if you make the mountpoint in /home, so instead of /media/win_share is $HOME/win_share, but I suggest that you carefully read the article on how to create a share folder in virtualbox first, and you'll find that it is actually easier than you thought, and certainly a lot way easier than this.
Without each others help there ain't no hope for us :)
Need a translation service? https://www.deepl.com/es/translator
 

Re: How to edit /etc/fstab to mount a windowsshare permanent
« Reply #4 on: April 20, 2021, 10:56:16 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1617
    Posts
  • Country: us
  • Reputation: 272
  • Linux Lite Member

  • Linux Lite: 5.6 64bit

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
@llmojo  I 2nd @Moltke says, once you have the additions installed in VB there is a shared folder you can add/mount.
If I recall once you have it added/shared you can add just like any mount in fstab without added permissions..

Not in front of mine but, more sharing host to guest.
Else the host and guest will need to he on same network, its own ip same subnet, firewalls, perms etc...

If you're trying a real world scenario, I'd do a 2nd guest, have the guests on same network and configure like 2 nodes vs. host & guest...
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.6 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.6 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: How to edit /etc/fstab to mount a windowsshare permanent
« Reply #5 on: April 21, 2021, 05:28:47 AM »
 

llmojo

  • New to Forums
  • *
  • 6
    Posts
  • Country: de
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.4 64bit
ok thank you for your help

I've installed the guestaddisions at LinuxLite(VM) and use the win_share as sharedfolder. it works fine
 

Re: How to edit /etc/fstab to mount a windowsshare permanent
« Reply #6 on: April 21, 2021, 10:43:51 AM »
 

Moltke

  • Platinum Level Poster
  • **********
  • 1033
    Posts
  • Country: ve
  • Reputation: 120
  • Linux Lite Member

  • Linux Lite: 5.0 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 5.x
ok thank you for your help

I've installed the guestaddisions at LinuxLite(VM) and use the win_share as sharedfolder. it works fine

Easy enough, wasn't it? Glad you solved it. Remember to mark your thread as solved, to do that:

In the first post of your thread, click in Modify and where it reads Select Prefix click in the drop-down menu and select Solved



Then click in Save to apply changes.



You might want to read here to learn a few other procedures and guidelines https://www.linuxliteos.com/forums/introductions/forum-posting-guidelines/
Without each others help there ain't no hope for us :)
Need a translation service? https://www.deepl.com/es/translator
 


Tags:
 

X Close Ad
X Close Ad

Download Linux Lite 5.6 Final today - See Release Announcements