Author Topic: A little help with fstab (SOLVED)  (Read 8427 times)

0 Members and 1 Guest are viewing this topic.

Emegra

  • Guest
Re: A little help with fstab
« Reply #15 on: February 07, 2014, 10:43:07 pm »
ok that's that done :)

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18231
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: A little help with fstab
« Reply #16 on: February 07, 2014, 10:49:28 pm »
Open fstab for editing:
Code: [Select]
sudo gedit /etc/fstab
add a new line at the bottom that reads:-

Code: [Select]
# NAS shares

Then add another line below that that reads

Code: [Select]
//192.168.2.50/family-tree /mnt/NAS/family-tree cifs iocharset=utf8,dir_mode=0777,file_mode=0777 0 0

so the last 2 lines now read

Code: [Select]
# NAS shares
//192.168.2.50/family-tree /mnt/NAS/family-tree cifs iocharset=utf8,dir_mode=0777,file_mode=0777 0 0

SAVE the file.

Open another terminal and run:
Code: [Select]
sudo mount -a
if any errors .. post them here .. if not, navigate to /mnt/NAS/family-tree

Can you see the contents as expected, and can you create a file or folder there ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Emegra

  • Guest
Re: A little help with fstab
« Reply #17 on: February 07, 2014, 10:55:14 pm »
ok that worked I can see all the folders and create and delete a new folder

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18231
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: A little help with fstab
« Reply #18 on: February 07, 2014, 10:59:58 pm »
Open fstab for editing:
Code: [Select]
sudo gedit /etc/fstab
add a single new line at the bottom that reads:-

Code: [Select]
//192.168.2.50/graeme /mnt/NAS/graeme cifs iocharset=utf8,dir_mode=0777,file_mode=0777 0 0

SAVE the file.

Open another terminal and run:
Code: [Select]
sudo mount -a
if any errors .. post them here .. if not, navigate to /mnt/NAS/graeme

Can you see the contents as expected, and can you create a file or folder there ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Emegra

  • Guest
Re: A little help with fstab
« Reply #19 on: February 07, 2014, 11:02:17 pm »
so far so good :)

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18231
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: A little help with fstab
« Reply #20 on: February 07, 2014, 11:03:31 pm »
Open fstab for editing:
Code: [Select]
sudo gedit /etc/fstab
add a single new line at the bottom that reads:-

Code: [Select]
//192.168.2.50/pat /mnt/NAS/pat cifs iocharset=utf8,dir_mode=0777,file_mode=0777 0 0

SAVE the file.

Open another terminal and run:
Code: [Select]
sudo mount -a
if any errors .. post them here .. if not, navigate to /mnt/NAS/pat

Can you see the contents as expected, and can you create a file or folder there ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18231
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: A little help with fstab
« Reply #21 on: February 07, 2014, 11:05:22 pm »
Open fstab for editing:
Code: [Select]
sudo gedit /etc/fstab
add a single new line at the bottom that reads:-

Code: [Select]
//192.168.2.50/multimedia /mnt/NAS/multimedia cifs iocharset=utf8,dir_mode=0777,file_mode=0777 0 0

SAVE the file.

Open another terminal and run:
Code: [Select]
sudo mount -a
if any errors .. post them here .. if not, navigate to /mnt/NAS/multimedia

Can you see the contents as expected, and can you create a file or folder there ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18231
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: A little help with fstab
« Reply #22 on: February 07, 2014, 11:06:30 pm »
Open fstab for editing:
Code: [Select]
sudo gedit /etc/fstab
add a single new line at the bottom that reads:-

Code: [Select]
//192.168.2.50/movies /mnt/NAS/movies cifs iocharset=utf8,dir_mode=0777,file_mode=0777 0 0

SAVE the file.

Open another terminal and run:
Code: [Select]
sudo mount -a
if any errors .. post them here .. if not, navigate to /mnt/NAS/movies

Can you see the contents as expected, and can you create a file or folder there ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18231
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: A little help with fstab
« Reply #23 on: February 07, 2014, 11:07:20 pm »
Open fstab for editing:
Code: [Select]
sudo gedit /etc/fstab
add a single new line at the bottom that reads:-

Code: [Select]
//192.168.2.50/backups /mnt/NAS/backups cifs iocharset=utf8,dir_mode=0777,file_mode=0777 0 0

SAVE the file.

Open another terminal and run:
Code: [Select]
sudo mount -a
if any errors .. post them here .. if not, navigate to /mnt/NAS/backups

Can you see the contents as expected, and can you create a file or folder there ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Emegra

  • Guest
Re: A little help with fstab
« Reply #24 on: February 07, 2014, 11:08:00 pm »
ok that works fine :)

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18231
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: A little help with fstab
« Reply #25 on: February 07, 2014, 11:09:22 pm »
Open fstab for editing:
Code: [Select]
sudo gedit /etc/fstab
add a single new line at the bottom that reads:-

Code: [Select]
//192.168.2.50/utilities /mnt/NAS/utilities cifs iocharset=utf8,dir_mode=0777,file_mode=0777 0 0

SAVE the file.

Open another terminal and run:
Code: [Select]
sudo mount -a
if any errors .. post them here .. if not, navigate to /mnt/NAS/utilities

Can you see the contents as expected, and can you create a file or folder there ?

If so .. tesst a reboot works .. if not, comment out thse lines from a LiveCD if necessary

Then you can remove gigolo if you wish.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18231
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: A little help with fstab
« Reply #26 on: February 07, 2014, 11:10:34 pm »
Have you done ALL of them ? .. I added some more whilst waiting ;)

Effectively your fstab should now end with:-

Code: [Select]
# NAS shares
//192.168.2.50/family-tree /mnt/NAS/family-tree cifs iocharset=utf8,dir_mode=0777,file_mode=0777 0 0
//192.168.2.50/graeme /mnt/NAS/graeme cifs iocharset=utf8,dir_mode=0777,file_mode=0777 0 0
//192.168.2.50/pat /mnt/NAS/pat cifs iocharset=utf8,dir_mode=0777,file_mode=0777 0 0
//192.168.2.50/multimedia /mnt/NAS/multimedia cifs iocharset=utf8,dir_mode=0777,file_mode=0777 0 0
//192.168.2.50/movies /mnt/NAS/movies cifs iocharset=utf8,dir_mode=0777,file_mode=0777 0 0
//192.168.2.50/backups /mnt/NAS/backups cifs iocharset=utf8,dir_mode=0777,file_mode=0777 0 0
//192.168.2.50/utilities /mnt/NAS/utilities cifs iocharset=utf8,dir_mode=0777,file_mode=0777 0 0

and you've checked they all work, and you can reboot without issue ?
« Last Edit: February 07, 2014, 11:16:10 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Emegra

  • Guest
Re: A little help with fstab
« Reply #27 on: February 07, 2014, 11:14:30 pm »
Quote
Have you done ALL of them ? .. I added some more whilst waiting

ok all done and all right and correct, going to reboot now


watch this space :)

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18231
  • Karma: 476
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: A little help with fstab
« Reply #28 on: February 07, 2014, 11:16:48 pm »
watching.......
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Emegra

  • Guest
Re: A little help with fstab
« Reply #29 on: February 07, 2014, 11:19:48 pm »
shares didn't mount on reboot, although they're listed in /etc/fstab

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal