OESF Portables Forum
General Forums => General Discussion => Topic started by: ArchiMark 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:
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:
#mkfs -t vfat /dev/hda1p1
#mkfs -t ext2 /dev/hda1p2
However, when I tried using these commands, I got error message:
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
-
Well, did some searching on forums....found what I think it the answer....
http://www.zaurususergroup.org/modules.php...%2F%20SD%20card (http://www.zaurususergroup.org/modules.php?op=modload&name=phpWiki&file=index&pagename=Multiple%20partitions%20on%20a%20CF%20%2F%20SD%20card)
In midst of trying out the instructions....will report back later....
Mark
-
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
#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
-
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
-
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,
However, when I tried using these commands, I got error message:
mkfs: command not found
Could 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.
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
-
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...
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....
/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:
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