Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-19-2008, 08:17 AM
***** charles
 
Posts: n/a
Default Can't add a second drive?

Hi all,

I am using Mint, a derivative of Ubuntu which is a derivative
of Debian so that's why I am here. The initial install of Mint
2.2 i386 went fine. I disconnected the cdrom and traded it
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
fstab both of those two actions "disappear" when I
reboot the computer. If I create the directory and mount
the hard drive manually it works fine. But the minute I
restart the computer the second hard drive disappears
since the directory I created is gone.

How do I make the directory and the install perminant?

thanks,
charles.....



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 08:17 AM
Michael Fierro
 
Posts: n/a
Default Re: Can't add a second drive?

On 2007-03-26, ***** charles <shultzjrX@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.

--
Michael Fierro (aka Biffster) biffster@NOSPAM-REALLYgmail.com
http://apt-get.biffster.org Y!: miguelito_fierro AIM: mfierro1
--
Doctor: He is another aspect of me, just as I am of him.
Jamie: Eh?
Doctor Six: I was him, he will be me.
Jamie: Who will I be?
- Doctor Who
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-19-2008, 08:18 AM
***** charles
 
Posts: n/a
Default Re: Can't add a second drive?

"Michael Fierro" <the_biffster@comcast.net> wrote in message
news:cYmdnZmPGdV00ZXbnZ2dnUVZ_qemnZ2d@comcast.com. ..
> On 2007-03-26, ***** charles <shultzjrX@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? 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.......


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-19-2008, 08:18 AM
Michael Fierro
 
Posts: n/a
Default Re: Can't add a second drive?

On 2007-03-27, ***** charles <shultzjrX@sbcglobal.net> rambled on thusly:

> Thanks for the feedback. I guess that /dev contents being fluid is a
> characteristic of Linux that I didn't know.


Everything changes. udev is very, very good stuff. It makes supporting
removable devices a whole lot easier. And does fun stuff like automatically
creating /dev/ipod (allowing mounting an iPod to /media/ipod), no matter
what sd device the iPod is actually detected at.

> I gather from your post that if I just choose a directory
> name like /harddrive2 off the root, that should be a perminant
> configuration?


Yeah, basically. The directory you are going to mount to should already
exist. Debian/Ubuntu conventions have extra devices mounting in a directory
under /media, but that's totally up to you. Create a directory with a name
you'll remember wherever you want it in the filesystem, and then set up
fstab to mount the drive there.

For example, I like to keep my multimedia files in my home directory, but
on a separate partition. So I have /home/user/media, and mount /dev/hda7
there.

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


Then getting the drive mounted is only your first step. The next steps will
be installing and configuring samba and (optionally) nfs. This is actually
how I have things set up on my Debian fileserver (though I still have
security set up, 'cuz I think not having basic security is just begging for
problems). It's not the easiest thing in the world to do, but it also isn't
that difficult, either.

--
Michael Fierro (aka Biffster) biffster@NOSPAM-REALLYgmail.com
http://apt-get.biffster.org Y!: miguelito_fierro AIM: mfierro1
--
"No, there is too much. Let me sum up. Buttercup is marry' Humperdinck
in a little less than half an hour. So all we have to do is get in, break
up the wedding, steal the princess, make our escape... after I kill Count
Rugen."
- Inigo Montoya, "The Princess Bride"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-19-2008, 08:18 AM
***** charles
 
Posts: n/a
Default Re: Can't add a second drive?

<snip>

> 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.


I kind of like the idea of /share/files. Most of the stuff I need to share
to other computers are drivers, music, iso's, customizations, files I only
want to download just once. That includes files to do network installs
to other machines. I haven't gotten much into movies yet, maybe later.
I have done samba before on other machines so that shouldn't be to
bad. The lan is not connected to the Internet at the moment so security
is less of a concern but when I do link it, I will definately add that to
the
mix. After this experiment works out I will put together a machine that
is a "real" file server with LOTS of space. Then I will probably pick a
different os other than Mint. The three candidates at the moment are
Regular Debian, Ubuntu Server and CentOS. I would add Red Hat
Enterprise Linux or Suse Server but you have to pay for those and I
would like to stick with "free" stuff. Solaris X86 is free finally but I
always got the feeling that it was a step child to the Solaris Sparc
version.

thanks all for the feedback,
charles.....


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-19-2008, 08:18 AM
ray
 
Posts: n/a
Default Re: Can't add a second drive?

On Wed, 28 Mar 2007 11:34:58 -0600, ***** charles wrote:

> <snip>
>
>> 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.

>
> I kind of like the idea of /share/files. Most of the stuff I need to share
> to other computers are drivers, music, iso's, customizations, files I only
> want to download just once. That includes files to do network installs
> to other machines. I haven't gotten much into movies yet, maybe later.
> I have done samba before on other machines so that shouldn't be to
> bad. The lan is not connected to the Internet at the moment so security
> is less of a concern but when I do link it, I will definately add that to
> the
> mix. After this experiment works out I will put together a machine that
> is a "real" file server with LOTS of space. Then I will probably pick a
> different os other than Mint. The three candidates at the moment are
> Regular Debian, Ubuntu Server and CentOS. I would add Red Hat
> Enterprise Linux or Suse Server but you have to pay for those and I
> would like to stick with "free" stuff. Solaris X86 is free finally but I
> always got the feeling that it was a step child to the Solaris Sparc
> version.
>
> thanks all for the feedback,
> charles.....


In my general experience, if you want to share files but only for a few
times download, an easy way to do that is to run apache web server on the
local machine and put the stuff to be downloaded (or a link) in /var/www
(or wherever your distro starts the web server tree). That way you don't
have to mess with samba which, IMHO, is not the easiest thing in the world
to setup. I believe there is a samba howto at www.tldp.org and the content
of the O'Reilly samba book is available free online from their web site
(though you have to dig a bit to find it). BTW - it's usually best to
describe what you're after in your initial query rather than just going
after the bits and pieces - what you have in mind may not be the best way
to proceed.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-19-2008, 08:18 AM
Harold Stevens
 
Posts: n/a
Default Re: Can't add a second drive?

In <pan.2007.03.28.17.36.48.548573@zianet.com> ray:

[Snip...]

> if you want to share files but only for a few times download, an easy way
> to do that is to run apache web server on the local machine


Yes, IME at a workplace with Doze desktops needing read/update rights for
materials/process documentation, a local Linux/Apache server was fine. It
may not fit generally, but as you mention, it might in this case. I would
certainly hope the OP gives the Apache server approach consideration.

FWIW, I agree: sometimes Samba and/or NFS are just way too much overkill.

JMO; YMMV...

--
Regards, Weird (Harold Stevens) * IMPORTANT EMAIL INFO FOLLOWS *
Pardon any bogus email addresses (wookie) in place for spambots.
Really, it's (wyrd) at airmail, dotted with net. DO NOT SPAM IT.
Kids jumping ship? Looking to hire an old-school type? Email me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-19-2008, 08:18 AM
Dan N
 
Posts: n/a
Default Re: Can't add a second drive?

On Wed, 28 Mar 2007 11:36:51 -0600, ray wrote:

> In my general experience, if you want to share files but only for a few
> times download, an easy way to do that is to run apache web server on the
> local machine and put the stuff to be downloaded (or a link) in /var/www
> (or wherever your distro starts the web server tree).


I agree with that as well. Samba can be a real pita.

You can also use webdav (web folders) with apache. This was good
with the old version of windows IE when it supported it, you could just
drag and drop files into the browser so that you could upload as well as
download. Unfortunately it's no longer supported in the new IE. It still
works with Linux though. In Ubuntu (Gnome in general?) go to
Places->Connect To Server and select webdav.

Dan



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-19-2008, 08:18 AM
***** charles
 
Posts: n/a
Default Re: Can't add a second drive?

"Harold Stevens" <wookie@aces.localdomain> wrote in message
news:slrnf0le0v.568.wyrd@aces.localdomain...
> In <pan.2007.03.28.17.36.48.548573@zianet.com> ray:
>
> [Snip...]
>
> > if you want to share files but only for a few times download, an easy

way
> > to do that is to run apache web server on the local machine

>
> Yes, IME at a workplace with Doze desktops needing read/update rights for
> materials/process documentation, a local Linux/Apache server was fine. It
> may not fit generally, but as you mention, it might in this case. I would
> certainly hope the OP gives the Apache server approach consideration.
>
> FWIW, I agree: sometimes Samba and/or NFS are just way too much overkill.


I have done samba before and I hadn't thought of doing it with apache but I
will look into it. I would guess that the security side of it would be
similar
between samba and apache? ID's and passwords.

later.....


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:38 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568