Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Device Boot Start End Blocks Id System
/dev/hda1 * 1 393 2971048+ c W95 FAT32 (LBA)
/dev/hda2 * 394 398 37800 83 Linux
/dev/hda3 399 3876 26293680 5 Extended
/dev/hda5 399 465 506488+ 82 Linux swap
/dev/hda6 466 2791 17584528+ 83 Linux
/dev/hda7 2792 2857 498928+ b W95 FAT32
That is XP on /dev/hda1, a gentoo boot partition on /dev/hda2, and a gentoo swap, gentoo root, and FAT32 partition inside an extended partition. Unfortunately, the extended partition has about 5 or 6 GB of unallocated space at the end. I would like to use this space for the 4th primary partition to install FreeBSD. Is it safe to use QTParted to shrink the extended partition and then use the allocated space to create a 4th primary partition? Or will this screw up Linux?
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
i do this kind of crap all the time. write down the starting and ending cylinders for each partition
/dev/hda5 399 465 506488+ 82 Linux swap
/dev/hda6 466 2791 17584528+ 83 Linux
/dev/hda7 2792 2857 498928+
delete your extended partition in linux, NOT windows, then recreate the extended partition for cylinders 399-2857. then recreate each of your partitions, keeping them the same type as before, and most importantly, the same starting and ending cylinders.
then you will have the same free space from 2867-the end of the disk to make another partition. if you type something wrong, exit without saving and start over. mine is similar to yours./dev/hda1 * 1 260 2088418+ 6 FAT16
/dev/hda2 261 1500 9960300 c W95 FAT32 (LBA)
/dev/hda3 1501 23000 172698750 85 Linux extended
/dev/hda4 23001 24321 10610932+ 83 Linux
/dev/hda5 1501 3500 16064968+ 83 Linux
/dev/hda6 3501 3700 1606468+ 83 Linux
/dev/hda7 3701 4000 2409718+ 83 Linux
/dev/hda8 4001 23000 152617468+ 83 Linux
parted is probably safe too, but i haven't used it for that. linux fdisk just edits the partition table and doesn't do much else. the windows fdisk will blank the first so many sectors of a partition, ruining it, and besides, will not let you create partitions by starting and ending cylinder.
if you you get a starting location cylinder wrong for a logical drive, the logical partition information will overwrite data at that cylinder. that's the important thing not to mess up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.