Re: [expert] ld.so problems

2000-05-31 Thread Armand Nossaint

Lee Willis wrote:
[snip]
> 
> Erm, you're still stuck with the fact you have no swap partition though
> :(
> 
> Lee

I've run into this problem with another distro, if you need to make some
swap you can do this.

1.Use dd to allocate the amount of swap space you desire to a file on
your hard drive: 

dd if=/dev/zero of=/swapfile bs=1024 count=5

This would create a file called "/swapfile" that contains 50,000 blocks
of 1,024 bytes each (51,200,000 bytes, or 50 MB).

2.Execute sync to make sure the full 50 MB file has been written from
memory to your hard drive.

3.Use mkswap to create a swap space in the file you just made: 

mkswap -c /swapfile 5

Be sure to specify the number of 1,024 byte blocks you used to make the
swap file in the first place (in our case, it's 50,000).

4.Activate the new swap file with swapon: 

swapon /swapfile
 
If you wish to have this new swap file activate automatically every time
you start your system, add it to "/etc/fstab"; On a line by itself,
enter this:

/swapfile none swap sw

-- 
If I abhor evil, am I therefore... good!
Armand - Interview with a Vampire
Wed May 31 21:50:00 MDT 2000




Re: [expert] ld.so problems

2000-05-31 Thread Anton Graham

Submitted 31-May-00 by [EMAIL PROTECTED]:
 
| 1- there's a way to activate and make hda5 be a swap partition, which some
|kind soul will tell me about.

Of course :)  As root:

# /sbin/fdisk /dev/hda << EOF
> t
> 5
> 82
> w
> EOF
# /sbin/mkswap /dev/hda5
# /sbin/swapon

and edit your /etc/fstab appropriately.  (note that the #'s and >'s
are the prompts :p)

-- 
   _
 _|_|_
  ( )   *Anton Graham
  /v\  / <[EMAIL PROTECTED]>
/(   )X
 (m_m)   GPG ID: 18F78541
Penguin Powered!




Re: [expert] ld.so problems

2000-05-31 Thread Charles Curley

On Wed, May 31, 2000 at 12:23:36PM -0400, [EMAIL PROTECTED] wrote:
-> On 31 May, Lee Willis wrote:
-> > Charles Curley <[EMAIL PROTECTED]> writes:
-> > 
-> >> hda2 is an extended partition, both according to the file system ID and what
-> >> it does: it holds other, logical, partitions within it. hda5 is labeled 7,
-> >> NTFS or HPFS, but it really is an extended partition. I don't know how it
-> >> got created or labled, but it should never have been created, and, having
-> >> been created an extended partition, it should have been IDed as such.
-> > 
-> > As far as I can see, and from what I understand it's a logical
-> > partition, and it is perfectly legal!. Logical partitions are IDed as
-> > what they are (In this case NTFS), exactly the same way as primary
-> > partitions are. The very fact that it is "hda5" says that it is logical,
-> > it doesn't need any further IDing!
-> > 
-> 
-> So is the fact that my extended partition appears as a drive to my NT, and
-> that part of that partition is used for linux swap a problem? The way
-> Charles's drive looks like this:
-> 
->Device BootStart  End   Blocks   Id  System
-> /dev/hda1   * 1918112+  83  Linux native
-> /dev/hda210 1022  20422085  Extended
-> /dev/hda510  368   723712+  83  Linux native
-> /dev/hda6   369  727   723712+  83  Linux native
-> /dev/hda7   728  858   264064+  83  Linux native
-> /dev/hda8   859  989   264064+  83  Linux native
-> /dev/hda9   990 102266496+  82  Linux swap
-> 
-> Notice that his extended partition has *nothing* in it. All the data for the
-> partition is contained in logical partitions.

No, my extended partition has all the logical partitions in it.

Your extended partition has one logical drive in it, the NTFS logical
partition.

-> 
-> With my setup, it seems to me like the extended partition is seen by NT as
-> containing data in it Actually, I'll try rebooting in NT to see what
-> size the partition has to see if the 240-od MB of swap I allocated are the
-> size of the D drive on NT. If so, that would be my problem right there. I'll
-> have to reconfigure the extended partition on with Partition Magic to fix
-> this. I'll send another message once I've done this.

I suspect that NT sees your FAT partition as C: and the NTFS one as D:
(Unless you've been playiong with NT's disk administrator). In that case,
making either your one extended partition (hda2, if I recall correctly) or
the one logical partition (at hda5, IIRC), a swap partition will eat your
D: drive.



-> 
-> L
-> 
-> -- 
-> Laurent Duperval   "Montreal winters are an intelligence test,
-> U|Force - Java Center and we who are here have failed it."
-> Phone: (514) 282-8484 ext. 228   -Doug Camilli
-> mailto:[EMAIL PROTECTED]  Penguin Power!
-> 

-- 

-- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley




Re: [expert] ld.so problems

2000-05-31 Thread Alan Shoemaker

laurentno, his Extended partition has all of the logical
partitions (hda5 through hda10, cylinders 10 through 1022) in
it.  But let's fix your problem.
  
In fdisk you need to delete had5 and then hda2 and then add a
primary partition starting at 278 and ending on 556 and make
it a type 82 (linux swap) partition.  This will use up all
available primary partitions on that drive but it is the
simplest and least destructive solution.

Alan

P.S. by the way that's a pretty big swap file?!


[EMAIL PROTECTED] wrote:
> 
> On 31 May, Lee Willis wrote:
> > Charles Curley <[EMAIL PROTECTED]> writes:
> >
> >> hda2 is an extended partition, both according to the file system ID and what
> >> it does: it holds other, logical, partitions within it. hda5 is labeled 7,
> >> NTFS or HPFS, but it really is an extended partition. I don't know how it
> >> got created or labled, but it should never have been created, and, having
> >> been created an extended partition, it should have been IDed as such.
> >
> > As far as I can see, and from what I understand it's a logical
> > partition, and it is perfectly legal!. Logical partitions are IDed as
> > what they are (In this case NTFS), exactly the same way as primary
> > partitions are. The very fact that it is "hda5" says that it is logical,
> > it doesn't need any further IDing!
> >
> 
> So is the fact that my extended partition appears as a drive to my NT, and
> that part of that partition is used for linux swap a problem? The way
> Charles's drive looks like this:
> 
>Device BootStart  End   Blocks   Id  System
> /dev/hda1   * 1918112+  83  Linux native
> /dev/hda210 1022  20422085  Extended
> /dev/hda510  368   723712+  83  Linux native
> /dev/hda6   369  727   723712+  83  Linux native
> /dev/hda7   728  858   264064+  83  Linux native
> /dev/hda8   859  989   264064+  83  Linux native
> /dev/hda9   990 102266496+  82  Linux swap
> 
> Notice that his extended partition has *nothing* in it. All the data for the
> partition is contained in logical partitions.
> 
> With my setup, it seems to me like the extended partition is seen by NT as
> containing data in it Actually, I'll try rebooting in NT to see what
> size the partition has to see if the 240-od MB of swap I allocated are the
> size of the D drive on NT. If so, that would be my problem right there. I'll
> have to reconfigure the extended partition on with Partition Magic to fix
> this. I'll send another message once I've done this.
> 
> L
> 
> --
> Laurent Duperval   "Montreal winters are an intelligence test,
> U|Force - Java Center and we who are here have failed it."
> Phone: (514) 282-8484 ext. 228   -Doug Camilli
> mailto:[EMAIL PROTECTED]  Penguin Power!




Re: [expert] ld.so problems

2000-05-31 Thread Sebastian Dransfeld

On Wed, 31 May 2000, John Aldrich wrote:

> On Wed, 31 May 2000, you wrote:
> > [EMAIL PROTECTED] writes:
> > 
> > > On 31 May, Charles Curley wrote:
> > > > ->Device BootStart   EndBlocks   Id  System
> > > > -> /dev/hda1 1   277   2094088+   6  FAT16
> > > > -> /dev/hda2   278   556   21092405  Extended
> > > > -> /dev/hda3   *   557   563 52920   83  Linux
> > > > -> /dev/hda4   564  1268   5329800   83  Linux
> > > > -> /dev/hda5   278   556   2109208+   7  HPFS/NTFS
> > > > hda1-4 should be either primary or extended partitions.
> > 
> > They are aren't they?   1,3,4 are primary partitions, 2 is extended.
> >
> AFAIK, you can NOT have a primary partition within an
> extended partition. You can only have LOGICAL partitions
> within an extended partition.
>   John
> 

But /dev/hda5 is a logical partition, resting in /dev/hda2 (which is the
extended partition).

The ONLY difference between a logical partition and a primary partition,
is the partition number (<5 for primary, >=5 for logical), and that the
logical rest in a extended.

seb




Re: [expert] ld.so problems

2000-05-31 Thread Lee Willis

John Aldrich <[EMAIL PROTECTED]> writes:

> On Wed, 31 May 2000, you wrote:
> > [EMAIL PROTECTED] writes:
> > 
> > > On 31 May, Charles Curley wrote:
> > > > ->Device BootStart   EndBlocks   Id  System
> > > > -> /dev/hda1 1   277   2094088+   6  FAT16
> > > > -> /dev/hda2   278   556   21092405  Extended
> > > > -> /dev/hda3   *   557   563 52920   83  Linux
> > > > -> /dev/hda4   564  1268   5329800   83  Linux
> > > > -> /dev/hda5   278   556   2109208+   7  HPFS/NTFS
> > > > hda1-4 should be either primary or extended partitions.
> > 
> > They are aren't they?   1,3,4 are primary partitions, 2 is extended.
> >
> AFAIK, you can NOT have a primary partition within an
> extended partition. You can only have LOGICAL partitions
> within an extended partition.

I never said you could!   We have this:

+--+
| hda1 |
| Primary  |
+--+
| hda2 |
| Extended |
| +--+ |
| |hda5  | |
| |Logical   | |
| +--+ |
+--+
| hda3 |
| Primary  |
+--+
| hda4 |
| Primary  |
+--+

-- 
| Lee Willis  Fixed cost Internet access available @
| Application Developer  http://www.plus.net
| PlusNet Technologies Ltd
+---"PlusNet  - The smarter way to Internet"




Re: [expert] ld.so problems

2000-05-31 Thread Norman Carver

Laurent Duperval:
> I have 1299 cylinders. As far as I can see, only 1268 are used. The rest was
> supposed to be allocated to my swap. Fo some reason, it's not. Is it because
> the second partition is an NTFS partition and because of that partition 5
> should be of the same type? Here's the partition info again:
> 
> 
> ->Device BootStart   EndBlocks   Id  System
> -> /dev/hda1 1   277   2094088+   6  FAT16
> -> /dev/hda2   278   556   21092405  Extended
> -> /dev/hda3   *   557   563 52920   83  Linux
> -> /dev/hda4   564  1268   5329800   83  Linux
> -> /dev/hda5   278   556   2109208+   7  HPFS/NTFS

You can have a maximum of 4 primary/extended partitions.
This is what you have already.  Thus, you cannot create
another partition to include the rest of your disk.
If you have something like Partition Magic, you could move
the hda4 and then hda3 to the "end" of the disk, resize/extend
hda2, and then create a swap partition (logical) inside of
the extended partition.

Norm Carver




Re: [expert] ld.so problems

2000-05-31 Thread John Aldrich

On Wed, 31 May 2000, you wrote:
> [EMAIL PROTECTED] writes:
> 
> > On 31 May, Charles Curley wrote:
> > > ->Device BootStart   EndBlocks   Id  System
> > > -> /dev/hda1 1   277   2094088+   6  FAT16
> > > -> /dev/hda2   278   556   21092405  Extended
> > > -> /dev/hda3   *   557   563 52920   83  Linux
> > > -> /dev/hda4   564  1268   5329800   83  Linux
> > > -> /dev/hda5   278   556   2109208+   7  HPFS/NTFS
> > > hda1-4 should be either primary or extended partitions.
> 
> They are aren't they?   1,3,4 are primary partitions, 2 is extended.
>
AFAIK, you can NOT have a primary partition within an
extended partition. You can only have LOGICAL partitions
within an extended partition.
John




Re: [expert] ld.so problems

2000-05-31 Thread laurent . duperval

On 31 May, Lee Willis wrote:
> Charles Curley <[EMAIL PROTECTED]> writes:
> 
>> hda2 is an extended partition, both according to the file system ID and what
>> it does: it holds other, logical, partitions within it. hda5 is labeled 7,
>> NTFS or HPFS, but it really is an extended partition. I don't know how it
>> got created or labled, but it should never have been created, and, having
>> been created an extended partition, it should have been IDed as such.
> 
> As far as I can see, and from what I understand it's a logical
> partition, and it is perfectly legal!. Logical partitions are IDed as
> what they are (In this case NTFS), exactly the same way as primary
> partitions are. The very fact that it is "hda5" says that it is logical,
> it doesn't need any further IDing!
> 

So is the fact that my extended partition appears as a drive to my NT, and
that part of that partition is used for linux swap a problem? The way
Charles's drive looks like this:

   Device BootStart  End   Blocks   Id  System
/dev/hda1   * 1918112+  83  Linux native
/dev/hda210 1022  20422085  Extended
/dev/hda510  368   723712+  83  Linux native
/dev/hda6   369  727   723712+  83  Linux native
/dev/hda7   728  858   264064+  83  Linux native
/dev/hda8   859  989   264064+  83  Linux native
/dev/hda9   990 102266496+  82  Linux swap

Notice that his extended partition has *nothing* in it. All the data for the
partition is contained in logical partitions.

With my setup, it seems to me like the extended partition is seen by NT as
containing data in it Actually, I'll try rebooting in NT to see what
size the partition has to see if the 240-od MB of swap I allocated are the
size of the D drive on NT. If so, that would be my problem right there. I'll
have to reconfigure the extended partition on with Partition Magic to fix
this. I'll send another message once I've done this.

L

-- 
Laurent Duperval   "Montreal winters are an intelligence test,
U|Force - Java Center and we who are here have failed it."
Phone: (514) 282-8484 ext. 228   -Doug Camilli
mailto:[EMAIL PROTECTED]  Penguin Power!





Re: [expert] ld.so problems

2000-05-31 Thread laurent . duperval

On 31 May, Lee Willis wrote:
>> Hmmm... I don't understand. Only the 2nd partition is supposed to be
>> extended. That's an NT (or FAT?) partition. It was created (or at least
>> modified) with Partition Magic.
> 
> Correctly as far as I can see 
> 
> Erm, you're still stuck with the fact you have no swap partition though
> :(
> 

I have 1299 cylinders. As far as I can see, only 1268 are used. The rest was
supposed to be allocated to my swap. Fo some reason, it's not. Is it because
the second partition is an NTFS partition and because of that partition 5
should be of the same type? Here's the partition info again:


->Device BootStart   EndBlocks   Id  System
-> /dev/hda1 1   277   2094088+   6  FAT16
-> /dev/hda2   278   556   21092405  Extended
-> /dev/hda3   *   557   563 52920   83  Linux
-> /dev/hda4   564  1268   5329800   83  Linux
-> /dev/hda5   278   556   2109208+   7  HPFS/NTFS

L

-- 
Laurent Duperval   "Montreal winters are an intelligence test,
U|Force - Java Center and we who are here have failed it."
Phone: (514) 282-8484 ext. 228   -Doug Camilli
mailto:[EMAIL PROTECTED]  Penguin Power!





Re: [expert] ld.so problems

2000-05-31 Thread Jean-Louis Debert

Charles Curley wrote:
> 
> On Wed, May 31, 2000 at 10:52:22AM -0400, [EMAIL PROTECTED] wrote:
> -> On 31 May, Charles Curley wrote:
> -> > ->Device BootStart   EndBlocks   Id  System
> -> > -> /dev/hda1 1   277   2094088+   6  FAT16
> -> > -> /dev/hda2   278   556   21092405  Extended
> -> > -> /dev/hda3   *   557   563 52920   83  Linux
> -> > -> /dev/hda4   564  1268   5329800   83  Linux
> -> > -> /dev/hda5   278   556   2109208+   7  HPFS/NTFS
> -> > ->
> 
> hda2 is an extended partition, both according to the file system ID and what
> it does: it holds other, logical, partitions within it. hda5 is labeled 7,
> NTFS or HPFS, but it really is an extended partition. I don't know how it
> got created or labled, but it should never have been created, and, having
> been created an extended partition, it should have been IDed as such.

Are you making this up ??? All what is says is that the _logical_
partition (hda5) completely fills the _extended_ partition (hda2),
which is perfectly legal 
NOTHING (I repeat, nothing) says that hda5 is an _extended_ partition
...


-- 
Jean-Louis Debert[EMAIL PROTECTED]
74 Annemasse  France
old Linux fan




Re: [expert] ld.so problems

2000-05-31 Thread Charles Curley

On Wed, May 31, 2000 at 05:25:55PM +0200, Jean-Louis Debert wrote:
-> Charles Curley wrote:
-> > 
-> > On Wed, May 31, 2000 at 09:36:01AM -0400, [EMAIL PROTECTED] wrote:
-> > -> This is my partition table:
-> > ->
-> > -> Disk /dev/hda: 240 heads, 63 sectors, 1299 cylinders Units = cylinders of
-> > -> 15120 * 512 bytes
-> > ->
-> > ->Device BootStart   EndBlocks   Id  System
-> > -> /dev/hda1 1   277   2094088+   6  FAT16
-> > -> /dev/hda2   278   556   21092405  Extended
-> > -> /dev/hda3   *   557   563 52920   83  Linux
-> > -> /dev/hda4   564  1268   5329800   83  Linux
-> > -> /dev/hda5   278   556   2109208+   7  HPFS/NTFS
-> > ->
-> 
-> > Other, your partition table is royally clobbered.
-> > 
-> > hda1-4 should be either primary or extended partitions. Logical partitions
-> > should be hda5 and up. Notice the cylinders of hda5: it occupies the same
-> > space on the drive as hda2. You have a primary partition, hda1, and two
-> > extended partitions that overlap, then two more primary partitions. One of
-> > the extended partitions is not numbered correctly and should not even
-> > exist.
-> 
-> Sorry, this is _not_ what it says, and you seem not to have clearly
-> understood the meaning of the partition table(s).
-> A secondary partition is always in the primary table, that is, 
-> it is always one of hd?[1-4]  
-> This is just a _container_ for the _logical_ partitions that
-> are in hd?[5-63]  

Oops, you are right, I did misread it. Thanks for catching that.

I gather by "secondary" you mean what Microsoft calls an extended
partition.

-> 
-> You can perfectly well have hda1, hda3 and hda4 as primary partitions,
-> and hda2 as secondary (this is what I use at home) and here, it looks
-> like this same configuration.
-> 
-> The fact that hda5 uses the same _cylinder_ values as hda2 is 
-> perfectly correct, too. It just means that the _logical_ partition
-> (hda5) completely fills the secondary partition (hda2) which
-> is just a "container" anyway. In other words, he has only
-> one logical partition, filling completely the extended partition.
-> This is absolutely legal ... 
-> Notice also that none of the 4 partitions hda[1-4] overlap,
-> which _would_ be incorrect.
-> 
-> Having missed the beginning of the thread, I don't know what 
-> his problem is exactly, but if he wants only to reclaim the space
-> in the logical partition (hda5), I would suggest simply to 
-> delete it (with Linux fdisk) and then the space may be 
-> allocated at will inside the secondary partition (hda2) boundaries.

The original problem was that he had not created a swap partition and
wanted to know how to do so. I spotted the overlapping partitions when I
was looking at his partition table to see if there was a way short of
reinstalling.

-> 
-> -- 
-> Jean-Louis Debert[EMAIL PROTECTED]
-> 74 Annemasse  France
-> old Linux fan

-- 

-- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley




Re: [expert] ld.so problems

2000-05-31 Thread Barry Marler



--On Wednesday, May 31, 2000 8:45 AM -0600 Charles Curley 
<[EMAIL PROTECTED]> wrote:

> Logical partitions should be hda5 and up.

My entire Linux system is located on logical drives within an extended 
partition, and I've never had a problem of any sort (of which I'm aware, at 
least ;)).  What is the danger?


/b

-
Barry Marler
Department of Medical Microbiology and Parasitology
University of Georgia
Athens, GA
(706)542-0742
(706)542-0059 (fax)




Re: [expert] ld.so problems

2000-05-31 Thread Lee Willis

Charles Curley <[EMAIL PROTECTED]> writes:

> hda2 is an extended partition, both according to the file system ID and what
> it does: it holds other, logical, partitions within it. hda5 is labeled 7,
> NTFS or HPFS, but it really is an extended partition. I don't know how it
> got created or labled, but it should never have been created, and, having
> been created an extended partition, it should have been IDed as such.

As far as I can see, and from what I understand it's a logical
partition, and it is perfectly legal!. Logical partitions are IDed as
what they are (In this case NTFS), exactly the same way as primary
partitions are. The very fact that it is "hda5" says that it is logical,
it doesn't need any further IDing!

Lee
-- 
| Lee Willis  Fixed cost Internet access available @
| Application Developer  http://www.plus.net
| PlusNet Technologies Ltd
+---"PlusNet  - The smarter way to Internet"




Re: [expert] ld.so problems

2000-05-31 Thread laurent . duperval

On 31 May, Charles Curley wrote:
> 
> hda2 is an extended partition, both according to the file system ID and what
> it does: it holds other, logical, partitions within it. hda5 is labeled 7,
> NTFS or HPFS, but it really is an extended partition. I don't know how it
> got created or labled, but it should never have been created, and, having
> been created an extended partition, it should have been IDed as such.
> 
> -> 
> -> > You should immediately abandon and never use again whatever program you
> -> > used to partition this drive.
> -> > 
> -> 
> -> The first two partitions were created with PM and 3-5 were (suposed to be)
> -> created by the Mandrake install process. So you're saying I should... No, I
> -> don't think you are. :-) I have to think about what I'm gonna do about this.
> 
> You probably used a custom install (the only way to preserve the FAT
> partition), which meant you manully created the partitions with Disk Druid
> or fdisk. fdisk would have both enforced the numbering and prevented the
> overlapping partitions, and disk druid ought to have (I don't use disk
> druid, so I don't know if it does).
> 

Yes I did. I used diskdrake which is what is used by the install process.
Hmmm If I go back to partition magic and change the type of partition 2
to be NT or whatever (so that it isn't extended anymore) will everything
from that partition disappear? I don't think it's a huge problem but since I
had problems yesterday because of some programs on that partition, I'll
probably get a long and studious stare from the people in support when I ask
for CDs to reinstall...

L

-- 
Laurent Duperval   "Montreal winters are an intelligence test,
U|Force - Java Center and we who are here have failed it."
Phone: (514) 282-8484 ext. 228   -Doug Camilli
mailto:[EMAIL PROTECTED]  Penguin Power!





Re: [expert] ld.so problems

2000-05-31 Thread Lee Willis

[EMAIL PROTECTED] writes:

> On 31 May, Charles Curley wrote:
> > ->Device BootStart   EndBlocks   Id  System
> > -> /dev/hda1 1   277   2094088+   6  FAT16
> > -> /dev/hda2   278   556   21092405  Extended
> > -> /dev/hda3   *   557   563 52920   83  Linux
> > -> /dev/hda4   564  1268   5329800   83  Linux
> > -> /dev/hda5   278   556   2109208+   7  HPFS/NTFS
> > -> 
> > 
> > Other, your partition table is royally clobbered. 

I don't get it? Why?

> Kinda figgered that...
> 
> > hda1-4 should be either primary or extended partitions.

They are aren't they?   1,3,4 are primary partitions, 2 is extended.

> > Logical partitions should be hda5 and up.

Yep hda5 is a logical partition of hda2 ...hence why 

> > hda5: it occupies the same space on the drive as hda2.

> Hmmm... I don't understand. Only the 2nd partition is supposed to be
> extended. That's an NT (or FAT?) partition. It was created (or at least
> modified) with Partition Magic.

Correctly as far as I can see 

Erm, you're still stuck with the fact you have no swap partition though
:(

Lee
-- 
| Lee Willis  Fixed cost Internet access available @
| Application Developer  http://www.plus.net
| PlusNet Technologies Ltd
+---"PlusNet  - The smarter way to Internet"




RE: [expert] ld.so problems

2000-05-31 Thread Sparks, Charley

Darn.. I thought we all LOVED to reinstall our mandrake.. I have a notebook
that I do regularly just for mental hygiene 

BAFG

Charley

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 31, 2000 10:52 AM
To: [EMAIL PROTECTED]
Cc: Mandrake Expert List
Subject: Re: [expert] ld.so problems


On 31 May, Charles Curley wrote:
> ->Device BootStart   EndBlocks   Id  System
> -> /dev/hda1 1   277   2094088+   6  FAT16
> -> /dev/hda2   278   556   21092405  Extended
> -> /dev/hda3   *   557   563 52920   83  Linux
> -> /dev/hda4   564  1268   5329800   83  Linux
> -> /dev/hda5   278   556   2109208+   7  HPFS/NTFS
> -> 
> 
> Other, your partition table is royally clobbered. 
> 

Kinda figgered that...

> hda1-4 should be either primary or extended partitions. Logical partitions
> should be hda5 and up. Notice the cylinders of hda5: it occupies the same
> space on the drive as hda2. You have a primary partition, hda1, and two
> extended partitions that overlap, then two more primary partitions. One of
> the extended partitions is not numbered correctly and should not even
> exist.
> 

Hmmm... I don't understand. Only the 2nd partition is supposed to be
extended. That's an NT (or FAT?) partition. It was created (or at least
modified) with Partition Magic.

> You should immediately abandon and never use again whatever program you
> used to partition this drive.
> 

The first two partitions were created with PM and 3-5 were (suposed to be)
created by the Mandrake install process. So you're saying I should... No, I
don't think you are. :-) I have to think about what I'm gonna do about this.

> Here is what I have on a similar hard drive:
> 



> Check the cylinders for the various partitions and you will see that the
> logical partitions hda5-hda9 all fit within the extended partition hda2,
> which is as it should be. I partitioned this drive manually with Linux'
> fdisk, and it enforces the partition numbers for logical and extended and
> primary partitions.
> 

Hmmm... indeed. Hmmm...


>Device BootStart   EndBlocksId  System
> /dev/hda1 1   277   2094088+6  FAT16
> /dev/hda2   278  1268   ??? 5  Extended
> /dev/hda5   *   557   563 5292082  Linux native
> /dev/hda6   564   ??? size to suit 83  Linux swap
> /dev/hda7   ???  1268??82  Linux native
> 
> You could probably make hda5 smaller; I usually use about 16 MB for my
> /boot partitions.
> 
> Then you get to re-install Linux.
> 

Well, reinstalling isn't a problem. It's reconfiguring that's a b*tch.

> Ideally, do a total backup before you do this so you can restore
> afterwards. Short of that, back up /home, /root and /etc, so you can
> restore those when you are done, and have most of your setup.
> 

That's probably what I'll have to do. I'll maybe reinstall the whole thing
over the weekend. *Sigh*.

Thanks,

L

-- 
Laurent Duperval   "Montreal winters are an intelligence
test,
U|Force - Java Center and we who are here have failed
it."
Phone: (514) 282-8484 ext. 228   -Doug
Camilli
mailto:[EMAIL PROTECTED]  Penguin Power!





Re: [expert] ld.so problems

2000-05-31 Thread Charles Curley

On Wed, May 31, 2000 at 10:52:22AM -0400, [EMAIL PROTECTED] wrote:
-> On 31 May, Charles Curley wrote:
-> > ->Device BootStart   EndBlocks   Id  System
-> > -> /dev/hda1 1   277   2094088+   6  FAT16
-> > -> /dev/hda2   278   556   21092405  Extended
-> > -> /dev/hda3   *   557   563 52920   83  Linux
-> > -> /dev/hda4   564  1268   5329800   83  Linux
-> > -> /dev/hda5   278   556   2109208+   7  HPFS/NTFS
-> > -> 
-> > 
-> > Other, your partition table is royally clobbered. 
-> > 
-> 
-> Kinda figgered that...
-> 
-> > hda1-4 should be either primary or extended partitions. Logical partitions
-> > should be hda5 and up. Notice the cylinders of hda5: it occupies the same
-> > space on the drive as hda2. You have a primary partition, hda1, and two
-> > extended partitions that overlap, then two more primary partitions. One of
-> > the extended partitions is not numbered correctly and should not even
-> > exist.
-> > 
-> 
-> Hmmm... I don't understand. Only the 2nd partition is supposed to be
-> extended. That's an NT (or FAT?) partition. It was created (or at least
-> modified) with Partition Magic.

hda2 is an extended partition, both according to the file system ID and what
it does: it holds other, logical, partitions within it. hda5 is labeled 7,
NTFS or HPFS, but it really is an extended partition. I don't know how it
got created or labled, but it should never have been created, and, having
been created an extended partition, it should have been IDed as such.

-> 
-> > You should immediately abandon and never use again whatever program you
-> > used to partition this drive.
-> > 
-> 
-> The first two partitions were created with PM and 3-5 were (suposed to be)
-> created by the Mandrake install process. So you're saying I should... No, I
-> don't think you are. :-) I have to think about what I'm gonna do about this.

You probably used a custom install (the only way to preserve the FAT
partition), which meant you manully created the partitions with Disk Druid
or fdisk. fdisk would have both enforced the numbering and prevented the
overlapping partitions, and disk druid ought to have (I don't use disk
druid, so I don't know if it does).


-> 
-> > Here is what I have on a similar hard drive:
-> > 
-> 
-> 
-> 
-> > Check the cylinders for the various partitions and you will see that the
-> > logical partitions hda5-hda9 all fit within the extended partition hda2,
-> > which is as it should be. I partitioned this drive manually with Linux'
-> > fdisk, and it enforces the partition numbers for logical and extended and
-> > primary partitions.
-> > 
-> 
-> Hmmm... indeed. Hmmm...
-> 
-> 
-> >Device BootStart   EndBlocksId  System
-> > /dev/hda1 1   277   2094088+6  FAT16
-> > /dev/hda2   278  1268   ??? 5  Extended
-> > /dev/hda5   *   557   563 5292082  Linux native
-> > /dev/hda6   564   ??? size to suit 83  Linux swap
-> > /dev/hda7   ???  1268??82  Linux native
-> > 
-> > You could probably make hda5 smaller; I usually use about 16 MB for my
-> > /boot partitions.
-> > 
-> > Then you get to re-install Linux.
-> > 
-> 
-> Well, reinstalling isn't a problem. It's reconfiguring that's a b*tch.

Indeed. That is why I suggested you back up the directories I
indicated. Oh, and add, any other configuration files, like that for X.

-> 
-> > Ideally, do a total backup before you do this so you can restore
-> > afterwards. Short of that, back up /home, /root and /etc, so you can
-> > restore those when you are done, and have most of your setup.
-> > 
-> 
-> That's probably what I'll have to do. I'll maybe reinstall the whole thing
-> over the weekend. *Sigh*.

-- 

-- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley




Re: [expert] ld.so problems

2000-05-31 Thread laurent . duperval

On 31 May, Charles Curley wrote:
> ->Device BootStart   EndBlocks   Id  System
> -> /dev/hda1 1   277   2094088+   6  FAT16
> -> /dev/hda2   278   556   21092405  Extended
> -> /dev/hda3   *   557   563 52920   83  Linux
> -> /dev/hda4   564  1268   5329800   83  Linux
> -> /dev/hda5   278   556   2109208+   7  HPFS/NTFS
> -> 
> 
> Other, your partition table is royally clobbered. 
> 

Kinda figgered that...

> hda1-4 should be either primary or extended partitions. Logical partitions
> should be hda5 and up. Notice the cylinders of hda5: it occupies the same
> space on the drive as hda2. You have a primary partition, hda1, and two
> extended partitions that overlap, then two more primary partitions. One of
> the extended partitions is not numbered correctly and should not even
> exist.
> 

Hmmm... I don't understand. Only the 2nd partition is supposed to be
extended. That's an NT (or FAT?) partition. It was created (or at least
modified) with Partition Magic.

> You should immediately abandon and never use again whatever program you
> used to partition this drive.
> 

The first two partitions were created with PM and 3-5 were (suposed to be)
created by the Mandrake install process. So you're saying I should... No, I
don't think you are. :-) I have to think about what I'm gonna do about this.

> Here is what I have on a similar hard drive:
> 



> Check the cylinders for the various partitions and you will see that the
> logical partitions hda5-hda9 all fit within the extended partition hda2,
> which is as it should be. I partitioned this drive manually with Linux'
> fdisk, and it enforces the partition numbers for logical and extended and
> primary partitions.
> 

Hmmm... indeed. Hmmm...


>Device BootStart   EndBlocksId  System
> /dev/hda1 1   277   2094088+6  FAT16
> /dev/hda2   278  1268   ??? 5  Extended
> /dev/hda5   *   557   563 5292082  Linux native
> /dev/hda6   564   ??? size to suit 83  Linux swap
> /dev/hda7   ???  1268??82  Linux native
> 
> You could probably make hda5 smaller; I usually use about 16 MB for my
> /boot partitions.
> 
> Then you get to re-install Linux.
> 

Well, reinstalling isn't a problem. It's reconfiguring that's a b*tch.

> Ideally, do a total backup before you do this so you can restore
> afterwards. Short of that, back up /home, /root and /etc, so you can
> restore those when you are done, and have most of your setup.
> 

That's probably what I'll have to do. I'll maybe reinstall the whole thing
over the weekend. *Sigh*.

Thanks,

L

-- 
Laurent Duperval   "Montreal winters are an intelligence test,
U|Force - Java Center and we who are here have failed it."
Phone: (514) 282-8484 ext. 228   -Doug Camilli
mailto:[EMAIL PROTECTED]  Penguin Power!





Re: [expert] ld.so problems

2000-05-31 Thread Charles Curley

On Wed, May 31, 2000 at 09:36:01AM -0400, [EMAIL PROTECTED] wrote:
-> On 30 May, Civileme wrote:
-> > 
-> > There is another problem associated with this
-> > 
-> 
-> Hmmm... looks like it was never created...
-> 
-> > Where is your swap partition located physically on the disk?
-> > 
-> 
-> This is my partition table:
-> 
-> Disk /dev/hda: 240 heads, 63 sectors, 1299 cylinders Units = cylinders of
-> 15120 * 512 bytes
-> 
->Device BootStart   EndBlocks   Id  System
-> /dev/hda1 1   277   2094088+   6  FAT16
-> /dev/hda2   278   556   21092405  Extended
-> /dev/hda3   *   557   563 52920   83  Linux
-> /dev/hda4   564  1268   5329800   83  Linux
-> /dev/hda5   278   556   2109208+   7  HPFS/NTFS
-> 
-> I'm not sure what the deal is with partition 5. When I try to change it to
-> type swap with diskdrake, I get an error sayin thast the partion table is
-> full. So how do I get around that? Looks like I have no swap. I'm thinking:
-> 
-> 1- there's a way to activate and make hda5 be a swap partition, which some
->kind soul will tell me about.
-> 
-> 2- I can't do it like this and I have to repartition the disk. Ugh!
-> 
-> 3- I can't do it like this and I can merge hda5 back into hda4 and use a
->swap file.
-> 
-> 4- other?


Other, your partition table is royally clobbered. 

hda1-4 should be either primary or extended partitions. Logical partitions
should be hda5 and up. Notice the cylinders of hda5: it occupies the same
space on the drive as hda2. You have a primary partition, hda1, and two
extended partitions that overlap, then two more primary partitions. One of
the extended partitions is not numbered correctly and should not even
exist.

You should immediately abandon and never use again whatever program you
used to partition this drive.

Here is what I have on a similar hard drive:

Disk /dev/hda: 64 heads, 63 sectors, 1022 cylinders
Units = cylinders of 4032 * 512 bytes

   Device BootStart  End   Blocks   Id  System
/dev/hda1   * 1918112+  83  Linux native
/dev/hda210 1022  20422085  Extended
/dev/hda510  368   723712+  83  Linux native
/dev/hda6   369  727   723712+  83  Linux native
/dev/hda7   728  858   264064+  83  Linux native
/dev/hda8   859  989   264064+  83  Linux native
/dev/hda9   990 102266496+  82  Linux swap

Check the cylinders for the various partitions and you will see that the
logical partitions hda5-hda9 all fit within the extended partition hda2,
which is as it should be. I partitioned this drive manually with Linux'
fdisk, and it enforces the partition numbers for logical and extended and
primary partitions.

Here are the relevant portions of the matching /etc/fstab:

/dev/hda8   /   ext2defaults1 1
/dev/hda1   /boot   ext2defaults1 2
/dev/hda6   /home   ext2defaults1 2
/dev/hda5   /usrext2defaults1 2
/dev/hda7   /varext2defaults1 2
/dev/hda9   swapswapdefaults0 0


Given that, I would delete all your existing partitions except the DOS
one, and start over. Try something like:

   Device BootStart   EndBlocksId  System
/dev/hda1 1   277   2094088+6  FAT16
/dev/hda2   278  1268   ??? 5  Extended
/dev/hda5   *   557   563 5292082  Linux native
/dev/hda6   564   ??? size to suit 83  Linux swap
/dev/hda7   ???  1268??82  Linux native

You could probably make hda5 smaller; I usually use about 16 MB for my
/boot partitions.

Then you get to re-install Linux.

Ideally, do a total backup before you do this so you can restore
afterwards. Short of that, back up /home, /root and /etc, so you can
restore those when you are done, and have most of your setup.


-- 

-- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley




Re: [expert] ld.so problems

2000-05-31 Thread laurent . duperval

On 30 May, Civileme wrote:
> 
> There is another problem associated with this
> 

Hmmm... looks like it was never created...

> Where is your swap partition located physically on the disk?
> 

This is my partition table:

Disk /dev/hda: 240 heads, 63 sectors, 1299 cylinders Units = cylinders of
15120 * 512 bytes

   Device BootStart   EndBlocks   Id  System
/dev/hda1 1   277   2094088+   6  FAT16
/dev/hda2   278   556   21092405  Extended
/dev/hda3   *   557   563 52920   83  Linux
/dev/hda4   564  1268   5329800   83  Linux
/dev/hda5   278   556   2109208+   7  HPFS/NTFS

I'm not sure what the deal is with partition 5. When I try to change it to
type swap with diskdrake, I get an error sayin thast the partion table is
full. So how do I get around that? Looks like I have no swap. I'm thinking:

1- there's a way to activate and make hda5 be a swap partition, which some
   kind soul will tell me about.

2- I can't do it like this and I have to repartition the disk. Ugh!

3- I can't do it like this and I can merge hda5 back into hda4 and use a
   swap file.

4- other?

Thanks,

L

-- 
Laurent Duperval   "Montreal winters are an intelligence test,
U|Force - Java Center and we who are here have failed it."
Phone: (514) 282-8484 ext. 228   -Doug Camilli
mailto:[EMAIL PROTECTED]  Penguin Power!