Author Topic: Reformating Microdrive With Ext2  (Read 6789 times)

develd

  • Newbie
  • *
  • Posts: 20
    • View Profile
Reformating Microdrive With Ext2
« on: February 03, 2005, 04:29:39 pm »
Hi,

for some "on the Z" developing I would like to change the partitions and filesystems on the C3000.

Right now I have these partions:

Device      Boot Start  End Blocks   Id  System
/dev/hda1      1   204    102784+   83  Linux
/dev/hda2  205  1020     411264    83  Linux
/dev/hda3 1021 7936    3485664     c  FAT32
/dev/hda4      1      1               0     0  Empty

Does anybody know, if the hda4 is important for a bootloader or something else?

When comparing the partition size of hda3 between df and du output, the gap is about 500MB. What causes this? Hidden internas or just the M$ filesystem?

#df -h /hdd3
Filesystem   Size       Used    Available
/dev/hda3   3.3G   993.2M          2.3G

#du -hs /hdd3
420.2M /hdd3

I would like to drop the hda4 partition and split the hda3 into 2GB ext2 and 1GB FAT32. I guess the FAT32 partition is needed when connecting the Z as usbstorage to a Windows box, right?

Thanks for Info,

  Oliver

m-morino

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • http://morimasa.net/
Reformating Microdrive With Ext2
« Reply #1 on: February 03, 2005, 09:28:14 pm »
Hi develd,

Quote
Device      Boot Start  End Blocks   Id  System
/dev/hda1      1   204    102784+   83  Linux
/dev/hda2  205  1020     411264    83  Linux
/dev/hda3 1021 7936    3485664     c  FAT32
/dev/hda4      1      1               0     0  Empty

... snip ...

I would like to drop the hda4 partition and split the hda3 into 2GB ext2 and 1GB FAT32. I guess the FAT32 partition is needed when connecting the Z as usbstorage to a Windows box, right?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Yes, it's desirable that /dev/hda3 is formatted with FAT32 when you play with Windoze.

The fdisk command initially introduced in the C3000 is somewhat broken and shows the incorrect partition table.
/dev/hda4 really doesn't exist.

You need newer fdisk command to do that.

[a href=\"http://morimasa.net/zaurus/binaries/fdisk]http://morimasa.net/zaurus/binaries/fdisk[/url]

HTH,

--
  m-morino
« Last Edit: February 03, 2005, 09:44:15 pm by m-morino »
m-morino

darkloran

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • http://freeloran.free.fr/zaurus.html
Reformating Microdrive With Ext2
« Reply #2 on: February 04, 2005, 03:02:21 am »
Hi develd,

Quote
You need newer fdisk command to do that.

http://morimasa.net/zaurus/binaries/fdisk

 be careful to use the fdisk mentionned bu m-morino or you'll get into big trouble [once you delete /dev/hda3 with the fdisk provided in the Z, /dev/hda4 becomes /dev/hda3 and if you create another partition it becomes /dev/hda4... and the ending 0 partition is before it)

if you were to change the /dev/hda3 in ext2 (as i did it) because you don't care of zindoze matters, be careful to change startup scripts as /root/etc/rc.d/rc.rofilesys as it tries to mount /dev/hda3 (or /dev/hdd3 depending on your Z) with fat32.

the procedure is described on the page linked in the "Full debian" topic of C3000 forum.
SL-C3000 -- Cacko1.23b1
CE-RH2 remote / Belkin usblan / Asus WL-110 / Sandisk SD UII 256MB / Sandisk CF UII 1GB
STOREX OTG Club 40GB / Belkin IR Keyboard / Logitech mouse

develd

  • Newbie
  • *
  • Posts: 20
    • View Profile
Reformating Microdrive With Ext2
« Reply #3 on: February 04, 2005, 07:29:42 am »
Thanks both of you for your infos.

I will change my partitions this weekend.

  Bye

Kerensa

  • Newbie
  • *
  • Posts: 27
    • View Profile
    • http://
Reformating Microdrive With Ext2
« Reply #4 on: February 13, 2005, 10:27:16 pm »
Newbie question here. I too would like to install Debian and still have a FAT32 partition. How do I put the binary for fdisk on my c3000 for use? Tips on were to look for such help would be welcome also.

Thank you,
Kerensa
Zaurus SL-C3000 with C3Kb1
- Thinking about Debian
Ambicon WLAN CF Card
IOData CFXGA

cradlinski

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • http://
Reformating Microdrive With Ext2
« Reply #5 on: February 15, 2005, 10:23:51 am »
Is it possible to repartition the whole drive as one big ext2 partition?  Does the C3000 require a particular partition layout?
Chris Radlinski
Plymouth, MN

develd

  • Newbie
  • *
  • Posts: 20
    • View Profile
Reformating Microdrive With Ext2
« Reply #6 on: March 17, 2005, 07:42:05 pm »
@Kerensa: found one Debian on c3k howto at http://www.eleves.ens.fr/home/leurent/zaurus.html

@Chris: You have to take care of the complex boot process while the startup scripts depend on the partitions and do some tar extraction. I still haven't figured out what happends there exactly.  With a clear defined ROM it shouldn't be a problem and I would prefer this too.

Btw. I haven't reformated the Zaurus HDD yet. I decided to create a ext2 loop device on /hdd3 with big packages like zgcc, perl, tetex and octave and mount it in rc.local to /mnt/pkgs.

I'm not shure if a Debian installation could be hold in a loop device since it must be available early in the boot process.

flagar

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://www.flagar.com
Reformating Microdrive With Ext2
« Reply #7 on: March 23, 2005, 11:52:18 am »
Hello,
I'm running successfully Debian PocketWorkstation within XQt on my SL-C3000 using 1Gb ext2 loopback file on the VFAT formatted hda3 partition on the microdrive.
I've simply followed the related HOWTO on the Debian Wiki (http://wiki.debian.net/index.cgi?PocketWorkstationXQT) first remembering to mount the loopback file at every boot before to launch the environment from the PocketWorkstation icon.

AndyTiedye

  • Newbie
  • *
  • Posts: 36
    • View Profile
Reformating Microdrive With Ext2
« Reply #8 on: March 27, 2005, 02:00:59 pm »
Has anybody tried a smaller FAT partition at hda3 and ext2 (or something more robust) on hda4?

That way, if you restore the default mount scripts, they should still succeed, because the partitions
they expect all exist.  They wouldn't mount hda4, but they wouldn't fail the boot for lack of a fat hda3.

Should be less overhead than mounting an image.

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
Reformating Microdrive With Ext2
« Reply #9 on: March 27, 2005, 06:17:36 pm »
Quote
Has anybody tried a smaller FAT partition at hda3 and ext2 (or something more robust) on hda4?

That way, if you restore the default mount scripts, they should still succeed, because the partitions
they expect all exist.  They wouldn't mount hda4, but they wouldn't fail the boot for lack of a fat hda3.

Should be less overhead than mounting an image.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=72473\"][{POST_SNAPBACK}][/a][/div]

Thats exactly what I'm going to try when I get my C3k, which isn't going to happen for a few days yet.
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive