Author Topic: Mounting hard-drives from external sources. [Solved]  (Read 14665 times)

0 Members and 1 Guest are viewing this topic.

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #45 on: April 16, 2012, 05:15:15 pm »
First, it's NOT the "-" in the path as I wondered earlier ???

I'm now somewhat baffled as to why that doesn't work ..

I just created
/mnt/NAS-20GB/share
and
/mnt/NAS-200GB/share

on my 11.10 box .. made them both (777) writeable by everyone.

put:-
Code: [Select]
# NAS-20GB added by BkS
[Wallpapers]
comment = Wallpapers Folder
path = /mnt/NAS-20GB/share
writeable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
share mode = 0777

# NAS-200GB added by BkS
[Share]
comment = Public Folder
path = /mnt/NAS-200GB/share
writeable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
share mode = 0777

in my smb.conf

REBOOTED the server.

REBOOTED the PeppermintOS netbook

Now if (on the netbook) I open pcmanfm and enter smb://172.16.0.2/

I can see (and write to) "Share" and "Wallpapers"

so it SHOULD be working on your system. ???

did you reboot BOTH the server and laptop ?

have you tried accessing the shares on another PC .. to rule out your Peppermint PC as the culprit ?
« Last Edit: April 16, 2012, 05:32:18 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

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #46 on: April 16, 2012, 05:39:34 pm »
Quick question ,,

When I ask for the contents of fstab, smb.conf, etc, ... you ARE getting them from the server aren't you, and not just cobbling then together from what's  been posted earlier ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1691
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #47 on: April 16, 2012, 05:56:27 pm »
Yes I rebooted both. I've tried on my brothers Ubuntu box and my mums partners Win7 box. Both of them can't access the directories either.

Yeah I'm getting them from terminal.
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #48 on: April 16, 2012, 06:10:38 pm »
OK .. lets go through this one step at a time.

I know I've asked for them before, but post the contents of:-

Code: [Select]
sudo nano /etc/samba/smb.conf
and
Code: [Select]
sudo nano /etc/fstab

and the output from:
Code: [Select]
mount
and
Code: [Select]
ls -l /mnt/NAS-20GB
and
Code: [Select]
ls-l /mnt/NAS-200GB
and
Code: [Select]
sudo fdisk -l

can you also try this:
Code: [Select]
mkdir /mnt/NAS-200GB/share/testdir
I just want to know if this works.

Meanwhile .. I'll test if the fstab entries make a difference by formatting a USB stick as ext3 and mounting it from fstab as /mnt/NAS-200GB  then creating a dir on it called share .. in the same way as you are, and see what happens.
« Last Edit: April 16, 2012, 06:20:49 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

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1833
  • Karma: 142
  • Gender: Male
    • View Profile
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #49 on: April 16, 2012, 06:20:35 pm »
@BkS

Try this:

Code: [Select]
sudo chmod -R 777 /mnt/NAS-20GB
sudo chmod -R 777 /mnt/NAS-200GB

Reboot NAS and see if that makes any difference

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #50 on: April 16, 2012, 06:37:30 pm »
Yup .. listen to SeZo .. I just made the same setup with a USB stick, and the directory was unreadable, till I -
Code: [Select]
sudo chmod 777 /mnt/NAS-200GB

then it WAS readable.

Still dunno why it needs  that though ???
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1691
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #51 on: April 16, 2012, 06:41:34 pm »
Code: [Select]
sudo nano /etc/samba/smb.conf
(click to show/hide)

Quote
Code: [Select]
sudo nano /etc/fstab

(click to show/hide)

Quote
Code: [Select]
mount

(click to show/hide)

Quote
Code: [Select]
ls -l /mnt/NAS-20GB

(click to show/hide)

Quote
Code: [Select]
ls-l /mnt/NAS-200GB

(click to show/hide)

Quote
Code: [Select]
sudo fdisk -l

(click to show/hide)

Quote
can you also try this:
Code: [Select]
mkdir /mnt/NAS-200GB/share/testdir
I just want to know if this works.

Yes I can make that directory:

Quote
bks@bally-server:~$ ls /mnt/NAS-200GB/share/
testdir
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1691
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #52 on: April 16, 2012, 06:52:11 pm »
SeZo, you deserve a medal. :D

It works now!
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #53 on: April 16, 2012, 06:54:13 pm »
I'm still wondering WHY that worked though ?

I considered it earlier, but could see no reason for it ???
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1833
  • Karma: 142
  • Gender: Male
    • View Profile
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #54 on: April 16, 2012, 07:04:45 pm »
Medals???
Didn't know they are giving those out here.

Lucky guess I suppose. Mark has done all the work, thank him.

I'm still wondering WHY that worked though ?

I considered it earlier, but could see no reason for it ???

I am guessing that when you CHMOD a file or folder, some servers require you also CHMOD
the folder holding it to the same level of permissions for it to work. ???

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #55 on: April 16, 2012, 07:12:38 pm »
Well it certainly "looks" that way .. just a bit baffled by it though.

I'm guessing it's a Samba quirk, because I've never had to do that when mounting across the network with cifs or even smbfs (or obviously locally).

Weird  :o

Quote from: SeZo
Medals???
Didn't know they are giving those out here.


The forum has got an "Awards" feature, with piccies of medals .. we've just not implemented it .. to tell the truth, I've not looked into how t works.

These are the awards ;)

   
     
 

Quote from: SeZo
Lucky guess I suppose. Mark has done all the work, thank him.


SeZo, you may as well accept the thanks, not only did you come up with the answer, but he doesn't thank me any more [snivel] .. one of us may as well get thanked ;)

Just pulling your leg BkS :)
« Last Edit: April 16, 2012, 08:20:48 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

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1691
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #56 on: April 16, 2012, 07:40:48 pm »
LOL, "Asshole of the month". That's brilliant.
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #57 on: April 16, 2012, 07:47:17 pm »
Yeh .. I've wanted to use that one before.

Remember this:
http://linuxforums.org.uk/index.php?topic=2552.msg61331#msg61331
and the topic that prompted that ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1691
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #58 on: April 16, 2012, 07:51:19 pm »
Oh how he/she deserved that award. You were going of your head lol. I still have the PM's XD
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #59 on: April 16, 2012, 07:55:47 pm »
:)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal