LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-24-2011, 02:02 AM   #1
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Rep: Reputation: Disabled
Confusion Between Samba and Swap Partition


If I have a swap partition to exchange files between windows and linux,

then what is samba for?
 
Old 09-24-2011, 02:05 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You seem to be confused. Samba is for sharing with Windows machines on a network. Edit: See below for a proper explanation of a swap partiton.

Last edited by Nylex; 09-24-2011 at 02:07 AM.
 
1 members found this post helpful.
Old 09-24-2011, 02:06 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
you do NOT have a swap partition to do that. swap partitions are like a windows pagefile, allowing Linux to swap out unused data from memory to disk.

And using a common filesystem on a single machine is nothing at all to do with Samba. Samba provides network services using the SMB / CIFS protocols. i.e. Windows shares. Please note that there is a LOT of information out there. Did you actually try googling "what is samba"? before expecting someone here to directly answer you?
 
1 members found this post helpful.
Old 09-24-2011, 02:09 AM   #4
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
Hi. I mean what is the difference if I created an accessible partition (FAT32) between windows and linux vs using samba?
 
Old 09-24-2011, 02:09 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
we already explained that. Did you bother reading our replies?
 
1 members found this post helpful.
Old 09-24-2011, 02:09 AM   #6
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Hello,

You have it all wrong. Swap space is hard disk space used when your system RAM is fully used up, and you need swap space to help in return to make up for it (aka Virtual Memory, or paging); Read here - http://en.wikipedia.org/wiki/Paging#...x-like_systems

Samba is used for the "file sharing between linux and windows," in your terms. You need to install, setup and configure smb for your distro in order to do this.

Cheers,

Josh
 
1 members found this post helpful.
Old 09-24-2011, 02:09 AM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by hitmen View Post
Hi. I mean what is the difference if I created an accessible partition (FAT32) between windows and linux vs using samba?
Networking. Please see acid_kewpie's post again.
 
1 members found this post helpful.
Old 09-24-2011, 06:48 AM   #8
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,109

Rep: Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114Reputation: 1114
Quote:
Originally Posted by hitmen View Post
Hi. I mean what is the difference if I created an accessible partition (FAT32) between windows and linux vs using samba?
Linux has good enough NTFS support that a partition to be shared between Linux and Windows is better using NTFS rather than FAT32. In most cases, you don't even need an extra partition for that. Just use the main NTFS partition of your Windows system.

Sharing a FAT32 or other Windows partition between Linux and Windows makes sense for dual boot: When Linux and Windows run alternately on the same machine.

Samba is for network sharing between Linux and Windows when they run at the same time on different machines on a LAN.

If one of Linux or Windows is a virtual machine running inside the other, that would add some extra possibilities and overlap to the clean difference I just described (but typically sharing across that virtual relationship would be set up as if they were seperate machines on the same LAN).
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
swap file vs. swap partition verndog Ubuntu 16 07-09-2012 08:49 PM
swap file or swap partition? What is better? zemir Linux - Newbie 28 08-19-2011 09:15 PM
Can swap file or a swap partition be mounted and read? Mr-Bisquit Linux - General 3 06-08-2009 02:16 PM
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 10:46 AM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM


All times are GMT -5. The time now is 10:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration