You are not logged in.
Hi,
I installed arch linux and I have about 100gb dedicated to me /home partition...only about 1gb used, and I want to shrink it down lots. Is this possible? Whenever I try, it tells me the partition is already mounted, and it wont let me unmount.
Last edited by playdafunkimuzic (2009-01-19 05:35:17)
Offline
You can use a Live-cd and repartition from there, or you can boot arch directly to root session, that way you can umount yout /home and repartition
Proud Ex-Arch user.
Still an ArchLinux lover though.
Currently on Kubuntu 9.10
Offline
How do i boot directly into root session? That's what I wanted
Offline
How do i boot directly into root session? That's what I wanted
Change your /etc/inittab to start in console mode and reboot... another solution would be to lazy umount /home
umount -l /home
And then kill any session opened by pressing Alt - Ctrl - Pet Sys - E...
Proud Ex-Arch user.
Still an ArchLinux lover though.
Currently on Kubuntu 9.10
Offline
Change your /etc/inittab to start in console mode and reboot.
or starting init 1 at grub.
Offline
Okay, so i'm at the resizing stage in 'parted'
i type 'resize 4' since it's the 4th partition
currently it begins at 23.7GB, and ends at 160GB
i want to change it to, let's say, 100GB
it says, Start? ..
what should i put there, and what do i put for end? thanks.
Offline
When I do either:
"resize 4 23.7 100" or "resize 4 23.7 100 ext2" I get : Error: File system has an incompatible feature enabled
Offline
Okay, i just decided to use gparted...and I was able to shrink that partition, now with the new space i want to create an ntfs partition for windows (need 1 windows program ) but it says i can only have 4 primary partitions. what do i do?
Offline
Okay, i just decided to use gparted...and I was able to shrink that partition, now with the new space i want to create an ntfs partition for windows (need 1 windows program ) but it says i can only have 4 primary partitions. what do i do?
You will need to either consolidate Linux into 3 partitions or use logical partitions. Logical partitions are contained in a certain type of partition called an extended partition, which allows you to have many more partitions than only 4.
As far as I know, and I could be wrong, Windows doesn't like logical partitions, so you'll have to put it in a primary partition. However, Linux will happily boot from logical partitions.
Offline
Well, right now I have 4 primary for arch, one is mounted at /, one mounted at /home, one is swap and one is boot (where grub is) how can i consolidate these into 3? thanks.
Offline
Download gparted and make a cd. Use Gparted and delete the partition that you do not want. Move all your data first to the partition you are going to keep. You do not need to have a /home. You could use / for home.
you can also create an extended partition
I am sure there are many other people in this forum with better advice.
Offline
Well, is there anyway to combine the partitions without losing anything?
Offline
first of all: you don't really need /boot on separated partition
second: if this is your order (/ /home swap /boot) then you should (as I see from your first post you don't have much data on /home) copy all from /home partition to /home2 adn /boot to /boot2
then unmount /home swap and boot
rename /boot2 to /boot, reinstall grub
then use (g)parted to make whatever changes you need: i.e.
/dev/sda1 / (this don't touch as all your files are here now)
/dev/sda2 /home
/dev/sda3 /windows (ntfs)
/dev/sda4 extended
/dev/sda5 swap
format which needed, mount, move back /home2 to /home
that should be all
that is quiet rough procedure, I might be missing details but the idea as I wrote is working - I have done lots of partition changes without any loose of data
Zygfryd Homonto
Offline
Best bet in my opinion is delete swap (since it is completely unnecessary) and create an extended partition in which you can re-create swap and a new /home partition. Then simply copy all data from the old /home to the new /home and re-format the old /home as NTFS.
I believe this to be the safest route.
M*cr*s*ft: Who needs quality when you have marketing?
Offline
okay, i wrote that poorly, ther oder is /boot, /swap, /, /home (sda1,sda2, etc. respectively)
when i create /home2, what file system do i use? same for boot2
i'm a little confused. i keep /, that's because everything is there. that makes sense. now what will be in the final /dev/sda2 /home...the same stuff that was in my current home, just as a smaller partition? and is this still a primary? then i make the extended, what goes in there?
Offline
okay, i'm currently trying what pointone recommended, thanks.
Offline
OKAY. good!
I now have /hda1 as the boot
/hda2 is extended with both my home and swap
/hda3 is /
and /hda4 is ntfs for winxp
How do i add /hda4 to grub so that I can boot off windows?
Offline
/boot/grub/menu.lst
title Windows
rootnoverify (hd0,3)
makeactive
chainloader +1
Zygfryd Homonto
Offline
Okay, i did all the resizing and went back into arch to make sure everything is good. one problem, my swap partition (part of the extended partition) isn't automatically recognized. When I go to gparted inside arch, i rightcliked and hit swapon, and now it's recognized. How can i automate this upon loading?
What line do i add to /etc/fstab
the one i want is /dev/sda5
I got it. yay, i'm getting better
Last edited by playdafunkimuzic (2009-01-19 04:24:33)
Offline
swap is switched on in /etc/rc.sysinit:
status "Activating Swap" /sbin/swapon -a
/etc/fstab:
/dev/sda5 swap swap defaults 0 0
Zygfryd Homonto
Offline
Uh oh...so, I installed xp on the partition of NTFS and it would automatically boot into xp. I went into gparted, switched boot back to my boot partition. Now i get : Error loading operating system
Offline
Uh oh...so, I installed xp on the partition of NTFS and it would automatically boot into xp. I went into gparted, switched boot back to my boot partition. Now i get : Error loading operating system
you need to reinstall grub since windoze wipes it at install
btw what kind of program is the one you need to boot windows for? won't it work with virtualbox?
☃ Snowman ☃
Offline