View Single Post

   
  #2 (permalink)  
Old 01-18-2008, 07:05 AM
Peter T. Breuer
 
Posts: n/a
Default Re: Currently dual-booting, want to get rid of Windows

ido50 <idoperel@gmail.com> wrote:
> Disk /dev/sda: 80.0 GB, 80026361856 bytes
> 255 heads, 63 sectors/track, 9729 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
> /dev/sda1 1 1770 14217493+ 7 HPFS/NTFS
> /dev/sda2 * 1835 3045 9727357+ 83 Linux
> /dev/sda3 1771 1834 514080 82 Linux swap
> /dev/sda4 3046 9729 53689230 f W95 Ext'd (LBA)
> /dev/sda5 3046 9729 53689198+ 83 Linux
>
> Partition table entries are not in disk order
> ----------
> As you can see, Windows is on the first partition, Debian is on the
> second (My bootloader is GRUB), the swap is the third and a general
> data partition (ext2) is on the forth.
>
> Ever since I've installed Linux, I haven't found one reason to boot
> Windows and now I wish to delete it (Format its partition) and move the
> free space thus created to the general data partition (Without losing


What "general data partition"? One would probably goo for /, /var, /usr,
/home, and maybe /tmp and /usr/local, etc.

> any data from my Linux and general data partitions of course).
> Obviously(?) this requires moving partitions 2-5 down.


I don't see the point. You already have 9GB for what I presume is /,
which is plenty.
>
> What are the steps that I need to follow in order to perform this task?


Delete partition sda1. Boot from rescue disk, move partitions 2 3 4
and their file systems down using parted. Partition 3 you can just
delete and recreate with fdisk, and then run mkswap on it again. Expand
partition 4 upwards (you might as well just use fdisk to rewrite the
size alone, since it's only a container - there is no data invloved).
Expand partition 5 and its file system upwards inside 4 using parted.

Peter
Reply With Quote