• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

need help sharing a file in redhat linux

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Iam need help sharing a file in linux ,actually i have done mount ,but it doesnt work.i have some experience in solaris i had to specify the sharing location in /etc/dfs/dfstab.....can anybody tell me how to share in linux

thank you
san
 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From linux to linux?

NFS - network file system - would be my first idea.

 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To mount some other machine's share, entries go in /etc/fstab.

To share out directories on you machine, NFS or Samba are the most common choices.
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by san ch:
Hi

Iam need help sharing a file in linux ,actually i have done mount ,but it doesnt work.i have some experience in solaris i had to specify the sharing location in /etc/dfs/dfstab.....can anybody tell me how to share in linux

thank you
san



What do you mean by "it doesn't work"? Please provide some more details including what you did (exact commands and changes to files), error messages you recieve, and relevant contents of log files. If you can explain why you think it "doesn't work" in some more detail, we will be more able to help you figure out how to fix it.

Layne
 
san ch
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well sorry for not being clear
what i want to do is :i have a laptop which has windows xp in ntfs files sytem and i have a linux partition ,i want to see the ntfs partition from linux,i tried mount ntfs hda0 ,like that then iam getting a message which says file system not supported ,i have converted one of my ntfs partitions to FAT32 and tried ,still nogo

that is what i am looking at....can use samba to see windows partitions on the same hard drive ?
thank you for the help
 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by san ch:
well sorry for not being clear
what i want to do is :i have a laptop which has windows xp in ntfs files sytem and i have a linux partition ,i want to see the ntfs partition from linux,i tried mount ntfs hda0 ,like that then iam getting a message which says file system not supported ,i have converted one of my ntfs partitions to FAT32 and tried ,still nogo

that is what i am looking at....can use samba to see windows partitions on the same hard drive ?
thank you for the help


You want this thread, I believe...

Mark
 
Stefan Wagner
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by san ch:
well sorry for not being clear
what i want to do is :i have a laptop which has windows xp in ntfs files sytem and i have a linux partition ,i want to see the ntfs partition from linux,i tried mount ntfs hda0 ,like that then iam getting a message which says file system not supported ,i have converted one of my ntfs partitions to FAT32 and tried ,still nogo

that is what i am looking at....can use samba to see windows partitions on the same hard drive ?
thank you for the help



Well, on Solaris they name it 'hda0'?
This seems to be reasonable counting in the IT-world.

But on linux your first drive at the first controller is hda, and its first partition is hda1.

So try


'Sharing a file' is a term usually used when multiple running machines exchange files.
nfs at least will not work on unmounted filesystems and I guess samba won't too.

If this is still not working (I'm quiet sure it will) your kernel lacks perhaps module-support for vfat (but that would mean, you configured the kernel yourself, or took a very special distribution - vfat was supported from every SuSe, RedHat, halloween, peanut, knoppix and ubuntus I tried).
 
san ch
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much will try out this and seee
 
san ch
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey

i could mount fat32 partition with the following command
mount -v /dev/hda5 /windows

it is working however it says my kernal doesnt support ntfs when i try to mount ntfs partition..iam happy that i got the fat32 now i can wrk keeping data on that partition and shar it through both os
thank you ver much
san
 
Tim Holloway
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
NTFS support in Linux is spotty. Not all distros provide an NTFS driver and most of the ones that do provide a read-only driver.

That's because Microsoft isn't forthcoming with NTFS internals, and apparently, they're not above jerking the spec around on a whim. Or, as IBM found out (NTFS vs. HPFS) out of spite.
[ August 23, 2005: Message edited by: Tim Holloway ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic