Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have tried to find the solution for many days but I couldn't find one. All are posted about auto mount a share folder that come from Window. But my case the backup drive is located on Ubuntu 12.04 desktop and I would like to have my drive (/dev/sda3) mount at boot time then auto share that drive for accessing from Window users. Could you please help me!

share|improve this question
Take a look at My answer Here for Auto mounting, and then look at Mount Windows Shares Permanently – Mitch Jun 9 '13 at 8:26

I divide it into two parts:

1). Mount the drive at boot time:
    * sudo vi /etc/fstab
    * then add this line:  /dev/sda3    /media/lnxBackUp  ext4  users,user      0  0
      In my case, sda3 is the drive that I would like to mount and ext4 is the partition of sda3.

2). Install samba server:
    * sudo apt-get install samba
    * sudo vi /etc/samba/smb.conf
      then edit its config file by adding these information at the end of the page:
          writable = yes
          path = /media/lnxBackUp
          guest ok = yes
          create mask = 0777
          comment = Backup drive
          directory mask = 0777
    * Create a folder in /media
    * sudo mkdir /medir/lnxBackUp
    * sudo mount -a

Now, you can access a drive shared (lnxBackUp) from Window.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.