moving linux partitions

Jerry Feldman gerald.feldman at hp.com
Thu Aug 15 09:24:10 EDT 2002


That's very easy. Just use fdisk to change the file type of /dev/sda2. Use 
the mkfs(8) command to format that partition. Once you have done that mount 
/dev/sda2 on a convenient mount point, you can simply copy the contents of 
/dev/sdb1 to  /dev/sda1 (cp -R will work just fine). Then update 
/etc/lilo.conf and /etc/fstab. 

If you are using a boot manage other than LILO, then update its information 
to reflect your changes. 

On 15 Aug 2002 at 9:07, Ganesan M wrote:

> 
> Hi,
> 
>  I have installed SCO, Windows 2000 and Linux in my machine. I want to 
> get rid of 
> windows2000 (sounds great?) and want to move linux partition there and keep 
> the second hard 
> disk usable by both SCO and linux(is this possible??).
> 
> Can anyone give me an easiest solution please?
> 
> G.
> 
> Here are my partition tables.
> 
> [root at localhost admin]# /sbin/fdisk /dev/sda
> Command (m for help): p
> Disk /dev/sda: 255 heads, 63 sectors, 522 cylinders
> Units = cylinders of 16065 * 512 bytes
>  Device Boot Start End Blocks Id System
> /dev/sda1 * 1 131 1048572 63 GNU HURD or SysV
> Partition 1 does not end on cylinder boundary:
>  phys=(130, 138, 63) should be (130, 254, 63)
> /dev/sda2 131 521 3136329 7 HPFS/NTFS
> 
> 
> 
> [root at localhost admin]# /sbin/fdisk /dev/sdb
> Command (m for help): p
> Disk /dev/sdb: 65 heads, 62 sectors, 1019 cylinders
> Units = cylinders of 4030 * 512 bytes
>  Device Boot Start End Blocks Id System
> /dev/sdb1 * 1 953 1920264 83 Linux
> /dev/sdb2 954 1019 132990 5 Extended
> /dev/sdb5 954 1019 132959 82 Linux swap
> 
> 


-- 
Jerry Feldman
Enterprise Systems Group
Hewlett-Packard Company
200 Forest Street MRO1-3/F1
Marlboro, Ma. 01752
508-467-4315 http://www.testdrive.compaq.com/linux/




More information about the gnhlug-discuss mailing list