View Single Post

   
  #4 (permalink)  
Old 01-19-2008, 08:18 AM
AJackson
 
Posts: n/a
Default Re: Can't add a second drive?

On Mar 27, 2:41 pm, "***** charles" <shultz...@sbcglobal.net> wrote:
> "Michael Fierro" <the_biffs...@comcast.net> wrote in message
>
> news:cYmdnZmPGdV00ZXbnZ2dnUVZ_qemnZ2d@comcast.com. ..
>
>
>
> > On 2007-03-26, ***** charles <shultz...@sbcglobal.net> rambled on thusly:

>
> > > for a 30G ide hard drive. The drive is identified as hdc and
> > > the gui partitioner found it and I could install one partition
> > > label bsd and type ext3. That process seems to be
> > > perminant. Problem is when I try to add a directory in
> > > /dev called harddrive2 and add the appropriate line in

>
> > Here's the short answer: Don't do that!

>
> > Longer answer: most distros (and anything Debian/Ubuntu-based like Mint)
> > use udev. /dev is not static, it is generated on the fly. What is there on
> > one boot may or not be there again, depending on what hardware is

> attached.
> > This is as it should be: it creates a much more adaptable system.

>
> > What you should be doing is adding a line in /etc/fstab, along the lines
> > of:

>
> > /dev/hdc /wherever/you/want/this/mounted ext3 defaults 0 0

>
> > You already told us that the hard drive is /dev/hdc, which makes things a
> > lot easier.

>
> > /wherever/you/want/this/mounted should be the directory you want the new
> > disk mounted at. That could /media/hdc, /home/newdrive, /harddrive2 (is
> > that what you were shooting for?).

>
> > ext3 should be the filesystem on the new drive. ext3 is the default on

> most
> > distros nowadays, but you should put the correct filename there.

>
> > defaults is the list of options for the mount. You'll probably want this
> > mounting automatically on boot, so just leave it as defaults.

>
> > And of course leave 0 0 as they are.

>
> Thanks for the feedback. I guess that /dev contents being fluid is a
> characteristic
> of Linux that I didn't know. I gather from your post that if I just choose
> a directory
> name like /harddrive2 off the root, that should be a perminant
> configuration?


Yes, it will. But it must exist before you can mount on it.

> I am just trying to set up a shared file area that any client Linux/Windows can
> access
> from my lan without any security.
>
> later.......


Ok, so you will set up Samba to share your directory /harddrive2 to
others? I would have another name for that directory, that is logical
and not connected to a physical drive like the old sudgestion. I
would name it like /srv/shares or /srv/windows. Then you can put one
or more disk to be shared through Samba under that name, without
reconfigure your Samba server or MS Windows clients.
LMV is realy flexible to resize partitions, which you should have a
look at later. It allows you to resize a partition easily later.

Good luck.

Reply With Quote