Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Read up on parted at their homepage and make sure you can make partition changes based on the type of filesystem you have the partition as. Some partitions cannot move their start point because of filesystem used. Example of this is reiserfs filesystem.
One note you can not modify a mounted partition. It must be unmounted before it can be resized.
Is that the output you get from fdisk -l ??
It should normally give you the number of the filesystem(s) you're using as well (I don't really remember if this was different in Slack9.1).
It's probably either EXT3/2 or Reiserfs.
If you're not familiar with fdisk, you're probably better of using that "live CD" Brian1 pointed out.
I'm no Parted(the core app it uses) fan myself though, but it's much more user friendly (but also less stable and easier to screw things up).
Disk /dev/ide/host0/bus0/target0/lun0/disc: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 * 1 796 6393838+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part2 797 1031 1887637+ 5 Extended
/dev/ide/host0/bus0/target0/lun0/part5 797 954 1269103+ 82 Linux swap
/dev/ide/host0/bus0/target0/lun0/part6 955 1031 618471 83 Linux
That still doesn't seem to fill the 60GB.
Notice that your extra space needs be their (this usually means deleting existing partitions to create more space).
The main tools you'll need are resize2fs and fdisk.
While resize2fs can resize ext2/3 (ext3 needs to be remounted as ext2) it can't actually resize the partition they're on. You'll need fdisk to create a bigger partition for it. I'm not aware of an easy solution for this.
An other option would be creating a 2nd home partition and link them. Whatever you do, be sure to back up everything.
I wouldn't mess with resizing partitions. I'd just drop it and recreate it larger. You only have 79Mb of /home used. You can easily copy that small amount of data elsewhere or burn it to a CD. There's plenty of available room on your first partition for only 79Mb of data.
Copy /home somewhere else, unmount /home, drop the current /home partition (/dev/hda6), recreate a new larger partition on hda6, mount the new partition as /home, and then copy the data back. You shouldn't need to mess with you fstab since /home will still be on hda6. No reboots or anything like that either. You can do this all from within your current Mandrake. No real need to find and install parted. fdisk or cfdisk would be just fine for this simple task. You've already got fdisk installed, maybe even cfdisk (cfdisk is just a curses-based fdisk program - somewhat more GUI-like than command line fdisk).
It looks like you created a very small extended parition (the container of /dev/hda5 and /dev/hda6) and you have a lot of space empty beyond this.
If so, you can create a new home partition at the end of the drive. This is one case where you might need to log in as root, so that you can umount the /home partition. The Mandrake partitioner should make working on your partitions easier.
You could open up konsole and enter the command:
mv /home /home-old
Now you could run the partitioner program and create a new /home partition. Be sure to make it an extended partition. This will increase the size of the container /dev/hda2. You might consider changing the mount point of your old /dev/hda6 to /tmp. Make sure that you don't format /dev/hda6. When this is done, copy your home directory from what is now the /tmp/ partition to the new /home partition.
Last edited by jschiwal; 08-07-2006 at 04:02 AM.
Reason: fixed typo
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 220.127.116.11, KDE 3.5.8 and KDE 4.0 beta, Plu
The partition program is loacted in /sbin and is called fdisk if this is what you are referring to.
From what I can see from the provided info that you are not fully using the harddrive. I would do as others have said and copy the partition info of /home to a temp location. Here is what I would do.
1. Login as root from the start. No su or any other way.
2. Make a directory in the root of the drive. ' mkdir /backup '
3. Copy the contents of /home to /backup. ' cp -r /home /backup '
4. Verify the contents of /home and /backup/home are the same. The following will wipe the contents of /home.
5. Unmount /home ' umount /dev/hda6
6. Turn off swap ' swapoff '
7. Fdisk the drive ' fdisk /dev/hda '
8. Delete /dev/hda5 and /dev/hda6 logical paritions. d 6, d 5
9. Delete /dev/hda4 Extented parition. d 4
10. Create new Extended partition using the maximum amount. n
11. Create /dev/hda5 and /dev/hda6 partitions to the sizes you want.
/dev/hda5 Swap problably 128meg would be fine.
/dev/hda6 to maximum if you wish. Or leave room for more partitions for later.
12. Set the ID type of each partition. 83 for the /dev/hda6 aka /home and 82 to /dev/hda5 aka swap
13. Write and exit.
14. Format /dev/hda6 ' mkfs -t ext2 /dev/hda6 '. You might print out your /etc/fstab and see what format the partition is set to to mount.
14. For ext3 change ext2 to ext3 and same applies for reiserfs.
15. Format swap drive. ' mkswap /dev/hda5
16 Turn on Swap ' swapon '
17. Mount /dev/hda6 aka /home. ' mount /dev/hda6 /home '
18. Copy data backup to new /home ' cp -r /backup/home /home '
19. Verify contents of new /home.
20. Done. Keep /backup/home for a while to make a reboot works fine.
This is the manually command way. If it was me once you have delete the /dev/hda4-6 I would exit and save. Reboot with the Rescue CD I mentioned earlier and then use the qtparted tools from it. Might as well enlarge /dev/hda1 before making any new partitions.