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

0 Members and 1 Guest are viewing this topic.

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1661
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #60 on: January 26, 2013, 07:25:02 pm »
Bumpity bump.

I've got all my old stuff up and running, however I want to add a new drive.

So far what I have done is:

Identified drive as: /dev/sdd

Added to my fstab:

/dev/sdd /mnt/NAS-40GB   ext3    rw,errors=remount-ro     0       0

I've also created the directories:

/mnt/NAS-40GB
/mnt/NAS-40GB/share


That's as far as I've gotten. I am doing things correctly yes?

EDIT: I have also created a symlink that works perfectly.
« Last Edit: January 26, 2013, 07:46:43 pm by BkS »
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.

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13178
  • Karma: 321
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #61 on: January 26, 2013, 07:48:34 pm »
What is /mnt/NAS-40GB/share  for ?

You can easily test it with
Code: [Select]
sudo mount -a
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1661
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #62 on: January 26, 2013, 07:56:04 pm »
The "share" directory is where the content will go. I have one in all my drives, as I dont want anything outside of a shared directory.

Everything seems to work fine according to mount -a. 

Great success! ;D
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.

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13178
  • Karma: 321
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #63 on: January 26, 2013, 07:59:48 pm »
Well shouldn't the "share" directory have been created AFTER the /mnt/NAS-40GB was mounted .. so it was created ON THE DRIVE ?
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1661
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #64 on: January 26, 2013, 08:06:36 pm »
It was created AFTER it was mounted. ;) I have learned a few things y'know.
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.

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13178
  • Karma: 321
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #65 on: January 26, 2013, 08:51:06 pm »
OK .. don't get your snickers in a twit :P
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1661
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #66 on: January 26, 2013, 08:57:15 pm »
Haha, anyway on a more serious note, I've just connected the server to the network only to find it won't ping, HOWEVER, miniDLNA is working and I can access the movies, photos, etc? But the server itself won't show up on Nautilus or Window's explorer in order to browse the files.

Doesn't make sense...
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.

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13178
  • Karma: 321
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #67 on: January 26, 2013, 09:13:55 pm »
What do you mean t won't ping .. you've tried pinging it's IP from another PC ?
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1661
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #68 on: January 26, 2013, 09:17:08 pm »
Yep, tried it from my laptop, my mums laptop, and my Nexus 7, and my phone... no replies. ???

I get:

Quote
Host Unreachable
« Last Edit: January 26, 2013, 09:21:38 pm by BkS »
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.

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13178
  • Karma: 321
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #69 on: January 26, 2013, 09:21:30 pm »
Can you ping other PC's from the server ?

have you got any iptables rules set
Code: [Select]
sudo iptables -L

What's the output from
Code: [Select]
ifconfig

Have you tried another ethernet cable, and/or checked there's no dust blocking the connections in the ethernet socket.
« Last Edit: January 26, 2013, 09:27:07 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1415
  • Karma: 118
  • Gender: Male
    • View Profile
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #70 on: January 26, 2013, 10:25:57 pm »
Is samba running? :-\
Have you modified the config for it?

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1661
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #71 on: January 26, 2013, 10:55:23 pm »
Can you ping other PC's from the server ?

have you got any iptables rules set
Code: [Select]
sudo iptables -L

Nothing is setup.

Quote
What's the output from
Code: [Select]
ifconfig

(click to show/hide)



Since I restarted the server, it seems to be responding to pings. Now the only problem is, Windows clients can't access the server, I think something may be wrong with samba, here's my smb.conf.

(click to show/hide)


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.

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13178
  • Karma: 321
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #72 on: January 27, 2013, 12:54:30 am »
Here's my peppermint smb.conf for comparison:-

(click to show/hide)

So you might want to try:-

(click to show/hide)

..
« Last Edit: January 27, 2013, 01:04:41 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1661
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #73 on: January 27, 2013, 01:43:40 am »
Restarting samba seems to have solved the issue. Guess I forgot to refresh the configuration file?

The only problem I'm having is I can't write to the new shared folder which is in /mnt/NAS-40GB/share.

I've chmod 555 to /mnt/NAS-40GB and chmod 777 /mnt/NAS-40GB/share, but still no write access?
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.

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13178
  • Karma: 321
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Mounting hard-drives from external sources.
« Reply #74 on: January 27, 2013, 09:57:51 am »
Can you write to it locally:
Code: [Select]
touch /mnt/NAS-40GB/share/testfile
and
Code: [Select]
sudo touch /mnt/NAS-40GB/share/sudo-testfile
then
Code: [Select]
ls -a /mnt/NAS-40GB/share
?
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal