-----BEGIN PGP SIGNED MESSAGE-----

On Wed, 25 Aug 1999, Andrei Ivanov wrote:

> > 
> >        Device Boot   Start      End   Blocks   Id  System
> >        /dev/hda1   *        1     4063  2047720+  83  Linux native
> >        /dev/hda2         4064     8127  2048256   83  Linux native
> >        /dev/hda3         8128     8400   137592   82  Linux swap
> 
> Wrong. You created Swap as a primary partition, but it has to be logical.
> (/dev/hda4 it will be)

No, this is wrong. A swap partition can be either primary or logical,
Linux doesn't care. Also, if swap was a logical partition it would be
/dev/hda5, not hda4 (hda4 could possibly be the extended partition
containing all logical partitions.)

> >     Syncing disks.
> >     Re-read table failed with error 16: Device or resource busy.
> >     Reboot your system to ensure the partition table is updated.
> >     My first question: why is it happening? Do I have to reboot??

AFAIK, this is normal. Go ahead and reboot, but see below first.

> This is ok. You have to reboot to update the partition table, but dont
> change the fstab file yet (you can, though)

YES change the fstab file first! Otherwise, you'll get errors like these:

>>        Partition check:
>>         hda: hda1 hda2 hda3
>>         VFS: Mounted root (ext2 filesystem) readonly.
>>         Freeing unused kernel memory: 36k freed
>>         Unable to find swap-space signature
>>         Unable to find swap-space signature

What you have now in /etc/fstab tells the system that hda1 is root, and
hda2 is swap. However, since you repartitioned, hda1 and hda2 are both
linux partitions and hda3 is now swap. But since you forgot to change
/etc/fstab, it still looks for hda2 to be swap.

Right now, your fstab should look something like this:
/dev/hda1       /       ext2    defaults,errors=remount-ro      0 1
/dev/hda2       none    swap    sw                              0 0

You need to change that to reflect your new setup. For the purposes of
this example, i'll assume that hda2 will now be /usr. Change the example
to suit.
/dev/hda1       /       ext2    defaults,errors=remount-ro      0 1
/dev/hda2       /usr    ext2    defaults,errors=remount-ro      0 2
/dev/hda3       none    swap    sw                              0 0

Note that in the far right column that root has a 1, /usr has a 2, and
swap has a 0. This tells the system to fsck hda1 in the first pass (before
remounting root rw), hda2 in the second pass (just before doing mount -a),
and not to fsck hda3 at all. In general, root should be 1, all other linux
partitions should be 2, and all non-linux partitions (swap, windows, etc)
should be 0.

> Once you boot it up, do mkswap /dev/hda4
> Then swapon

Correct except /dev/hda3 instead of hda4. swapon is technically
unnecessary if you're going to reboot right away.

You should also need to create a filesystem on hda2. "mke2fs /dev/hda2"
should be sufficient. You may need to reboot after repartitioning before
this will work right! Also, make sure hda2 is umounted before you do this.


- -- 
  finger for PGP public key.


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBN8Xobr7M/9WKZLW5AQHw+AQAoA5W4N9R/ahnWGIecmLY6R769Zwh4haa
TyQQePGuauTHR5oi5LXybtWLf/7Fdm+iUi8GZhIjqLwkO4h4VRdk/Xuh373Wxr5D
Myvm5a/36Z4sC7LtEHN6y6hUfNLtRwAG+n3iGyqpuIUjnYkmPrqmcOTchT+ydq4J
YuzHD+sB2V8=
=f+Ri
-----END PGP SIGNATURE-----

Reply via email to