Author Topic: Some Infos About The Partitionning On A C3k  (Read 2603 times)

Mieszko

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • http://mieszko.hautetfort.com
Some Infos About The Partitionning On A C3k
« on: May 20, 2006, 12:10:26 pm »
hi guys (and girls) !

i need some help, i've got a c3k and i want to bring it back to the factory settings (is from scratch the correct definition ?)
so, i launch my Z with the key combo D & B, i've got a minishell and i'm able to launch fdisk.
i've deleted all the partition (fdisk then p, then d followed by the partition number etc etc) and quit with w in order to save modification.
an fdisk -l /dev/hda says :
Code: [Select]
#fdisk -l /dev/hda

Disk /dev/hda: 4095 MB, 4095737856 bytes
16 heads, 63 sectors/track, 7936 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

    Device Boot    Start           End      Blocks     Id    System

then i want to recreate the new partitions as the Trisoft's readme says (in the SLC3000SYSPART.zip archive avaible on the trisoft.de website. The readme explain the partition plan as :
Quote
Contents of the system-partitions for the SL-C3000
TRIsoft / Marc Stephan / April 11th, 2006

Use the information in this document at your own risk.
TRIsoft is not liable for any damages that may result from
these informations.


SL-C3000 HDD-Partition table:
/dev/hda1  Start 1  End 204  Blocks 102784+  id 83 System Linux
/dev/hda2  Start 205 End 1020  Blocks 411264  id 83 System Linux
/dev/hda3  Start 1021 End 7936 Blocks 3485664 id c System Win95 FAT32 (LBA)


Note:
While using the fdisk on the Zaurus, double check that you set the
correct parameters for the drive. They have to be:
16 heads / 63 sectors/track / 7936 cylinders

Format the partitions with:
mke2fs -j /dev/hda1
mke2fs -j /dev/hda2
mkfs.vfat -F 32 /dev/hda3


/hda1 is a 97.2 MB partition containing the "Rom".
/hda2 is a 388.9 MB partition containing your "normal" filesystem.

The contents of /hda2 will be restored from the information in /hda1 if you
perform a factory reset (the thingy with the "OK"+PwrOn menu).
but when i want to create my first partition fdsik ask me :
Code: [Select]
Command action
    e   extended
    p   primary partition (1-4)
i don't know which choise i need to apply. E or P ??

Thanks for your help !!
i think that i'm coming back with a lot of another question (if i don't find information in the many threads ...)

ps: excuse me for my poor english (i'm french), if you can make soft answers, it would be appreciate  

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Some Infos About The Partitionning On A C3k
« Reply #1 on: May 20, 2006, 12:26:43 pm »
p, your english is just fine, better than most
« Last Edit: May 20, 2006, 12:27:37 pm by bam »
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Mieszko

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • http://mieszko.hautetfort.com
Some Infos About The Partitionning On A C3k
« Reply #2 on: May 22, 2006, 07:04:10 am »
Thx Bam for your funny answer   i try to communicate by the best way i can

i'm back, always with the same issue, but a little bit different.
now my fdisk says :
Code: [Select]
#fdisk -l /dev/hda

Disk /dev/hda: 4095 MB, 4095737856 bytes
16 heads, 63 sectors/track, 7936 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot    Start           End      Blocks     Id    System
/dev/hda1               1           204       102784+ 83   Linux
/dev/hda2            205          1020      411264   83   Linux
/dev/hda3               1           1          0              0   Empty
Partition 3 does not end on cylinder boundary.
/dev/hda4           7936         7936      504        83   Linux
normally /dev/hda3 will not be this kind of partition, so i type d in fdisk to delete but, i've got a strange error message in fdisk
Code: [Select]
Warning partition 3 has empty typeso i want to set a type to this partition but, is the type of the partition is the same of the id ? can i assigne a 83 id to the /dev/hda3 and then delete the partition ?
type = id ? edit => ok, type is the id.

when i want to assign id 83 to /dev/hda3, i've got this error message
Partition 3 does not exist yet !

it's strange if the /dev/hda3 doesn't exist but i can see it in the table of partition (with the p option)
anyone has an idea ?

Thx for your help to a Z and fdisk newbie
« Last Edit: May 22, 2006, 07:08:31 am by Mieszko »

ced

  • Full Member
  • ***
  • Posts: 225
    • View Profile
    • http://
Some Infos About The Partitionning On A C3k
« Reply #3 on: May 22, 2006, 07:34:12 am »
Voila --> RTFM
SL-5600, kernel 2.6.16 + GPE from .dev
Ethernet Socket LP-E
Viking 256M SD

TRIsoft

  • Sr. Member
  • ****
  • Posts: 332
    • View Profile
    • http://www.trisoft.de
Some Infos About The Partitionning On A C3k
« Reply #4 on: May 22, 2006, 07:52:24 am »
Hi Mieszko,

instead of RTFM for the next hours, here's the trick:

Create the partitions backwards. Start with #3, then #2 and #1.

We're still discussing if fdisk is just buggy or trying to be funny  

///TRIsoft

Marc Stephan
(Voting for buggy   )

Mieszko

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • http://mieszko.hautetfort.com
Some Infos About The Partitionning On A C3k
« Reply #5 on: May 22, 2006, 08:35:20 am »
Quote
Hi Mieszko,

instead of RTFM for the next hours, here's the trick:

Create the partitions backwards. Start with #3, then #2 and #1.

We're still discussing if fdisk is just buggy or trying to be funny   

///TRIsoft

Marc Stephan
(Voting for buggy   )
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128047\"][{POST_SNAPBACK}][/a][/div]

thank you Marc !!
my 3 partitions are okay with your trick !! but, i still have a 4th partition /dev/hda4 and i can't delete it (the same error message : warning : partition 4 has empty type)
when i create my 3 partitions, i've choose the p option (primary partition (1-4))
i'm going to read the manual this night, at home

Thx again for your help guys !!
« Last Edit: May 22, 2006, 08:37:23 am by Mieszko »