[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

trouble with fdisk and activate the swap



Hi,
	Recenltly, I repartitioned my harddisk. What I did is to delete
	the swap parttion(/dev/hda2), created a 2gig linux
	partition(/dev/hda2), then created a swap partition(/dev/hda3).


	My fdisk output looks like this:

	Command (m for help): p

	Disk /dev/hda: 16 heads, 63 sectors, 8400 cylinders
	Units = cylinders of 1008 * 512 bytes

	   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

	   Command (m for help): 
	
	Now, when I do a w command, I get the following:

	Syncing disks.
	Re-read table failed with error 16: Device or resource busy.
	Reboot your system to ensure the partition table is updated.

	WARNING: If you have created or modified any DOS 6.x
	partitions, please see the fdisk manual page for additional
	information.

	My first question: why is it happening? Do I have to reboot??

	Anyway I did a reboot as suggested. But linux still cannot see the
	new swap partitions created, dmesg shows the following:

	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


	My second question: How do I activate the swap partition??


	Thanks for the help.

Shao.



-- 
____________________________________________________________________________
Shao Zhang - Running Debian 2.1  ___ _               _____
Department of Communications    / __| |_  __ _ ___  |_  / |_  __ _ _ _  __ _ 
University of New South Wales   \__ \ ' \/ _` / _ \  / /| ' \/ _` | ' \/ _` |
Sydney, Australia               |___/_||_\__,_\___/ /___|_||_\__,_|_||_\__, |
Email: shao@cia.com.au                                                  |___/ 
_____________________________________________________________________________


Reply to: