LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-14-2002, 09:01 AM   #1
ChrisL
LQ Newbie
 
Registered: Feb 2002
Posts: 3

Rep: Reputation: 0
Searched Everywhere...


I'm a linux newbie. I have sussed out basic configuration, Installed Redhat and i'm up and running.

I have a network with a bunch of windows boxes and a few macs. I have installed samba on the linux machine and have managed to get the PC's to see it and my file sharing works a treat.

My Problem should be relatively easy for you guys.
All I want to do is add a hard disk dedicated to store my files for the users on the network to access - nothing else.

Now how the hell do I format the drive (ntfs formatted already - old windoze disk) to linux format? I have searched the net for the answer to my question, but to no avail. I'm sure it's just a small bit of code i'll need to put in, but what the hell is it??
I don't need to save any of the files on the disk, all I wanna do is wipe it and make it linux format...

Pleeaase someone help a newbie bitch.

Ta.
 
Old 02-14-2002, 09:09 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
hehe, no need to deride yourself that much, a simple "i'm thick" normally works

i presume you're wanting this drive under linux? just plug it in and format it to ext3 or at least fat32. NTFS support doesn't happen under linux, for various closed source reasons.

you've not said what distro you're using, so the basic effiecnt way to do it is...

conenct the drive up and load linux

use "fdisk -l" to list connected drives, find out which one out of hda/hdb/hdc/hdd the drive is connected to. you may well know already tho. next up you need to clear the whloe thing...

cfdisk /dev/hdX (X = a/b/c or d)

and remove all the old partitions, and then create a new linux one (type 81 in the list). once that's written, format it with.

mke2fs /dev/hdXY (Y = partition number)

OR if you're using a newer distro that supports ext3 (i.e. redhat 7.2, mandrake 8.1...) use

mke2fs -j /dev/hdXY

this version just adds an ext3 journal to the system, meaning it will recover better if it crashes etc...

after that just mount it somewhere and edit the samba config to get it shared.

should be all you need. maybe.
 
Old 02-14-2002, 09:51 AM   #3
ChrisL
LQ Newbie
 
Registered: Feb 2002
Posts: 3

Original Poster
Rep: Reputation: 0
Acid, you're a star chap. Worked a treat! Well, bar a slight confusion with your instructions

"cfdisk /dev/hdX (X = a/b/c or d)" - took a me a little while to suss out that the 'c' was a typo... heh

Nice one.

Whilst we are on the subject, or maybe not but it's worth asking anyway - Does anyone have any idea how to configure either samba, or a mac so that the mac kids can access files from the linux machine via samba? Got the windows machines running smoothly on it (well, as smoothly as microshaft can get) nows it's time for the Apple people.

Any help would be greatly appreciated.

Cheers chaps
 
Old 02-14-2002, 09:56 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
no cfdisk is a nicer version of fdisk, with some menus as things in it. you should have it on your machine somewhere.

smb... erm well if samba is working nice for windows, then your probs should really be mac based. if you're using OSX then you should be able to use samba on the mac. it might depend on how you've set up password encryptino for samba tho.
 
Old 02-14-2002, 10:08 AM   #5
ChrisL
LQ Newbie
 
Registered: Feb 2002
Posts: 3

Original Poster
Rep: Reputation: 0
Ah okay, it didn't recognise cfdisk as a command so we went for plain fdisk and got it sorted. Thanks for your help.

The mac thing. I'm not sure where to even start with this really. The mac kids don't use OSX just yet due to compatibility issues, so they are on OS9.xx.
I'm sure I read in some of the samba documentation that it can be used to share files accross mulitple operating systems, including macO/S - but doesn't say how to go about doing any of this.

Any ideas of where to begin? Maybe any specific samba websites or anything?

Thanks again.
Chris
 
Old 02-14-2002, 10:11 AM   #6
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 56
How about www.samba.org?
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Only root has sound, have searched. Serow225 Debian 7 10-29-2004 04:31 AM
Searched Everywhere jeep99899 Linux - Newbie 1 09-13-2004 02:06 PM
I searched and searched so... NeeWom Linux - Software 0 04-16-2004 12:14 PM
telnet problem - I have searched all over skibud2 Linux - Software 9 09-06-2003 07:20 AM
I've searched the threads, pvl Linux - Newbie 2 06-24-2003 10:53 AM


All times are GMT -5. The time now is 01:20 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