Author Topic: 2 Partitions On Cf Card ?  (Read 3278 times)

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
2 Partitions On Cf Card ?
« on: July 04, 2005, 12:28:30 pm »
Hope someone can please advise...

Been trying to use my C3000/Cacko3Kb1.23 to get a 128MB CF card partitioned into 2 partitions. One 'FAT partition' and one 'ext2 partition'.

I need to do this so I can install Linux on my Jornada 720 I just got...  

I used 'fdisk' to partition CF card into 2 partitions and set type of each.

One partition got labeled '/dev/hda1p1' and the other '/dev/hda1p2'.

However, now in Console, I see '/dev/hda1/ mounted as follows:
Code: [Select]
Filesystem       1k-blocks       Used      Available     Use%    Mounted on
/dev/hda1        125174         3000      122174        2           /usr/mnt.rom/cf


After using 'fdisk' as per above, I thought I needed to format each partition, right?
Using:

Code: [Select]
#mkfs -t vfat /dev/hda1p1
#mkfs -t ext2 /dev/hda1p2

However, when I tried using these commands, I got error message:

Code: [Select]
mkfs: command not found

Could someone please advise how to get this working properly??

Also, do I need to revise 'fstab' file too??

Thanks for any help.

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
2 Partitions On Cf Card ?
« Reply #1 on: July 04, 2005, 02:43:23 pm »
Well, did some searching on forums....found what I think it the answer....

http://www.zaurususergroup.org/modules.php...%2F%20SD%20card

In midst of trying out the instructions....will report back later....  

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
2 Partitions On Cf Card ?
« Reply #2 on: July 04, 2005, 04:26:32 pm »
OK, made some progress using those instructions...but now only one of the partitions, hda1 (vfat) is recognized, not hda2 (ext2)....  

Did everything per instructions including editing 'fstab' and '/etc/pcmcia/ide.opts' files and then rebooted.....

I tried to mount hda2 manually but got
Code: [Select]
#mount /mnt/cf2
Mount: Mounting /dev/hda2 on /mnt/cf2 failed: Invalid argument
#mount
.....
/dev/hda1 on /usr.rom/cf type vfat (rw, noatime)
#df -k
.....
/dev/hda1 7796 0 7796 0% /usr/mnt.rom/cf

Any ideas as to why I can't see or mount hda2 partition???

Would really appreciate some help!

Thanks,

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
2 Partitions On Cf Card ?
« Reply #3 on: July 04, 2005, 04:52:29 pm »
Just wondering if someone knows when instructions says to edit the '/etc/pcmcia/ide.opts' file and shows the text to use, do they mean to

1) delete whatever text was in file before and just insert what is shown

or

2)  do they mean to add the text shown to the existing file?

Thanks for any input.

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
2 Partitions On Cf Card ?
« Reply #4 on: July 04, 2005, 06:57:00 pm »
I think find the appropriate part of your existing file and edit accordingly, if it would make your life easier post what you have atm here and I can tell you what to put back,

Quote
However, when I tried using these commands, I got error message:
Code: [Select]
mkfs: command not foundCould someone please advise how to get this working properly??

You found the correct commands? mkfs.ext2 - you might need to install another ipk to get them.

Quote
Any ideas as to why I can't see or mount hda2 partition???

Is it listed in fstab? Is the partition type set correctly using fdisk?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
2 Partitions On Cf Card ?
« Reply #5 on: July 04, 2005, 07:14:51 pm »
Thanks for your help, lardman!

Well, made some more progress, I think in the meantime...

I've found that if I manually mount 'hda2' then it works...
Code: [Select]
mount /dev/hda2 /mnt/cf2
Don't understand why it won't auto-mount like it's supposed to do???

I did edit 'fstab' per the instructions....  

Code: [Select]
/dev/hda1     /mnt/cf   auto   defaults,noauto,noatime,user,exec,suid   0 0
 /dev/hda2     /mnt/cf2  auto   defaults,noauto,noatime,user,exec,suid   0 0

And edited '/etc/pcmcia/ide.opts' to look like this:
Code: [Select]
case "$ADDRESS" in
    *,*,*,1)
       DO_FSCK="y"
       DO_MOUNT="y"
      ;;
    *,*,*,2)
       DO_FSCK="y"
       DO_MOUNT="y"
      ;;
    *,*,*)
       PARTS="1 2"
       NO_CHECK=n
       NO_FUSER=n
      ;;
    esac

Any other suggestions???

Thanks!

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/