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!
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.
Distribution: Mepis 3.4.3 , Ubuntu & Damm Small Linux
Posts: 119
Rep:
Hard Disk rePartition
I have Mandrake 10.1 Powerpack /KDE 3.2 installed and when it installed it allocated all fre hard disk space as
/dev/hd6 (20Gb)
And this is where the /home folder resides, now as i'm the only user, i still have 17Gb free after 3 months of usage, i want to free up some of that hard disk space, so i can put another linux version there... so i can test it (edubuntu)
So far i have backed up the contents of the /home/david directory using webins backup system...
Now i guess it is safe to
logout
login as rot
run fdsik
delete hda6
create a new partition with say 10Gb
And i am hoping this new partition will mount as home again and i can get Webmin working agian can restore my back up reboot and i will be where i left off, with 10Gb (approx) of remaining free space..
before i do this could i please ask
1) does this seem like the right idea?
2) is there an alternative way to achive the freeing up of this space?
3) Would i be advised to add LVM2 when i create the new partition etc? so i don't have to repartion again? and if so, is that a simple task..
A thank ANYONE who can give me some positive feedback.
this sounds a bit confusing.
What I would do is try to get rid of using hda6
all together for home (for your mandrake partition),
and remount home where the rest of the file system is.
Using fdisk in Mandrake is a bit like using fdisk in DOS when you've got Partition Magic. Go into the Mandrake Control Centre and in Mount Points->Partitions you'll find a nice GUI partitioning program. You can resize your disks safely (ie. no data loss), among other features.
If you need to resize the root partition (you can't resize partitions when they're in use, ie. 'mounted') just boot off the install CD and go up to the partitioning step. You can then press the reset button on your box when it gets up to the pacakge selection to stop it from reinstalling everything.
Distribution: Mepis 3.4.3 , Ubuntu & Damm Small Linux
Posts: 119
Original Poster
Rep:
thaks for both your advice...
I knoew about the Partition in MCC however as its my home partition i want to resize, i'm a bit buggered, as its in use, and there is no option (as there is in partion magic) to choose a new size, and repartition after a reboot, which would be a nice feature?
So i'm gonna go down the fdisk route guys,
so the contents of an fdisk -l as su - are
[root@ppp-58 root]# fdisk -l
Disk /dev/hda: 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 764 6136798+ 83 Linux
/dev/hda2 765 3648 23165730 5 Extended
/dev/hda5 765 904 1124518+ 82 Linux swap
/dev/hda6 905 3648 22041148+ 83 Linux
this is with my External HDD unplugged..
I had a look at Parted last night, booted off the Install DVD and it came up telling me that the block size was wrong, and to cancel or ignor, seeing as how i was feeling brave, i ignored, and tried to repartition /dev/hda6, and when i tried it it came back that the hard disk was ext2 and it couldn't repartion it (yet) now i have checked with 3 utils and /dev/hda6 is definatly ext3?
ok are we ready to continue - are you sure that hda6 and everything on it is expendable?
Do you have some sort of IM client so we can do this over chat?
I knoew about the Partition in MCC however as its my home partition i want to resize, i'm a bit buggered, as its in use, and there is no option (as there is in partion magic) to choose a new size, and repartition after a reboot, which would be a nice feature?
Click on the partition and click 'unmount', although you may have to login as root to do this. Now you can manipulate it safely. As I said before if its your root partition (or it still doesn't want to unmount it for some reason) you can reboot off the install CD and do the partitioning from there.
Its up to you wether you use diskdrake or fdisk, I just think that using fdisk for something like this is unecessarily complex and difficult and unecessarily destructive (you lose any data on any partitions you resize with fdisk).
Distribution: Mepis 3.4.3 , Ubuntu & Damm Small Linux
Posts: 119
Original Poster
Rep:
Cheers for all your help guys, I took the MCC Partition manager option, figured out how to login as roon, resized my partition by 50% and Well lost the lot, glad i had a backup...
when irebooted it came up with whole stream of errors.... for the /dev/hda6 drive..
It might be useful anyway for anyone using this information for you to put the process to change a disk partition soze using FDISK?
Anyway, i have reloaded, from scratch, and have setup my partitions how i would like them now!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.