PDA

View Full Version : Partitioning?



Kowood
09-17-2004, 08:48 PM
I want to make partition for a persistent home, and I'm not sure how to do it. The hd is about 18G total, with 10G taken. And I need to make a 30-50M partition for the PH. Ho do I do this with Qtparted?

j.drake
09-17-2004, 10:16 PM
I want to make partition for a persistent home, and I'm not sure how to do it. The hd is about 18G total, with 10G taken. And I need to make a 30-50M partition for the PH. Ho do I do this with Qtparted?

Basically, you open the program and select the device. There will be both a numerical and a graphical display of the device, with existing partitions marked. As you click one of the partitions a rectangle appears to represent its size graphically, along with the numeric size. You can either use the up/down arrows to change the numeric size of the existing partition, or drag the boundaries with your mouse to change the size. The space you free up will be shown as free space. From this free space, you can create one or more partitions, in whichever format you select. Once you have it as you want, there is a button which commits your selection. IIRC, you can also write the file system to each partition within the program. It's kind of like one of those sliding tile puzzles, in that you can't change the boundaries between partitions without creating free space first - you have to either shrink or delete an adjacent partition to increase the other. But you'll figure it out. It's very intuitive.

Oh, and you may need to be root. Either enter "sudo qtparted" from the console, or "sudo passwd" to create a root password, and open it with KDE. Either way, it takes you to the same interface.

BE SURE to defrag and back up any Windows parttions, particularly NTFS partitions, before doing this. I successfully increased the size of an NTFS partition on a laptop when I ran out of room on it, so it can be done, but don't be careless.

jd

Kowood
09-17-2004, 10:25 PM
One more thing - What filesystem should I use for a PH? I tried ext3, but hda2 didn't show up under the list of partitions to select for the PH.

j.drake
09-17-2004, 10:57 PM
One more thing - What filesystem should I use for a PH? I tried ext3, but hda2 didn't show up under the list of partitions to select for the PH.

Yes, I've noticed that. Annoying, isn't it? As far as I can tell, you have two choices: Either go with ext2 and dedicate your entire partition to the PH (which is what I did), or partition as you please and create your PH as a file. The main reason I chose the former is that I had already partitioned a second HD from a Mandrake dual boot, and it seemed easiest just to use the same partitions. A lot of people use PH files, though. Since you are kind of squeezed for space, and since it seems unlikely that you will dual boot without adding space, I think I'd be inclined to partition in FAT32, and define the PH as a file within. Give it a try and let us know if you like it.

BTW, you don't have to use Qtparted to change the file system type - you can if you want, or you can open a console, and as root, issue the mkfs command. Look here (http://www.onlamp.com/linux/cmd/cmd.csp?path=m/mkfs) or in the man pages for syntax appropriate to your situation.

jd

Kowood
09-18-2004, 02:00 AM
Still having problems. Here's what I did: Opened Qtparted from KDE, then made 100M of free space in hda, then made 40M partition from the free space, then quit from Qtparted, then opened the PH creator thingy, and when it got to the spot where you choose the partition, there was nothing more than hda1 and sda1 (not sure about the 2nd one, but it was the USB/Flash drive thingy.) Do I have to save something in Qtparted or do something besides just create the partition?

j.drake
09-18-2004, 02:13 AM
If you made 100 free, then used 40 for a partition, where are the other 60?

You have to account for the space and then commit the changes.

Also, you need to format the partition you created. There's a menu item for that in Qtparted.

jd

Kowood
09-18-2004, 02:25 AM
I did format it as ext2. I just left the other 60 as free space.

j.drake
09-18-2004, 02:41 AM
sda1 is your USB thumbdrive, BTW, as you suspected.

If you want to leave 60 MB of free space, I suppose you can, but that just means that it can't be used by anything.

If you created an ext2 partition, and then formatted it as ext2 afterwards, then I don't know what more you can do with Qtparted. Must be something else.

Try rebooting. If you just created it, then your fstab is not going to recognize that it exists unless you modify the fstab or reboot and let it be autodetected. Since you are dealing with live CD, you really can't edit. I'm sure one of these smart folks could tell you what cryptic combination of of letters, numbers and symbols to put in at the console, but if it were me, I'd just reboot. When it comes up again, it should appear as a hd icon on your desktop. Be sure to make it writable before you create the PH

jd

Kowood
09-18-2004, 02:45 AM
Wait, I just created it, I don't think I formatted it. How do I format it?

firebyrd10
09-18-2004, 02:50 AM
Wait, I just created it, I don't think I formatted it. How do I format it?
If you created it with qtparted and select the type, atparted auto formats.

Also J.D. I just use kwrite, just type kwrite /etc/fstab in a root window. From there, type the drive, filesystem, and where to mount it.
The fstab is in ramdisk. (other wise how could it be created to fit your computer?)

Kowood
09-18-2004, 03:29 AM
Ok, I made 50m of free space, then made a 50M hda2 partition formatted with ext2, and then clicked "commit" in Qtparted. I got an error message that said "An error happen during ped_file_system_resize call." What's with that? And can I just make the partition in a root shell with bash or whatever?

j.drake
09-19-2004, 07:18 PM
Also J.D. I just use kwrite, just type kwrite /etc/fstab in a root window. From there, type the drive, filesystem, and where to mount it.

Interesting. I'll have to try that someday. Thanks.


The fstab is in ramdisk. (other wise how could it be created to fit your computer?)

But does it get updated other than within the initial autodetection process? For example, if I boot Knoppix, it autodetects my drives. Then, after the booting stops, I stick in a USB key (sda1) - but Knoppix doesn't know it's there and won't address it until I do something to update the fstab, either by rebooting with the USB in place or issuing a console command that I just can't remember right now with the USB in place. :oops: Right? So, if Kowood creates a partition, but cannot save a PH to it, then wouldn't he either have to issue that command or reboot to allow it to be autodetected? Anyway, sounded like a possiblity worth pursuing to me. If I'm wrong, I would very much welcome a learned explanation. :D

jd

j.drake
09-19-2004, 07:25 PM
Ok, I made 50m of free space, then made a 50M hda2 partition formatted with ext2, and then clicked "commit" in Qtparted. I got an error message that said "An error happen during ped_file_system_resize call." What's with that? And can I just make the partition in a root shell with bash or whatever?

Not sure about the Qtparted error. I haven't seen that one before. All I can suggest is that sometimes you just have to undo and redo old partitioning. But yes, you can make partitions in the console using the cfdisk command. I generally prefer the graphical interface of Qtparted, but I remember one time when it was giving me a hassle trying to erase some partitions, and cfdisk did the trick. If you ever used DOS tools like the old Norton Utilities, cfdisk has a similar interface.

jd

firebyrd10
09-19-2004, 08:08 PM
Also J.D. I just use kwrite, just type kwrite /etc/fstab in a root window. From there, type the drive, filesystem, and where to mount it.

Interesting. I'll have to try that someday. Thanks.


The fstab is in ramdisk. (other wise how could it be created to fit your computer?)

But does it get updated other than within the initial autodetection process? For example, if I boot Knoppix, it autodetects my drives. Then, after the booting stops, I stick in a USB key (sda1) - but Knoppix doesn't know it's there and won't address it until I do something to update the fstab, either by rebooting with the USB in place or issuing a console command that I just can't remember right now with the USB in place. :oops: Right? So, if Kowood creates a partition, but cannot save a PH to it, then wouldn't he either have to issue that command or reboot to allow it to be autodetected? Anyway, sounded like a possiblity worth pursuing to me. If I'm wrong, I would very much welcome a learned explanation. :D

jd

:? hmm, knoppix finds my keydrive perfectly and puts a icon on the desktop. I thought hotplug updated the fstab but it may be someother program.

Yes, if a partition is created you have to a: manually add it or b: restart and let knoppix find it. I use the latter because it alows less room to screw it up.