Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=10
[root@Home ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda3 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sda1 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda2 on /media/Data type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
[root@Home ~]#
Take a look at the PartedMagic LiveCD. It's a small download, quick burn to CD, and is very easy to use.
You need to have free space next to any partition that you want to expand, so you might have to shrink one or more partitions in order to gain some free space, then do some partition moving in order to get things finally settled in the way you want them.
I agree PartedMagic is the best way to go if you are resizing partitions. The output of fdisk -l would also be required for further advice since we can't tell from df -h or mount if sda1 and sda2 are next to each other on the disk.
The simplest case is when they are, you need to shrink sda2, move it to make space next to sda1 and expand sda1 to take up the additional space.
Something to keep in mind is you are vulnerable to power failure etc during the partition resize, you have a not far off full 270GB partition you want to shrink. Because there is a lot of data on the partition this will take a long time - I'd expect at least several hours for this operation alone ... similar time to move the partition afterwards. If you can backup data for sda1 and sda2 at least until you have resized it will help reduce risk for you.
Given this situation I would probably try to archive data to free up disk space or move data from sda1 to sda2 to free up space.
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2946 23661568 7 HPFS/NTFS
/dev/sda3 2947 2971 200812+ 83 Linux
/dev/sda4 2972 3891 7389900 5 Extended
/dev/sda5 2972 3891 7389868+ 8e Linux LVM
/dev/sda2 3892 38914 281312256 7 HPFS/NTFS
Order on disk is sda1, sda3, sda4, sda2 - you can see from block numbers. In order to move space from sda2 to sda1 will require you to:-
resize sda2 and move to right
move sda4 to right
move sda3 to right
expand sda1 to fill available space
You will be moving every partition on the disk ... backup data - partition moves can fail just as partition resizes can
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe