moving swap partition from sys drive to RAID drive
Hello, There are several things I want to accomplish. First, I want to move a swap partition form an hd* system drive to an sd* RAID drive. Second, I want to reclaim the extra space on the hd* drive for "/" space and, lastly, not destroy the data that is on the RAID drive. Any thoughts on how to do this eloquently? # cat /etc/fstab /dev/hdc3 / ext3 acl,user_xattr 1 1 /dev/hdc1 /boot ext2 acl,user_xattr 1 2 /dev/hdc2 swap swap pri=42 0 0 /dev/sdb1 /data ext2 noatime,user_xattr,acl 1 2
From YAST:
|Device ¦ Size ¦ F ¦Type ¦ Mount ¦Start¦ End ¦Used by¦Label ¦ ¦/dev/hdc ¦ 38.2 GB¦ ¦6E040L0 ¦ ¦ 0¦ 79655¦ ¦ ¦ ¦/dev/hdc1¦ 150.1 MB¦ ¦Linux native ¦/boot ¦ 0¦ 304 ¦ ¦ ¦ ¦/dev/hdc2¦ 16.0 GB¦ ¦Linux swap ¦swap ¦ 305¦33593 ¦ ¦ ¦ ¦/dev/hdc3¦ 22.1 GB¦ ¦Linux native ¦/ ¦33594¦79655 ¦ ¦ ¦ ¦/dev/sdb ¦ 275.5 GB¦ ¦Logical Disk 00 ¦ ¦ 0¦ 35974¦ ¦ ¦ ¦/dev/sdb1¦ 275.5 GB¦ ¦Linux native ¦/data ¦ 0¦35974 ¦ ¦ ¦ ¦ Many thanks in advance, James
On Friday 10 June 2005 19:49, James D. Parra wrote:
Hello,
There are several things I want to accomplish. First, I want to move a swap partition form an hd* system drive to an sd* RAID drive.
Unless you've saved a system image on it using suspend-to-disk, swap space is perishable data, so there's no need to move it. Just delete the old and create the new.
Second, I want to reclaim the extra space on the hd* drive for "/" space
Since the swap space is physically before the root partition, this is a little tricky. Extending in place is simple, but now you first have to move the root partition to the beginning of the swap partition and then extend it. It'll take some time, but I think you can do it with parted. I know you can do it with partition magic. If you feel lucky you can even do it with dd, but I wouldn't recommend it. If you have the space for it, the easiest, safest and simplest is to take a full backup of the root partition, delete both partitions, create a new one to cover the available space, and copy back the data
and, lastly, not destroy the data that is on the RAID drive.
That's on a separate disk/disks, so it wouldn't be affected by any of this
participants (2)
-
Anders Johansson
-
James D. Parra