LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-12-2004, 09:44 AM   #1
mlove73
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
Help? OS X user on (SuSe) Linux


I am a mostly-Mac-user, but I dabble in other OS's occasionally. That being said, while I am confident at a command line, I rarely know what I'm actually doing to the system.

I have a PC that I used to use for testing web work in XP environments. I recently realized that I haven't booted it in almost a year, so I decided to try the great Linux experiment. After looking around I decided on Fedora or SuSe 9 (pro), and Fedora didn't work out.

For the most part, SuSe went really well. I got it installed, and Samba is working to serve files and printers. I have Apache serving my web page, IMAP is going etc.

The other functionality I want is to serve DVarchive (ReplayTV server) and I needed a large hard drive. I slapped in an old 100gb drive, and now I don't know what to do with it. If I open the Partition app, I can see the drive. I added an "extended" partition to it. But I can find no way in which to actually use it to store files.

I then decided that I would reinstall the whole server with both drives installed. The installer wants to make the entire 100gb drive my "root" partition, which I'd rather not do. Is it possible to have a dedicated "files" drive which is accessible from the GUI?

Any help or links to help would be great. Thanks.
 
Old 10-12-2004, 10:07 AM   #2
shaynesweeney
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
Cool yes, it's easy

This is actually a fairly easy thing to do...what you need to do is to find out what file system the replay server drive needs to be in, if it doesn't matter, AKA, it's just grabbing it over a common network protocol....then I would use either ext3 or reiserfs.

Doing things from GUI is annoying and changes with every distro you have ... so, we'll learn Linux today ... not SUSE. :-)

OK, here's what you do:

1) Find out where your second hard drive is located:
In general, if it's the "Secondary Master" on the IDE chain, it should be located at /dev/hdb. You can test for this by opening up command line and running fdisk /dev/hdb as ROOT, once you find out which device it is we are ready to partition it, so you might as well stay inside of fdisk.

2) In fdisk we are going to create a new partition:
Make sure there is no exisiting partion left over from whatever your did. If there is lets delete it, type P in fdisk to check if there are any existing partitions ... if there are type D and delete all/any.
Now that we have a clean slate lets create a new primary partition. Type N, for a new partition. then choose P for primary, and since this is the only partition going to be on this drive, choose enter for all sizes and positions.

3) Now that we have a partition, we need a filesystem!
This is actually very easy, staying in command line, type: mkfs.ext3 /dev/hdb1
This is assuming that /dev/hdb was the device we found and that we are going to format the first and only partition .... press enter, aprove the command, and withing a few seconds ... you should be safely home and the command prompt.

4) Auto-mounting the filesytem:
Now that we have a partition, and we have a filesystem, we need to mount it. So...again, staying in command line lets make a new folder ... since you mentioned the "files" drive you wanted how about making a folder in the, "/" = root directory, called, "files"
So, at this point, create this folder: mkdir /files

5) Now that we have the partition the filesystem and the folder, we are ready to mount.
To make this filesystem mount when we boot the computer we need to add it to a file called the "fstab", in Linux, this controls what devices are mounted, checked for errors, etc...
Using your favorite editor in Linux, which should be VI, open the file: vi /etc/fstab

If you haven't used "vi" use something you are comfortable with.

We are now going to add a line to the bottom of the file that looks SOMETHING like this:

/dev/hdb1 /files ext3 acl,user_xattr 1 1

Again, do not just copy it, make sure the first three fields are what you need.

After you save the file out, try to mount the folder: mount /files

You shouldn't get an error message ... if you do, check your settings ... if nothing seems to happen that great, well it's probably because it worked just fine. Open your /files directory and start copying files!

Have a nice day.

I am Shayne Sweeney, and I approve this Linux answer.
 
Old 10-12-2004, 10:31 AM   #3
mlove73
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Dvarchive doesn't require any special file system that I am aware of, and I think the drive is on hdd. I'll give this a shot tonight and report back.

Thanks so much.
 
Old 10-12-2004, 07:24 PM   #4
mlove73
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Re: yes, it's easy

Shane-

Okay, it ALMOST works. I was able to do the following:
[list=1][*]On (hdd) I erased all partitions, and created the new partitions (hdd1)[*]I created the file system mkfs.ext3 /dev/hdd1[*]I created the "files" directory "mkdir /files"[*]I edited the fstab: " /dev/hdd1 /files ext3 acl,user_xattr 1 1"[*]when I entered "mount /files" I received this error: wrong fs type, bad option, bad superblock on /dev/hdd1, or too many mounted file systems"[/list=1]

Back in the GUI, if I click on the (now visible) hdd1, I get:

"Only ROOT can mount /dev/hdd1 on /files Please check that the disk is entered correctly"

Went through again, same thing. I was wondering as a newbie: when I input "mkdir /files" do I need to make sure I am making it in the /dev/hdd1 volume?

Any ideas of what to try now? Thanks for everything so far.
 
Old 10-12-2004, 08:05 PM   #5
{O_o}
Member
 
Registered: Mar 2004
Distribution: Slackware 14
Posts: 70

Rep: Reputation: 16
i dont think it matters to much but my fstab uses tab's rather than spaces

also you couldtry adding the word users or user to acl,user_xattr

why do you put user_xattr in?

Last edited by {O_o}; 10-12-2004 at 08:06 PM.
 
Old 10-13-2004, 09:17 AM   #6
mlove73
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Success

So, without going in to too much detail, I printed out the instructions you gave me, and I kept inputting an "l" (letter L) as "I" (letter I). All is working, and I am a proud and happy man.

Now to confuse myself further, what about "Zeroconf" - is it possible to get it running in Suse 9.1 Pro easily?

Thanks again

Mark
 
  


Reply



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
Suse Linux 9.0 User and Administration Guides bapertto Linux - Newbie 2 06-03-2005 09:01 AM
My user login session in SUSE Linux 9.1 version gets expired every now and then umesh.tiwari Linux - Software 1 12-06-2004 04:16 AM
New Linux User, SuSE Pro 9.1 syntaxerror64 LinuxQuestions.org Member Intro 3 12-05-2004 04:06 PM
SUSE linux 9.1: only root user can resolv domain names superfly Linux - Networking 2 07-14-2004 08:21 AM
Linux User Wannabee - Dual Boot (SuSe 9) with XP Question kumarv3 Linux - Distributions 6 01-26-2004 04:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration