OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: climber on February 23, 2007, 05:40:30 am

Title: Resize The Partitions Of The Microdrive
Post by: climber on February 23, 2007, 05:40:30 am
I have pdaXrom beta3 on my SL-C3100 installed. Now I want to setup my partitions as Chero did before.


- big root (121Mb)    --> Done
- swap on SD (128Mb)  --> Done
- ide(1) : 1Gb ext2 to install apps  
- ide2 : 2Gb ext2 for data and compiling
- ide3 : 1Gb fat exchange data with my Win2K

How can I scale down my big 4GByte partition to 1GB and make the two others bigger?

Regards
climber
Title: Resize The Partitions Of The Microdrive
Post by: Capn_Fish on February 23, 2007, 07:53:16 am
You have to delete data off of your drive to do that so far as I know, but here goes:

-Unmount /mnt/ide, /mnt/ide2, and /mnt/ide3
-Do an #fdisk /dev/hda
-Type "d" for delete partition, repeat if necessary
-Type "n" for new partition. Make it 1 GB (it won't automatically put stuff in MB or GB, so you have to do some math and guess). Repeat for other partitions, making each the desired size.
-Do a "mkfs.ext2 /dev/hda1" and a "mkfs /dev/hda2" to make the first and second partitions ext2
-Do a "mkfs.vfat" on the third partition to make it FAT(32?)
Mount the partitions manually or just reboot.
Title: Resize The Partitions Of The Microdrive
Post by: Chero on February 23, 2007, 08:05:36 am
Quote
You have to delete data off of your drive to do that so far as I know, but here goes:

-Unmount /mnt/ide, /mnt/ide2, and /mnt/ide3
-Do an #fdisk /dev/hda
-Type "d" for delete partition, repeat if necessary
-Type "n" for new partition. Make it 1 GB (it won't automatically put stuff in MB or GB, so you have to do some math and guess). Repeat for other partitions, making each the desired size.
-Do a "mkfs.ext2 /dev/hda1" and a "mkfs /dev/hda2" to make the first and second partitions ext2
-Do a "mkfs.vfat" on the third partition to make it FAT(32?)
Mount the partitions manually or just reboot.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155055\"][{POST_SNAPBACK}][/a][/div]

Hi Capn_Fish,
No offence meant, but I'd add a few things to this :

No need to delete anything, fdisk will take care of that, so : all data on drive will be lost

when creating new partitions :
 "n" for new, choose primary, "1" for the first, "2" for the second
 for the size : use "+1024M" (and "+2048M" for the second one), just enter for the last one.

setting type of the partition :
 "t", choose partition number (1, 2 or 3), use type "83" for the first 2 and type "6" for the third one.

Then save the table :
"w" (write to disk).

BTW : read the instructions on screen during fdisk, they can be very helpful.

and exit fdisk.

After that you can start formatting.

Good luck.
Chero.
Title: Resize The Partitions Of The Microdrive
Post by: InSearchOf on February 23, 2007, 08:07:46 am
Quote
-Type "n" for new partition. Make it 1 GB (it won't automatically put stuff in MB or GB, so you have to do some math and guess). Repeat for other partitions, making each the desired size.

To make a 1 gig Partition... make the start the default which is usually "1" and the end "+1024MB"

Late
Title: Resize The Partitions Of The Microdrive
Post by: Chero on February 23, 2007, 08:09:46 am
Quote
Quote
-Type "n" for new partition. Make it 1 GB (it won't automatically put stuff in MB or GB, so you have to do some math and guess). Repeat for other partitions, making each the desired size.

To make a 1 gig Partition... make the start the default which is usually "1" and the end "+1024MB"

Late
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155060\"][{POST_SNAPBACK}][/a][/div]

Now I beat you ...  
Title: Resize The Partitions Of The Microdrive
Post by: Capn_Fish on February 23, 2007, 02:10:30 pm
Quote
Quote
You have to delete data off of your drive to do that so far as I know, but here goes:

-Unmount /mnt/ide, /mnt/ide2, and /mnt/ide3
-Do an #fdisk /dev/hda
-Type "d" for delete partition, repeat if necessary
-Type "n" for new partition. Make it 1 GB (it won't automatically put stuff in MB or GB, so you have to do some math and guess). Repeat for other partitions, making each the desired size.
-Do a "mkfs.ext2 /dev/hda1" and a "mkfs /dev/hda2" to make the first and second partitions ext2
-Do a "mkfs.vfat" on the third partition to make it FAT(32?)
Mount the partitions manually or just reboot.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155055\"][{POST_SNAPBACK}][/a][/div]

Hi Capn_Fish,
No offence meant, but I'd add a few things to this :

No need to delete anything, fdisk will take care of that, so : all data on drive will be lost

when creating new partitions :
 "n" for new, choose primary, "1" for the first, "2" for the second
 for the size : use "+1024M" (and "+2048M" for the second one), just enter for the last one.

setting type of the partition :
 "t", choose partition number (1, 2 or 3), use type "83" for the first 2 and type "6" for the third one.

Then save the table :
"w" (write to disk).

BTW : read the instructions on screen during fdisk, they can be very helpful.

and exit fdisk.

After that you can start formatting.

Good luck.
Chero.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155058\"][{POST_SNAPBACK}][/a][/div]
None taken! I may not have said it clearly, but I meant that you would lose your data from formatting the drive, not that you had to delete everything first.