Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Resize ext3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
psyche
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2003
Posts: 143
Location: /usr/src/linux

PostPosted: Sat Sep 11, 2004 3:49 pm    Post subject: Resize ext3 Reply with quote

Hi
I am running low on diskspace on my /.
My partitions:

Total diskspace: 60 GB

/dev/hda1 -> Windows XP (40GB free)
/dev/hda2 -> /boot
/dev/hda3 -> swap
/dev/hda4 -> /

Is it possible to boot into windows and create a new ext3 partition from my windows partition with partitionmagic, and then merge this new partition with /dev/hda3 without deleting my data?
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Sat Sep 11, 2004 5:29 pm    Post subject: Reply with quote

It's possible. If your / partition is currently the same size or smaller than the amount of space you're going to take from the windows partition then you can do it without getting too tricky. Otherwise another drive to copy data to temporarily would be helpful.
You cannot resize and ext2/3 partition by changing the start point, only the end point. You can move ext3 partitions with parted/qtparted as long as the destination doesn't overlap the source. So as long as you make enough freespace to move the / partition back without overlapping the old you can do that then expand it. By the way, the whole operation, including resizing the windows partition(fat or ntfs), can be done from qtparted on knoppix.
Back to top
View user's profile Send private message
psyche
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2003
Posts: 143
Location: /usr/src/linux

PostPosted: Sat Sep 11, 2004 10:13 pm    Post subject: Reply with quote

I havent tried qtparted, but would I just go about and make a new ext3 from the windows partition and then merge it with the / partition without loosing any data using qtparted?
Do I have to use knoppix? Cant I just install it under gentoo?
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Sat Sep 11, 2004 10:48 pm    Post subject: Reply with quote

You can install qtparted under gentoo. But making changes the the disk that contains your / partition is generally easier to do(involves fewer reboots anyway) from a livecd. Plus. with a few exceptions, you cannot resize or move your / partition.

Additionally, at the moment parted any any application that uses libparted(eg qtparted) presently are not safe to use when running on a 2.6 kernel. So do not try to do anything to your disk with parted or qtparted from gentoo if you're using a 2.6 kernel.

I'm not sure what you mean by creating a new partition and merging it with your /. You cannot merge two ext3 partitions that are separated by other partitions unless you are using lvm or evms. And I think that's probably a bit more complexity than you want to get into right now.

You could create a new partition and copy the data /from /home or /usr, depending on what you need the space for, personal files or programs. Then delete the files from the old directory and setup fstab to mount /home or /usr on the new partition. If you do that make sure to use "cp -a" when copying.
Back to top
View user's profile Send private message
jftuga
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2004
Posts: 139
Location: Athens, GA

PostPosted: Sun Sep 12, 2004 3:20 am    Post subject: Reply with quote

This may not help you this time around, but the next time that you decide to do a clean install or get a new hard disk, you might consider using lvm2. Storage volumes created under the control of the logical volume manager can be resized and moved around almost at will.

See http://www.gentoo.org/doc/en/lvm2.xml.

I run ext3 on top of lvm2 and it works great. I have not had any problems with this setup, either.

-John
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu Aug 04, 2005 2:20 pm    Post subject: Reply with quote

Moved from Other Things Gentoo to Duplicate Threads.
See here: https://forums.gentoo.org/viewtopic-t-361417-highlight-resizing+ext3+partitions.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum