Koozali.org: home of the SME Server

2nd HD problems

Kent Budolfsen

2nd HD problems
« on: October 02, 2003, 10:04:18 PM »
Hi all

I have mounted a 2nd hd to SME-server and it is mounted correctly, but I can't get connected to it 'cause it keeps asking for a username and password.

I have tried everything including all my users names and passwords but I still can't get access.

Is there anyone who have had the same problem and can help me.

The 2hd hd is mount to the mountingpoint /home/e-smith/files/ibays/hd2

Greg Zartman

Re: 2nd HD problems
« Reply #1 on: October 02, 2003, 10:28:32 PM »
First, I'll say I think you're asking for trouble doing this.  You can go out an buy a 200gb hard drive for a few hundred dollars and have all of the storage space in the world without needing to worry about breaking SME.

With that said:

If it were me, I'd mount the second hard drive under /mnt, then create a symbolic link from ./ibays/your_second_HD_ibay/files/ to /mnt/second_hd

Make sure the ownership of the link will allow users to have access to it via the ibay you created it in.

Regards,

Greg Zartman

Kent Budolfsen

Re: 2nd HD problems
« Reply #2 on: October 02, 2003, 11:03:53 PM »
I think you have misunderstood my question or maybe i didn't make my self clear enough.

the problem isn't that the 2nd hd don't mount it is the rw part of the ibay i have problems with.

It keeps asking for a user/password and I can't figure out why since the 2nd hd is totally blank.

Greg Zartman

Re: 2nd HD problems
« Reply #3 on: October 02, 2003, 11:28:22 PM »
> I think you have misunderstood my question or maybe i didn't
> make my self clear enough.

No, I understood you.

 
> It keeps asking for a user/password and I can't figure out
> why since the 2nd hd is totally blank.

Because you don't have permission to access it.     Make sure the ownership on the drive mount point is admin:shared and the permissions are set to 770 (best) or 775(ok).

Greg Zartman

Kent Budolfsen

Re: 2nd HD problems
« Reply #4 on: October 03, 2003, 12:08:53 AM »
OK.

Now I have set it to admin:shared and 770 but it still don't work.

What am I doing worng

Guck Puppy

Re: 2nd HD problems
« Reply #5 on: October 03, 2003, 12:15:36 AM »
Kent Budolfsen wrote:
> I have mounted a 2nd hd to SME-server and it is mounted
> correctly, but I can't get connected to it 'cause it keeps
> asking for a username and password.

When you say "it" keeps asking - what exactly is "it"? The web browser? some kind of prompt in an SSH shell?

If it's the web browser, have you told the ibay to ask for a password to access it? maybe try and reset the password for the ibay on the ibays setup screen?

G

Per Sørensen

Re: 2nd HD problems
« Reply #6 on: October 03, 2003, 03:10:47 AM »
You are writing in a different post on this forum, that your HD has an old installation on it. Is this still the case?

If so, i suggest you go on the command line, and run fdisk. Delete all the old partitions on it, and make one new one. Type "mkfs.ext2 /dev/hdX" X for a, b, c, or d.
Remember to unmount it first and go to init 1. ( So you have to do it physically on the machine)

Per

Klaus Eckert

Re: 2nd HD problems
« Reply #7 on: October 03, 2003, 04:30:59 AM »
for me it is not clear what you have done or what you want to do.

just for me to understand:
- you created a directory /home/e-smith/files/ibays/hd2
- set the user rights correct
- mount the HD to your mountpoint (/home/e-smith/files/ibays/hd2)

is this correct?

so what did you do after that?
how did you get the access-error?

please be very detailed, maybe you'll find the missing thing yourself by explaining it to me...

cheers klaus

Michiel

Re: 2nd HD problems
« Reply #8 on: October 03, 2003, 11:41:16 AM »
You'll find a howto on contrib.org on how to add a second drive to your system (http://mirror.contribs.org/smeserver/contribs/mblotwijk/HowToGuides/AddExtraHardDisk.htm).

TrevorB

Re: 2nd HD problems
« Reply #9 on: October 03, 2003, 02:25:19 PM »
I am assuming that you have set up an ibay called hd2 and are trying to browse to 'it'.

For windoze browsing there should be a files directory setup and for http there should be a html directory.

I.e the normal ibay structure is
/home/e-smith/files/ibays//cgi
/home/e-smith/files/ibays//files
/home/e-smith/files/ibays//html

All the directories should be in the root of your 2nd drive (if I have understood how you have set it up).

Does this help?

Trevor B

Kent Budolfsen

Re: 2nd HD problems
« Reply #10 on: October 03, 2003, 07:20:01 PM »
I am sorry, that I haven't made my self clear and i am very gratefull for all the suggestions there have been made but the problem is that I have an completly blank harddrive as an 2nd hd in SME.

It has been mounted perfectly and everything seems to be ok, but when try to get access to it throug windows Xp it keeps asking for Username/password and the thing I can't figure out is why, cause it shouldn't be any different than any other SME ibay.

I have tried all the things you have suggested but it still won't work and I can't figure it out.

I hope this will clear up some of the misunderstanding in my for postings.

Regards
Kent

Kent Budolfsen

Re: 2nd HD problems
« Reply #11 on: October 03, 2003, 07:34:26 PM »
In my message from 10.20 i forgot to tell you all that the username/password comes like it does when you log on to any ibay on SME, but in my case it wont accept my username/password.

If I have an user called kent and a password called 123456 and I put that in the access box nothing happens at all and that is the real problem'cause if I do the same in the ibays on the 1st hd there is no problems at all.

Thanx in advance

Per Sørensen

Re: 2nd HD problems
« Reply #12 on: October 03, 2003, 07:35:42 PM »
OK, it sounds to me as if you are mounting a blank disk. That is wrong. You have to mount a partition.

First you fdisk it and make a primary partition, call it no.1

Then you make filesytem (fomat it) : mkfs.ext2 /dev/hdc1 (ore where ever it sits).
Put in fstab where you want to mount it: /someibay_youhave/files or under /mnt, as some one suggested.

Then you mount it: mount /dev/hdc1

It shoul really work, i have done it MANY times.

Per

Per Sørensen

Re: 2nd HD problems
« Reply #13 on: October 03, 2003, 07:38:16 PM »
> /someibay_youhave/files or under /mnt, as some one suggested.

That is of course: /home/e-smith/file/your_ibay/files

Greg Zartman

Re: 2nd HD problems
« Reply #14 on: October 03, 2003, 07:41:02 PM »
> It has been mounted perfectly and everything seems to be ok,
> but when try to get access to it throug windows Xp it keeps
> asking for Username/password and the thing I can't figure out
> is why, cause it shouldn't be any different than any other
> SME ibay.

Can you access other ibays from the Windows XP station without recieving the username/password message?

Yes, I can:

Then you have permissions issues with the new hard drive.  See my previous post on the topic.


No, I can not:

There are three possibilities --
  1. Your SME machine is setup as a PDC for a domain that the Win XP client is not a member of.  Solution:  Join the Win XP client to your domain.

  2.  You are logged in on the Win XP client with a user account that does not exist on the SME box.  Solution:  Log-in to the Win XP client with a user account that exists on the SME box.

  3.  Both 1 & 2.

Regards,

Greg Zartman

Kent Budolfsen

Re: 2nd HD problems
« Reply #15 on: October 03, 2003, 08:29:02 PM »
Hey

I've solved the problems by combining some of all you inputs and i am very gratefull - it is very nice to know that there are so many helpfull people on the forums.

Thanks
Kent

Greg Zartman

Re: 2nd HD problems
« Reply #16 on: October 03, 2003, 08:40:40 PM »
> I've solved the problems by combining some of all you inputs
> and i am very gratefull - it is very nice to know that there
> are so many helpfull people on the forums.

And that solution was???

Greg

Kent Budolfsen

Re: 2nd HD problems
« Reply #17 on: October 03, 2003, 10:05:28 PM »
The solution was that I took Pers advise and mounted the 2nd hd into /home/e-smith/ibays/hd2/files

then I made the permissionchanges as Greg discreibed and then it accepted my username/password that I use to all my ibays.

So once again thank you all.