Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

[NEWBIE]{AGAIN}Mandrake & file sharing

  • 24-03-2003 5:27pm
    #1
    Registered Users, Registered Users 2 Posts: 2,933 ✭✭✭


    2 questions in 1 I guess.

    As I'm on a network with all windows machines, can I view there shared files? Thats for ppl using redhat and mandrake

    Also on a diff topic how do u mount an NTFS partition (on the same Hard drive) using redhat. Mandrake already did this for me which was class.

    My friend installed redhat, I installed mandrake, so far mandrake seems to be better.


Comments

  • Closed Accounts Posts: 7,563 ✭✭✭leeroybrown


    To share files with Windows machines 'samba' will be what you want. I havn't messed extensively with samba nor do I use RedHat or Mandrake but I'm sure they'll hav a reasonably painless setup for it. Combine that with a bit of advice here and it'll be up and running in no time.

    As for mounting the NTFS partition

    mount -t ntfs /dev/hd?? /mount_point

    Replace the ?? with the drive letter and partition number (eg /dev/hda1) and replace mount_point withe name of the dir you want to use (eg. /mnt/win).

    You can edit your fstab (/etc/fstab) to add it to you list of paritions so that it can be easily mounted by typing
    mount /mount_point

    Remember too that NTFS support under linux is still in the development stages and you will only have Read-Only support for your NTFS partitions from within linux.


  • Registered Users, Registered Users 2 Posts: 2,933 ✭✭✭Sniipe


    thx for the "mount -t ntfs /dev/hd?? /mount_point" command I'll deffo use it.

    Samba on the other hand I'm guessing I'll have difficulty with, I'll have a look at it tomorrow and try setting it up!

    Thanks again tho!


  • Closed Accounts Posts: 7,563 ✭✭✭leeroybrown


    Quick modification:

    mount -t ntfs /dev/hd?? /mount_point -o ro

    THis will ensure it is mounted Read-Only. Right now it will be mounted ro anyway.

    For the fstab line:

    /dev/hd?? /mount_point ntfs defaults,ro,user 0 0

    should do it. (You'll see the standard format in /etc/fstab anyway)


  • Registered Users, Registered Users 2 Posts: 2,933 ✭✭✭Sniipe


    thanks Leeroybrown :D


  • Registered Users, Registered Users 2 Posts: 2,933 ✭✭✭Sniipe


    typed in the following in redhat 8

    mount -t ntfs /dec/hda1 /mnt/nt -o ro

    and the error it spits out is

    mount: mount point /mnt/nt does does not exist




    I had a look at the /etc/fstab file

    the format comes up as

    LABEL=/ / ext3 defaults 1 1
    LABEL=/boot /boot ext3 defaults 1 2
    ~~~~~~ETC~~~~~~
    /dev/hda5 swap swap defaults 0 0
    /dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
    ~~~~~~ETC~~~~~~

    So I guess this is a sort of autoexec.bat for mounting.

    What will I type in to mount the ntfs drive??


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 4,487 ✭✭✭Gerry


    you are trying to mount it do a directory which does not exist. ( /mnt/nt )

    try this first: mkdir -p /mnt/nt

    Use the line supplied by leeroybrown in the fstab.
    you are gonna need to mess around with the letters and numbers you put after /dev/hd, it depends on how many drives you have, where you put linux, and how many linux partitions you have. If it is on the same drive, and thats the only drive in the machine ( this would be hda ), do a df -k and see what partitions are mounted already. Obviously the windows partition will not be on that list, so try the next number after the highest linux partition.


  • Closed Accounts Posts: 1,026 ✭✭✭sisob


    For samba the latest Mandrake is the best
    bet ATM. The new redhat out in a week will
    also have a nice tool. That is if you want
    to share files


  • Registered Users, Registered Users 2 Posts: 2,933 ✭✭✭Sniipe


    ok I tried the mount -t ntfs /dev/hda1 /mnt/nt -o ro

    the error that comes up this time (after I created that folder) is:

    mount: fs type ntfs not supported by kernal :confused:

    maybe I left out a package or something? And is samba a package on the cd's or where do I find it?

    So sorry for all the silly questions, but this is all new to me!


  • Registered Users, Registered Users 2 Posts: 8,148 ✭✭✭Ronan|Raven


    http://sourceforge.net/projects/linux-ntfs/

    Stick that in your Kernel and smoke it! Just dl it and run it and it will add NTFS support to your Kernel. I dld it a while back and it did the trick.


  • Closed Accounts Posts: 7,563 ✭✭✭leeroybrown


    Theres direct NTFS "read support" in the kernel anyway ... all you hae to do is compile it in.

    http://www.tldp.org/HOWTO/Kernel-HOWTO.html

    "NTFS file system support (read only)" is an option in the file systems section of the config.


  • Advertisement
  • Closed Accounts Posts: 6,601 ✭✭✭Kali


    For browsing/mounting Windows shares in X try LinNeighborhood.. its not too bad, if a bit buggy on certain network settings.

    To manually mount windows shares on your machine use smbmount (after installing samba)...

    smbmount //machinename/sharename /mnt/mountdir -o username=username,password=password

    or to get a list of available shares:
    smbclient -L windows_server -U Username

    where windows_server is the domain master browser for the network.


Advertisement