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:40 AM
Ronnie
 
Posts: n/a
Default Newbie: Debian install to existing partitions

Apologies if this is the wrong group. Having used various Live-CD
Linuxes for a while (each separate LiveCD 'image' stored on disc in
separate filenames and selected via Grub running under DOS), wanted to
take the plunge and install a 'proper' distro, so downloaded Deb ISOs
1 - 5. Started with the automatic installer on ISO 1 but hit two
problems; thought I'd solved the first, but not sure how to solve the
second.

Prob 1: Wanted to install to an existing partition (hdb4 ext2, 8GB),
without overwriting a little data held there, so didn't let the
installer repartition or reformat. It seemed to install fully into
that partition. There are many, many files and directories there
(inspected through a LiveCD). Assuming that's ok, for now.

Prob 2: Didn't let the installer install a new (or overwrite my
existing) Grub setup (just caution - I use Grub under DOS and wasn't
sure the installer would leave that existing arrangement in place).
But, on completion didn't know how to correctly create a Grub menulist
entry for Debian on hdb4 and after looking at the contents of hdb4
guessed at:

title Debian 4 from hdb4 ext2
kernel (hd1,3)/vmlinuz root=/dev/hdb4
initrd (hd1,3)/initrd.img
boot

When selecting this grub entry, Debian does start as far as I can
tell, but only comes up into a Linux prompt, not into a window
manager. (Should it? - I've both Gnome and KDE ISOs and used the
Gnome ISO.) Guessing that apart from anything else my Grub entry is
incorrect, could anyone point me to a reference for what the Grub
entry should be for Debian on hdb4? Though familiar-ish with Grub, I
do not know what a 'proper' Debian boot sequence should be, and I
couldn't see that in the installation notes.

Grateful for any pointers,


______________
regards,
Ron
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 08:40 AM
Michael C.
 
Posts: n/a
Default Re: Newbie: Debian install to existing partitions

On Sun, 15 Jul 2007 15:18:32 GMT,
Ronnie <me@privacy.net> wrote:

> When selecting this grub entry, Debian does start as far as I can
> tell, but only comes up into a Linux prompt, not into a window
> manager. (Should it? - I've both Gnome and KDE ISOs and used the
> Gnome ISO.) Guessing that apart from anything else my Grub entry is
> incorrect, could anyone point me to a reference for what the Grub
> entry should be for Debian on hdb4? Though familiar-ish with Grub, I
> do not know what a 'proper' Debian boot sequence should be, and I
> couldn't see that in the installation notes.


If you get to a Linux prompt, then the problem is not with grub.

See what happens if you type "startx".

If you get a message that states the command wasn't found, then you're
probably missing packages, unless you're confusing the grub prompt
with the linux prompt.

If startx works, you may want to try:

sudo aptitude install gdm

If this doesn't help, you'll probably want to post exactly what
appears on your screen.

HTH,

Michael C.
--
mjchappell@verizon.net http://mcsuper5.freeshell.org/

"You know, I used to think it was awful that life was so unfair.
Then I thought, wouldn't it be much worse if life were fair,
and all the terrible things that happen to us come because we
actually deserve them?" - Marcus Cole
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-19-2008, 08:40 AM
Rodney
 
Posts: n/a
Default Re: Newbie: Debian install to existing partitions

[edit]
>
> sudo aptitude install gdm
>
> If this doesn't help, you'll probably want to post exactly what appears on
> your screen.
>
> HTH,
>
> Michael C.


Michael, does a default install of Debian put the user in the sudoers or
are you thinking of a different distro?

Rodney

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-19-2008, 08:40 AM
Michael C.
 
Posts: n/a
Default Re: Newbie: Debian install to existing partitions

On Mon, 16 Jul 2007 03:53:10 -0700,
Rodney <me@127.0.0.1> wrote:
> [edit]
> >
> > sudo aptitude install gdm
> >
> > If this doesn't help, you'll probably want to post exactly what appears on
> > your screen.
> >
> > HTH,
> >
> > Michael C.

>
> Michael, does a default install of Debian put the user in the sudoers or
> are you thinking of a different distro?


I don't believe debian does add a user to sudo automatically.
"/etc/sudoers" is pretty well commented. man visudo.

Michael C.
--
mjchappell@verizon.net http://mcsuper5.freeshell.org/

We're from the government, we're here to help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-19-2008, 08:40 AM
Ronnie
 
Posts: n/a
Default Re: Newbie: Debian install to existing partitions

On Sun, 15 Jul 2007 19:29:42 GMT, "Michael C."
<mjchappell@verizon.net> wrote:

>If you get to a Linux prompt, then the problem is not with grub.
>

I guess that's true - I think I wanted to make sure that it hadn't
needed some extra parameter to initiate the graphical argument. But
your other advice shows that truly, Grub is not my problem.

>See what happens if you type "startx".
>
>If you get a message that states the command wasn't found, then you're
>probably missing packages

That's just what i got. As i did trying mc (midnight commander?) and
minicom.
> unless you're confusing the grub prompt with the linux prompt.
>

No - it's a linux prompt, and I can log in with either a username or
as root. (But I can only reboot from root).

I guess I hadn't really solved the problem of installing to an
existing partition. There is a large directory tree with lib and etc
and mnt and things like that, so something got installed.

I'd like to try again with the CD. I wonder if there's a way to
install that keeps a log of what happens so that I could pinpoint what
is failing?

And thanks for the help, at least I know what's happened, even though
unsure why.


______________
regards,
Ron
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-19-2008, 08:40 AM
Ronnie
 
Posts: n/a
Default Re: Newbie: Debian install to existing partitions

On Sun, 15 Jul 2007 19:29:42 GMT, "Michael C."
<mjchappell@verizon.net> wrote:

>If this doesn't help, you'll probably want to post exactly what
>appears on your screen.


Just retried, selected existing partition, it reformatted the swap and
set off. Gets about 77% through, then fails while 'installing the
base system'. I press alt-F4 and a text screen suggests a failure
setting up initramfs tools, exactly at the point 'console - tools '

This is after it asks me which kernel I want - it pre-selects 2.6 -
486 and, with an AMD Athlon, I accept that because it is presumably
486 compatible. (However, the AltF4 screen says at the point of
failure is trying to build an img(?) for 2.6.18-486 which was another
option on the screen but which I didn't accept.) If there's a way to
get more text detail I'd happily do that, but I am a bit out of my
depth here.

Although it mutters about having to re-install over the existing files
of a previous installation, I sense that there's a more fundamental
problem than just being unable to overwrite a file. Presumably the
installer accretes to itself enough authority to create and overwrite
all the files and directories it needs to?

______________
regards,
Ron
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-19-2008, 08:40 AM
sk8r-365
 
Posts: n/a
Default Re: Newbie: Debian install to existing partitions

Government satellites recorded Michael C. saying:

>
> I don't believe debian does add a user to sudo automatically.
> "/etc/sudoers" is pretty well commented. man visudo.
>


You are correct as far as Etch is concerned. I edited the file and
added myself - had to logout and in again to make it affective tho'.

I later removed my user from the list 'cause I decided to make my
user have a limited command control but have been too busy to learn
what I need to do to set only a few commands to a user via sudo.
That's an aside ... you are correct tho'.
--
sk8r-365

http://goodbye-microsoft.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-19-2008, 08:40 AM
Rodney
 
Posts: n/a
Default Re: Newbie: Debian install to existing partitions

On Mon, 16 Jul 2007 20:48:19 +0000, Ronnie wrote:

> On Sun, 15 Jul 2007 19:29:42 GMT, "Michael C." <mjchappell@verizon.net>
> wrote:
>
>>If this doesn't help, you'll probably want to post exactly what appears
>>on your screen.

>
> Just retried, selected existing partition, it reformatted the swap and set
> off. Gets about 77% through, then fails while 'installing the base
> system'. I press alt-F4 and a text screen suggests a failure setting up
> initramfs tools, exactly at the point 'console - tools '
>
> This is after it asks me which kernel I want - it pre-selects 2.6 - 486
> and, with an AMD Athlon, I accept that because it is presumably 486
> compatible. (However, the AltF4 screen says at the point of failure is
> trying to build an img(?) for 2.6.18-486 which was another option on the
> screen but which I didn't accept.) If there's a way to get more text
> detail I'd happily do that, but I am a bit out of my depth here.
>
> Although it mutters about having to re-install over the existing files of
> a previous installation, I sense that there's a more fundamental problem
> than just being unable to overwrite a file. Presumably the installer
> accretes to itself enough authority to create and overwrite all the files
> and directories it needs to?
>


Ron, it might be worthwhile to just copy the data you want to save
somewhere else and let the installer format the partition, then copy your
data back after the install. You're not running out of room on that
partition during the install are you?

Rodney

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-19-2008, 08:40 AM
Ronnie
 
Posts: n/a
Default Re: Newbie: Debian install to existing partitions

On Tue, 17 Jul 2007 05:59:11 -0700, Rodney <me@127.0.0.1> wrote:

>Ron, it might be worthwhile to just copy the data you want to save
>somewhere else and let the installer format the partition, then copy your
>data back after the install. You're not running out of room on that
>partition during the install are you?
>

Plenty of space. I did wonder whether I might have to do that - the
existing data is only about 400MB, so I can put it somewhere. The
upside is that it would remove uncertainty about existing partitions
etc - or flush out some more fundamental installation problem.

My ultimate aim is different. After getting this going on a fairly
biggish desktop with lots of disc space (and getting used to the
process and using real Debian), I want to try the same thing on a
laptop which I use heavily while out of the office. There, I will
have less disc space and less freedom with partitions, so I genuinely
was interested in installing to an existing Ext2 partition AND keeping
(quite a bit of) data. But that's aspirational, for now.

I'll take your suggestion, and thanks for the pointer.

______________
regards,
Ron
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-19-2008, 08:40 AM
Rodney
 
Posts: n/a
Default Re: Newbie: Debian install to existing partitions

On Tue, 17 Jul 2007 15:48:56 +0000, Ronnie wrote:

> On Tue, 17 Jul 2007 05:59:11 -0700, Rodney <me@127.0.0.1> wrote:
>
>>Ron, it might be worthwhile to just copy the data you want to save
>>somewhere else and let the installer format the partition, then copy your
>>data back after the install. You're not running out of room on that
>>partition during the install are you?
>>

> Plenty of space. I did wonder whether I might have to do that - the
> existing data is only about 400MB, so I can put it somewhere. The upside
> is that it would remove uncertainty about existing partitions etc - or
> flush out some more fundamental installation problem.
>
> My ultimate aim is different. After getting this going on a fairly
> biggish desktop with lots of disc space (and getting used to the process
> and using real Debian), I want to try the same thing on a laptop which I
> use heavily while out of the office. There, I will have less disc space
> and less freedom with partitions, so I genuinely was interested in
> installing to an existing Ext2 partition AND keeping (quite a bit of)
> data. But that's aspirational, for now.
>
> I'll take your suggestion, and thanks for the pointer.
>
> ______________
> regards,
> Ron


I think this is a good reason to keep your data and probably /home also on
a different partition from the one your operating system is on, it gives
you the freedom to muck-with, or even totally muck-up the install, yet
retain the data for when you get things working the way you want. I didn't
start out that way but now I understand why people recommend it and I
now keep home separate. Might also make backing up a bit easier, depending
on your method. You approach the problem similiar to the way I would, test
on something expendable before working on your mission-critical system.
I'm glad if this did help you a tiny bit and I wish you good luck. Let us
know how the install goes with a format.

Rodney
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



All times are GMT. The time now is 04:06 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.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 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776