|
Home > Archive > Linux Debian support > January 2006 > Repartitioning
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I need to change (reduce) the size of a couple of ext2 partitions and
create a new fat32 partition using that space.
Is there a tool in Debian Sarge that can accoplish this or do I need some
kind of 3rd party thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32) - GPGshell v3.47
iQEVAwUBQ95c8Pu4FzRyppzVAQKLMwgAiQ2/YONUAH6T9ECkNSjWZ5uyk9NayQSW
CkhfvlYUJ3tzLJ/ CBrXBRlvhwyaRfOxPzHkW7xR1YQGqpqpalUVeyaN
y3D38Q6eW
oIpvuwHxOvtOmEHFsiqtDD0ECfVAlYn5XVOGCtE5
m18w+Sr0AOU7ohqfflZScF+F
7kSGuaRwLL7V/hEQbtpWK5vyhmlhZT3UBZyZwt3PhfT1cMoMBBe/9jItrILWZJee
tGeezylR1qnz8QDrQwtfvwcl0d1+29vezAoSn3u1
U9CpQZQpCMeVftEi2h/YG2HN
iRbt8dV4u/77JwjWcGnEDZ8ELgr9Tbe0/SFcFBqb+MaSE5Baj0h5AQ==
=2hvW
-----END PGP SIGNATURE-----
| |
| Mike Massonnet 2006-01-30, 5:47 pm |
| Ed wrote:
> I need to change (reduce) the size of a couple of ext2 partitions and
> create a new fat32 partition using that space.
> Is there a tool in Debian Sarge that can accoplish this or do I need some
> kind of 3rd party thing?
Afaik it is not possible to reduce the size of an ext2 partition without
loosing data. I never tried out.
It's done first with fsck.ext2 then resize2fs.
man resize2fs
If you wish to shrink an ext2 partition, first use resize2fs to shrink
the size of filesystem. Then you may use fdisk(8) to shrink the size
of the partition. When shrinking the size of the partition, make sure
you do not make it smaller than the new size of the ext2 filesystem!
Kind regards,
Mike Massonnet.
--
You're too beautiful to ignore. Too much woman.
-- Kirk to Yeoman Rand, "The Enemy Within", stardate unknown
| |
| gregor herrmann 2006-01-30, 5:47 pm |
| On Mon, 30 Jan 2006 12:37:44 -0600, Ed wrote:
> Is there a tool in Debian Sarge that can accoplish this or do I need some
> kind of 3rd party thing?
(g)parted
gregor
--
.''`. http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
: :' : infos zur usenet-hierarchie at.*: http://www.usenet.at/
`. `' member of https://www.vibe.at/ | how to reply: http://got.to/quote/
`- NP: Melissa Etheridge: I Want to Be in Love
| |
|
| -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mike Massonnet <mkie@masosnnte.org> wrote in
news:43de6965$0$31842$626a54ce@news.free.fr:
> Ed wrote:
>
>
> Afaik it is not possible to reduce the size of an ext2 partition
> without loosing data. I never tried out.
>
> It's done first with fsck.ext2 then resize2fs.
>
> man resize2fs
> If you wish to shrink an ext2 partition, first use resize2fs to
> shrink the size of filesystem. Then you may use fdisk(8) to
> shrink the size of the partition. When shrinking the size of the
> partition, make sure you do not make it smaller than the new size
> of the ext2 filesystem!
I think it's worked.
I used resize2fs to shrink the size of /dev/hda6 from 8gb to 1gb, and then
fdisk to delete the old hda6 partition, create a new one 1gb in size, and
then create a new fat32 partition with the remaining 7gb of space.
I've just booted back into win98 and the new 7gb fat32 partition is there.
Once it's formatted I'll reboot debian and see if /dev/hda6 is still there
mounted as /home.
Thanks for the clue.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32) - GPGshell v3.47
iQEVAwUBQ96+u/ u4FzRyppzVAQIlnwgAmO90MP686L1O5R1L9wcvg1
4lvGzbMszx
tzXdH7R4/ Qg4ksr74Ns5YVzNccNt4zVdiSmAwF4vFokVrS9SI
ear4MtKT14MbsIw
Tpv8LaP0mNUCMkJ/ M2b+Wr2hIQWIY5BtVa+DdGk0j9U1crzwp2FL8nWb
+0HlB7Lg
k3wV+kKcZLLdwJUS1X0L/EGn9kzGdLVS/Pk+3o6vz3xZl++WO6ODv2NlP6RlUwyC
AjedAn9WkRwxuspQgX9TmDPX+uJiQ/4hBVGZ624UvboLd0F1KUB4F5Sn5UVYi1gn
MVwt1Kbnxdop2EH0833d6syn739m4JDRAToq4RVI
eBh6XnobEaGqDA==
=4CUi
-----END PGP SIGNATURE-----
--
http://lurasbookcase.com
http://peculiarplace.com
http://purrfectdomains.com
| |
| Bill Marcum 2006-01-31, 2:46 am |
| On Mon, 30 Jan 2006 12:37:44 -0600, Ed
<apostle@REMOVETHISpeculiar.homeip.net> wrote:
>
> I need to change (reduce) the size of a couple of ext2 partitions and
> create a new fat32 partition using that space.
>
> Is there a tool in Debian Sarge that can accoplish this or do I need some
> kind of 3rd party thing?
>
gpart
--
"Virtual" means never knowing where your next byte is coming from.
|
|
|
|
|