Hi, I currently have a system disk with 3 partitions all ext3, but currently I am experiencing lack of space in sda1 (system disk), so I wish to resize it and make it bigger. I want to know if this would erase any data on sda1.
current
sda1 63 7807589 3903763
sda2 7807590 8803619 498015
sda3 8803620 156301487 73748934
afterwards
sda1 63 50000000 24999968.5
sda2 50000001 50996030 498014.5
sda3 50996031 156301487 52652728
sda1 is system boot disk with / root directory. sda2 is swap only about 512mb big and sda3 is what i mount to /mnt for media and stuff.
This is the current sda:
Code:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x5560f0fb
Device Boot Start End Blocks Id System
/dev/sda1 * 63 7807589 3903763+ 83 Linux
/dev/sda2 7807590 8803619 498015 83 Linux
/dev/sda3 8803620 156301487 73748934 83 Linux
I don't want to erase any stuff on my current system disk sda1 and also on the media sda3. (ofcourse sda2 is swap, thus blank)
I have already tried this on a flash disk (2gb) and this does not cause files in the 2 partitions to erase when I resize them with fdisk. But I wish to confirm this with more experienced linux experts here.
Thanks,
Ted