View previous topic :: View next topic |
Author |
Message |
javier.ldb n00b
Joined: 19 Apr 2005 Posts: 22 Location: La Plata - Argentina
|
Posted: Wed Apr 27, 2005 8:01 pm Post subject: Resizing partitions: which files to update |
|
|
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 |
|
|
javier.ldb n00b
Joined: 19 Apr 2005 Posts: 22 Location: La Plata - Argentina
|
Posted: Wed Apr 27, 2005 10:29 pm Post subject: |
|
|
What happend with my post? To stupid? To complicated? Missing info? Please, some sign to let me know!!
Thanks!
Javier |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9538 Location: beyond the rim
|
Posted: Wed Apr 27, 2005 10:51 pm Post subject: |
|
|
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 |
|
|
javier.ldb n00b
Joined: 19 Apr 2005 Posts: 22 Location: La Plata - Argentina
|
Posted: Wed Apr 27, 2005 11:00 pm Post subject: |
|
|
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 |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9538 Location: beyond the rim
|
Posted: Thu Apr 28, 2005 1:17 am Post subject: |
|
|
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 |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Mon May 09, 2005 9:44 pm Post subject: |
|
|
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. _________________ 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 |
|
|
|