SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I had a similar problem with gparted, that I wanted to use to erase some (windows) partitions and make a more simple layout for Linux: gparted didn't see any partition either. I founded a little recovery tool in the CD (can't remember its name) with which I could half recover and hopefully I could save every useful content but I ended up erasing everything and re-partitioning with cfdisk.
My guess --- only a guess -- is that when you have many partitions, among them some secondary ones, that can cause problems -- which ones exactly, I don't know unfortunately.
So my only advice is: first save everything you could miss
omitting empty partition (5)
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd924d924
Device Boot Start End Blocks Id System
/dev/hda1 1 2124 17060998+ 83 Linux
/dev/hda2 2125 9729 61087162+ f W95 Ext'd (LBA)
/dev/hda3 * 3212 7399 33640110 b W95 FAT32
/dev/hda5 2125 3211 8731264+ 83 Linux
/dev/hda6 7400 7610 1694826 82 Linux swap
/dev/hda7 7611 9728 17012803+ 7 HPFS/NTFS
The problem is that your partition table is corrupt right now; your primary hda3 partition is inside of your hda2 extended partition, thus hda3 should be a logical partition instead. Did you at some point use a Windows partition program on the drive? If so, that would probably explain how it happened, because I've seen exactly this type of problem occur with some Windows partition programs that can't seem to deal with drives that have been partitioned using linux CHS geometry (255 heads, 63 sectors/track). If you would like help fixing your partition table, how about posting:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xd924d924
Device Boot Start End Blocks Id System
/dev/hda1 63 34122059 17060998+ 83 Linux
/dev/hda2 34122060 156296384 61087162+ f W95 Ext'd (LBA)
/dev/hda3 * 51584715 118864934 33640110 b W95 FAT32
/dev/hda5 34122186 51584714 8731264+ 83 Linux
/dev/hda6 118864998 122254649 1694826 82 Linux swap
/dev/hda7 122254713 156280319 17012803+ 7 HPFS/NTFS
As highlighted in blue above, your hda3 FAT partition starts at the sector immediately following your hda5 Linux partition; that means we can't make hda3 a logical partition, because there needs to be free sectors (usually at least 63 sectors, or one track) before the partition where the EBR (Extended Boot Record) can reside. Also, since the hda3 partition physically lies between hda5 and hda6, if we let hda3 stay as a primary partition, we will also have to make hda5 a primary partition since we can't break up an extended partition with a primary partition in the middle. The disadvantage of doing that is you will have used up all your primary partitions. The other alternative is if you want to resize your hda5 partition by just 63 sectors at the end, then we could make both hda3 and hda5 logical partitions; then you would still have two primary partitions available. So I guess the main question is, what partition changes were you originally planning on making? What partition scheme do you ultimately want to end up with? Please be as specific as possible.
(The planning was only to resize hda5 from 8gb to 12 gb :P)
- Linux Partition (Ext 3) ~16-17 Gb ---- this is hda1
- Linux Swap ~ 2 Gb ---- this is hda6
- Windows XP (NTFS) ~ 16-17Gb ---- this is hda7
- Data Backup (vfat/fat32) ~ 29 Gb ---- this is hda3
- Another (Ext3) (for building purpose) ~12 Gb ----this is hda5
OK, we'll go ahead and let hda3 stay as a primary partition, and also convert hda5 into a primary partition. How about downloading the attached "partition_table.txt" file to your desktop (can be a Live CD or your Linux install), and then do:
Code:
su -
sfdisk --no-reread -f /dev/hda < /home/<username>/Desktop/partition_table.txt
Replace <username> with your user name, and please post the output of that command. Next reboot to your Live CD, and post the output of:
Code:
su -
fdisk -lu
parted /dev/hda print
If the parted command does not return any errors, you should be able to use gparted to resize your partitions as you wish now. After that you will have to reinstall Grub (assuming you are using Grub as your boot loader), which you can do with:
Disk /dev/hda: 9729 cylinders, 255 heads, 63 sectors/track Old situation: Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System /dev/hda1 0+ 2123 2124- 17060998+ 83 Linux /dev/hda2 2124 9728 7605 61087162+ f W95 Ext'd (LBA) /dev/hda3 * 3211 7398 4188 33640110 b W95 FAT32 /dev/hda4 0 - 0 0 0 Empty /dev/hda5 2124+ 3210 1087- 8731264+ 83 Linux /dev/hda6 7399+ 7609 211- 1694826 82 Linux swap /dev/hda7 7610+ 9727 2118- 17012803+ 7 HPFS/NTFS New situation: Units = sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System /dev/hda1 63 34122059 34121997 83 Linux /dev/hda2 34122186 51584714 17462529 83 Linux /dev/hda3 * 51584715 118864934 67280220 b W95 FAT32 /dev/hda4 118864935 156280319 37415385 5 Extended /dev/hda5 118864998 122254649 3389652 82 Linux swap /dev/hda6 122254713 156280319 34025607 7 HPFS/NTFS Warning: partition 2 does not start at a cylinder boundary Successfully wrote the new partition table
Re-reading the partition table ... BLKRRPART: Device or resource busy The command to re-read the partition table failed Reboot your system now, before using mkfs
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1) to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1 (See fdisk(8).)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.