Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Resizing partitions: which files to update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
javier.ldb
n00b
n00b


Joined: 19 Apr 2005
Posts: 22
Location: La Plata - Argentina

PostPosted: Wed Apr 27, 2005 8:01 pm    Post subject: Resizing partitions: which files to update Reply with quote

Hi guys. I was installed Gentoo a few weeks ago, and i'm pretty happy about it. So happy, that i'm thinking to shrink my XP partition (NTFS). I know how to do it, defrag and then use Partition Magic or qtparted, etc. My question is: which files should i modify or update to make things go fine? Maybe fstab? Maybe grub.conf? I'm not thinking to add or delete any partition, just resizing...
fdisk -l show:
Quote:
root@constantine javi # fdisk -l

Disco /dev/hda: 20.0 GB, 20020396032 bytes
255 cabezas, 63 sectores/pista, 2434 cilindros
Unidades = cilindros de 16065 * 512 = 8225280 bytes

Disposit. Inicio Comienzo Fin Bloques Id Sistema
/dev/hda1 * 1 1828 14683378+ 7 HPFS/NTFS
/dev/hda2 * 1829 1833 40162+ 83 Linux
/dev/hda3 1834 1896 506047+ 82 Linux swap / Solaris
/dev/hda4 1897 2434 4321485 83 Linux


Thanks in advance guys!!

Sorry about my english.

Javier.
La Plata
Argentina
Back to top
View user's profile Send private message
javier.ldb
n00b
n00b


Joined: 19 Apr 2005
Posts: 22
Location: La Plata - Argentina

PostPosted: Wed Apr 27, 2005 10:29 pm    Post subject: Reply with quote

What happend with my post? To stupid? To complicated? Missing info? Please, some sign to let me know!! :(

Thanks!

Javier
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9538
Location: beyond the rim

PostPosted: Wed Apr 27, 2005 10:51 pm    Post subject: Reply with quote

If you're just going to resize you don't have to edit any files. However, depending on your disc setup resizing your Linux partitions might not be possible (if they are after the Windows partition for example).
Back to top
View user's profile Send private message
javier.ldb
n00b
n00b


Joined: 19 Apr 2005
Posts: 22
Location: La Plata - Argentina

PostPosted: Wed Apr 27, 2005 11:00 pm    Post subject: Reply with quote

Quote:
However, depending on your disc setup resizing your Linux partitions might not be possible (if they are after the Windows partition for example).


What do you mean with "disc setup"? Programs like Partition Magic or Acronis Partition Expert won't let me do the job? Actually, the Linux partitions (Reiserfs) are after the Windows one.

Thank you Genone.

Cheers,

Javier.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9538
Location: beyond the rim

PostPosted: Thu Apr 28, 2005 1:17 am    Post subject: Reply with quote

Not completely sure about reiser, but at least ext2 can't change the beginning of the filesystem, so you can extend it at the tail, but not add free blocks at the beginning. I think reiser has the same limitation, but I'd have to check.
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Mon May 09, 2005 9:44 pm    Post subject: Reply with quote

Firstly watch out for defreg on XP it does defrag the files (some of them at least) but not the files space so it will not pack all your file downwards as your require.

PM will do this for you anyway so go that route to shrink you xtfs partition.

Like Genone says support for actually moving partitions is limitted, so the best thing to recover some of that space for Linux is to create a new partition between XP and your swap once you have shrunk XP.

I would suggest you use parted since it seems that most other tools (inc qtparted) will merrily renumber all you partitions without so much as a "by your leave".

This will bugger a working system until you boot from a CD and redo your fstab. The parted route should leave the rest where it was.

HTH. 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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