Cant access hard drive on network

Discussion in 'Acer Aspire One' started by SDM, Dec 27, 2008.

  1. SDM

    SDM

    Joined:
    Dec 27, 2008
    Messages:
    19
    Likes Received:
    0
    Hi got my AA1 for christmas and all is going pretty well except for not being able to access files on my external hard drive. Now I do realise linux and windows are differnt but I did kind of think typing \\storage in firefox would work like it does in internet explorer. As you probally know it does not work. Can any one help please? I'm a bit green when it comes to linux so any hellp will have to be simple or detailed.

    Many thanks in advance stewart
     
    SDM, Dec 27, 2008
    #1
  2. SDM

    chupachups

    Joined:
    Nov 24, 2008
    Messages:
    41
    Likes Received:
    0
    chupachups, Dec 28, 2008
    #2
  3. SDM

    SDM

    Joined:
    Dec 27, 2008
    Messages:
    19
    Likes Received:
    0
    Hi thanks for your input, but Im still having problems. What do you mean by you created [ directory /mnt/home/Share ] how do I do this? Is the directory the name of the folderI want to mount my NAS too? Sorry for being not so clever I'm sure I will get there eventually.

    Stewart
     
    SDM, Dec 29, 2008
    #3
  4. SDM

    chupachups

    Joined:
    Nov 24, 2008
    Messages:
    41
    Likes Received:
    0
    from terminal, type

    su -
    mkdir /mnt/home/Share

    ...
    then the other commands in the previous post
     
    chupachups, Dec 29, 2008
    #4
  5. SDM

    SDM

    Joined:
    Dec 27, 2008
    Messages:
    19
    Likes Received:
    0
    Hi Chupachups thanks for your help so far, sadly I'm afraid to say I'm still struggling.

    I enter the following in the terminal and all is fine

    u -
    mkdir /mnt/home/Share

    But when I enter the next bit I get :
    mount -t cifs -o user=user name,password=my password //storage /mnt/home/Share

    Usage: mount -V : print version
    mount -h : print this help
    mount : list mounted filesystems
    mount -l : idem, including volume labels
    So far the informational part. Next the mounting.
    The command is `mount [-t fstype] something somewhere'.
    Details found in /etc/fstab may be omitted.
    mount -a [-t|-O] ... : mount all stuff from /etc/fstab
    mount device : mount device at the known place
    mount directory : mount known device here
    mount -t type dev dir : ordinary mount command
    Note that one does not really mount a device, one mounts
    a filesystem (of the given type) found on the device.
    One can also mount an already visible directory tree elsewhere:
    mount --bind olddir newdir
    or move a subtree:
    mount --move olddir newdir
    One can change the type of mount containing the directory dir:
    mount --make-shared dir
    mount --make-slave dir
    mount --make-private dir
    mount --make-unbindable dir
    One can change the type of all the mounts in a mount subtree
    containing the directory dir:
    mount --make-rshared dir
    mount --make-rslave dir
    mount --make-rprivate dir
    mount --make-runbindable dir
    A device can be given by name, say /dev/hda1 or /dev/cdrom,
    or by label, using -L label or by uuid, using -U uuid .
    Other options: [-nfFrsvw] [-o options] [-p passwdfd].
    For many more details, say man 8 mount .
    [root@localhost ~]#

    I would be most grateful of any help, Stewart
     
    SDM, Dec 29, 2008
    #5
  6. SDM

    chupachups

    Joined:
    Nov 24, 2008
    Messages:
    41
    Likes Received:
    0
    a) have you created a shared directory on your windows machine ? I'm not sure you have...I assume your machine is called storage (indicated by //storage in the above), but you haven't specified a shared name
    b) have you substituted the literals "user name" and "my password" with the actual values as setup for the windows share ?

    as an exmple, if you windows machine is called "clunky", and you have a share called "clunkystuff", with a windows user called "accessclunky" which has a password "accessclunkypassword" (don't use this example, the names are too long), then the mount command becomes

    mount -t cifs -o user=accessclunky,password=accessclunkypassword //clunky/clunkystuff /mnt/home/Share


    hope this helps
     
    chupachups, Dec 29, 2008
    #6
  7. SDM

    SDM

    Joined:
    Dec 27, 2008
    Messages:
    19
    Likes Received:
    0
    Hi I think I may have been misleading you. What I have is NAS called storage with a IP address of 192.168.1.4. On the NAS there is a folder called home which has all my music/photos on it.

    Please dont let me push your willing to help to far.

    Stewart
     
    SDM, Dec 30, 2008
    #7
  8. SDM

    chupachups

    Joined:
    Nov 24, 2008
    Messages:
    41
    Likes Received:
    0

    try the following...

    don't specify the -o option

    don't specify the user and password clauses
     
    chupachups, Dec 30, 2008
    #8
  9. SDM

    SDM

    Joined:
    Dec 27, 2008
    Messages:
    19
    Likes Received:
    0
    mount -t cifs //storage/home /mnt/home/share

    mount error: could not find target server. TCP name storage/home not found
    No ip address specified and hostname not found
    [root@localhost ~]#
     
    SDM, Dec 30, 2008
    #9
  10. SDM

    chupachups

    Joined:
    Nov 24, 2008
    Messages:
    41
    Likes Received:
    0
    a) is the shared folder really called "home", earlier you only specified //storage, now you specify //storage/home

    are you able to show me a screenshot of the mounted drive from a windows machine ?

    b) are you able to ping //storage,

    ie

    ping storage

    should give you some reassuring msgs
    else try specifying the ip address rather than the network name in the mount command
     
    chupachups, Dec 30, 2008
    #10
  11. SDM

    SDM

    Joined:
    Dec 27, 2008
    Messages:
    19
    Likes Received:
    0
    Hi, The NAS box is called storage the folder on it that contains all my stuff is called home. Ive tried using the IP address but that doesnt work. I've pinged the NAS and thats all fine.
     
    SDM, Dec 30, 2008
    #11
  12. SDM

    chupachups

    Joined:
    Nov 24, 2008
    Messages:
    41
    Likes Received:
    0
    I'm stumped, dunno why its not working....although I noticed /mnt/home/Share should be spelt with an upper case S on share, but thats not the error being reported, seems the AAO can't see the network entity //storage/home
     
    chupachups, Dec 30, 2008
    #12
  13. SDM

    TheWeaver

    Joined:
    Nov 18, 2008
    Messages:
    4
    Likes Received:
    0
    I had the same mount error, and to get the command

    "mount -t cifs -o user=your_windows_user_id,password=your_windows_password //your_windows_pc/windows_shared_directory /mnt/home/Share"

    working, I did the following : on my windows XP PC where the shared folder was I had to go to Control Panel, Network Connections, Local Area Connection, then on General Tab tick the box for "File and Printer sharing for Microsoft Networks". Not sure why this is not done when you turn on the sharing at folder level. Worked for me, and I had write access to the shared folder.
     
    TheWeaver, Dec 30, 2008
    #13
  14. SDM

    chupachups

    Joined:
    Nov 24, 2008
    Messages:
    41
    Likes Received:
    0

    just speculating here...I think this may have allowed the windows share as SMB (also known as cifs). an alternative to cifs is nfs, usually recognised by UNIX systems

    any idea what your NAS supports ? would be surprising if it didn't support cifs

    how about trying mount -t nfs ...

    is there any security on this NAS whch might be only allowing certain hostnames, or MAC addresses....seems strange that there is no userid/password security at all ?
     
    chupachups, Dec 30, 2008
    #14
  15. SDM

    SDM

    Joined:
    Dec 27, 2008
    Messages:
    19
    Likes Received:
    0
    Hi tried what was suggested and got the following

    [root@localhost ~]# mount -t nfs user=admin,password=********//storage /mnt/home/Share
    mount: wrong fs type, bad option, bad superblock on user=admin,password=********//storage,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so

    My NAS does have a password and a user name, the user name is admin and the password is ********.

    Thanks for getting back to me, Stewart
     
    SDM, Dec 30, 2008
    #15
  16. SDM

    SDM

    Joined:
    Dec 27, 2008
    Messages:
    19
    Likes Received:
    0
    And then another combination

    [root@localhost ~]# mount -t nfs //192.168.1.4 /mnt/home/Share
    mount: wrong fs type, bad option, bad superblock on //192.168.1.4,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so
     
    SDM, Dec 30, 2008
    #16
  17. SDM

    chupachups

    Joined:
    Nov 24, 2008
    Messages:
    41
    Likes Received:
    0

    its not nfs

    try

    a) mount -t cifs //192.168.1.4/home /mnt/home/Share

    or

    b) mount -t cifs -o user=admin,password=******* //192.168.1.4/home /mnt/home/Share
     
    chupachups, Dec 30, 2008
    #17
  18. SDM

    chupachups

    Joined:
    Nov 24, 2008
    Messages:
    41
    Likes Received:
    0
    by the way, what model NAS is it ?
     
    chupachups, Dec 30, 2008
    #18
  19. SDM

    SDM

    Joined:
    Dec 27, 2008
    Messages:
    19
    Likes Received:
    0
    Hi chupachups,

    Im getting a couple of error messages, you see I have a password for entering the NAS setup and a password for entering the folder through windows. I guess the windows one is irreveant.

    mount error 20 = Not a directory
    Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
    [root@localhost ~]# mount -t cifs //192.168.1.4/home /mnt/home/Share
    Password:
    mount error 13 = Permission denied
    Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
    [root@localhost ~]#

    Thanks Stewart
     
    SDM, Dec 31, 2008
    #19
  20. SDM

    chupachups

    Joined:
    Nov 24, 2008
    Messages:
    41
    Likes Received:
    0
    think you will find it is the password you use under windows...both windows and the AAO are trying to access the NAS resource

    it is unlikely to be the admin password
     
    chupachups, Dec 31, 2008
    #20
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.