Author Topic: Resize The Partitions Of The Microdrive  (Read 2487 times)

climber

  • Full Member
  • ***
  • Posts: 189
    • View Profile
Resize The Partitions Of The Microdrive
« 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

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Resize The Partitions Of The Microdrive
« Reply #1 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.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Resize The Partitions Of The Microdrive
« Reply #2 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.
« Last Edit: February 23, 2007, 08:07:14 am by Chero »
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Resize The Partitions Of The Microdrive
« Reply #3 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
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Resize The Partitions Of The Microdrive
« Reply #4 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 ...  
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Resize The Partitions Of The Microdrive
« Reply #5 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.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo