Find the answer to your Linux question:
Results 1 to 8 of 8
Basically, I want to resize a partition and I'm wondering how that will affect linux. Here is my current fdisk -l command: lwpack@lwpack-pc:~$ sudo fdisk -l [sudo] password for lwpack: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2007
    Posts
    98

    Partition resizing question


    Basically, I want to resize a partition and I'm wondering how that will affect linux. Here is my current fdisk -l command:

    lwpack@lwpack-pc:~$ sudo fdisk -l
    [sudo] password for lwpack:

    Disk /dev/sda: 320.0 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x20000000

    Device Boot Start End Blocks Id System
    /dev/sda1 1 6 48163+ de Dell Utility
    /dev/sda2 7 1312 10485760 7 HPFS/NTFS
    /dev/sda3 * 1312 4499 25603305+ 7 HPFS/NTFS
    /dev/sda4 4500 38913 276430455 5 Extended
    /dev/sda5 4500 29995 204796588+ 7 HPFS/NTFS
    /dev/sda6 * 29996 38548 68701941 83 Linux
    /dev/sda7 38549 38913 2931831 82 Linux swap / Solaris
    lwpack@lwpack-pc:~$

    I want to add a second hard drive and transfer all data from the /dev/sda5 partition to this. Then, I want to increase the size of my vista partition (/dev/sda3) to encompass all, or at least most of, this. But I don't know how this will affect my linux partition. Will it still be able to boot? Will I have to manually change the fstab file?
    Also, if it's possible to do this (and I assume it is), would it be better to do the resizing via linux or vista?
    Thank you!

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Best way is, resize partitions using PartedMagic LiveCD. Its one of the best partition manager.
    Are planning to merge /dev/sda5 in /dev/sda3 or just shrink /dev/sda5 and move free space to /dev/sda3?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Feb 2007
    Posts
    98
    Ideally merge sda5 in sda3, but if that's too complicated then shrink sda5 and move free space to sda3

  4. $spacer_open
    $spacer_close
  5. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    If you just shrink /dev/sda5 then you wont have to edit any file in Linux. Merging is not too complicated either. You have to edit /etc/fstab and /boot/grub/menu.lst files only.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    Just Joined!
    Join Date
    Feb 2007
    Posts
    98
    Thank you!

  7. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    You are Welcome ! Do let us know how it goes.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #7
    Just Joined!
    Join Date
    Feb 2007
    Posts
    98
    Oh, one last question. When I installed my dual boot a year or so ago, I ran into a lot of trouble resizing my vista partition with gparted. After doing so Vista wouldn't boot. In fact, you helped me. You said that, "Gparted changes Partition Table stored in MBR only. on boot up, Vista finds two different copies of Partition Table and hangs."
    Would this happen again if I use Parted Magic Live CD?

  9. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Latest version of PartedMagic supports Vista and you wont face any problem.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •