OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: whit on December 11, 2005, 09:57:44 pm
-
On a 3100 under pdaX it looks like fstab isn't the controlling file. I went and added instructions to mount swap and put another new hard drive position where I wanted it, but neither happened, and /dev/hda2 ended up at /mnt/ide2 again rather than where I'd assigned it. So I guess fstab is vestigial? Where does the initial mounting sequence take its values from?
-
same on my 6k w/ 6 gig hitachi.
-
look in /etc/sdcontrol for the sd card
and in /etc/pcmcia/ide and ide.opts for the cf.
-
look in /etc/sdcontrol for the sd card
and in /etc/pcmcia/ide and ide.opts for the cf.
OK I give. I've spent ages trying to get the pcmcia mechanism to automount the partitions on the microdrive to no avail.
My HDD is partitioned as follows:
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 20 10048+ 83 Linux
/dev/hda2 21 40 10080 83 Linux
/dev/hda3 41 4885 2441880 c W95 FAT32 (LBA)
/dev/hda4 4886 7936 1537704 5 Extended
/dev/hda5 4886 7405 1270048+ 83 Linux
/dev/hda6 7406 7936 267592+ 82 Linux swap
My /etc/pcmcia/ide.opts looks like:
case "$ADDRESS" in
*,0,*,1)
FATOPTS="-o noatime,quiet,umask=000,iocharset=utf8"
DO_MOUNT="y"
MOUNTPT="/mnt/cf"
;;
*,1,*,1)
DO_MOUNT="n"
MOUNTPT="/mnt/ide"
;;
*,1,*,2)
DO_MOUNT="n"
MOUNTPT="/mnt/ide2"
;;
*,1,*,3)
DO_MOUNT="y"
FATOPTS="-o noatime,quiet,umask=000,iocharset=utf8"
MOUNTPT="/mnt/ide3"
;;
*,1,*,5)
DO_MOUNT="y"
OPTS="-o noatime,umask=000"
FSTYPE="ext3"
MOUNTPT="/mnt/hd"
;;
*,1,*)
PARTS="3 5"
# Card eject policy options
NO_CHECK=n
NO_FUSER=n
;;
esac
My objective is to automount partition 3 (vfat), and partition 5 (ext3). Try as I might I cannot get both partitions to mount. More specifically I cannot get partition 5 to mount with other partitions.
Eg:
PARTS="3 5" Partition 3 is mounted
PARTS="5 3" Partition 5 is mounted
PARTS="1 2 3 5" Partitions 1, 2 & 3 are mounted
NB in the last example I had used DO_MOUNT="n" for partitions 1 and 2.
Any help much appreciated
-- cheers
-
look in /etc/sdcontrol for the sd card
and in /etc/pcmcia/ide and ide.opts for the cf.
OK I give. I've spent ages trying to get the pcmcia mechanism to automount the partitions on the microdrive to no avail.
My HDD is partitioned as follows:
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 20 10048+ 83 Linux
/dev/hda2 21 40 10080 83 Linux
/dev/hda3 41 4885 2441880 c W95 FAT32 (LBA)
/dev/hda4 4886 7936 1537704 5 Extended
/dev/hda5 4886 7405 1270048+ 83 Linux
/dev/hda6 7406 7936 267592+ 82 Linux swap
My /etc/pcmcia/ide.opts looks like:
case "$ADDRESS" in
*,0,*,1)
FATOPTS="-o noatime,quiet,umask=000,iocharset=utf8"
DO_MOUNT="y"
MOUNTPT="/mnt/cf"
;;
*,1,*,1)
DO_MOUNT="n"
MOUNTPT="/mnt/ide"
;;
*,1,*,2)
DO_MOUNT="n"
MOUNTPT="/mnt/ide2"
;;
*,1,*,3)
DO_MOUNT="y"
FATOPTS="-o noatime,quiet,umask=000,iocharset=utf8"
MOUNTPT="/mnt/ide3"
;;
*,1,*,5)
DO_MOUNT="y"
OPTS="-o noatime,umask=000"
FSTYPE="ext3"
MOUNTPT="/mnt/hd"
;;
*,1,*)
PARTS="3 5"
# Card eject policy options
NO_CHECK=n
NO_FUSER=n
;;
esac
My objective is to automount partition 3 (vfat), and partition 5 (ext3). Try as I might I cannot get both partitions to mount. More specifically I cannot get partition 5 to mount with other partitions.
Eg:
PARTS="3 5" Partition 3 is mounted
PARTS="5 3" Partition 5 is mounted
PARTS="1 2 3 5" Partitions 1, 2 & 3 are mounted
NB in the last example I had used DO_MOUNT="n" for partitions 1 and 2.
Any help much appreciated
-- cheers
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110315\"][{POST_SNAPBACK}][/a][/div]
why don't you just mount your partitions from a rc script? the sdcontrol and ide config are really meant for the removable devices to handle when they are inserted and ejected.
For the internal harddisk, you really want to mount the partitions during boot up and unmount them during shutdown and reboot, so create the appropriate rc script for start and stop and you'd be much happier when your partitions don't complain about needing to be fscked because of uncleanly unmounted journals.
-
why don't you just mount your partitions from a rc script? the sdcontrol and ide config are really meant for the removable devices to handle when they are inserted and ejected.
That was what I had been doing when I used rc12, I just inserted some mount commands into an existing rc script (can't remember which). Even then I had tried using ide.opts but didn't get anywhere. Now that I've upgraded to 1.1.0beta1 I decided try again, and failed.
Sigh, I might as well go back to the tried and trusted
For the internal harddisk, you really want to mount the partitions during boot up and unmount them during shutdown and reboot, so create the appropriate rc script for start and stop and you'd be much happier when your partitions don't complain about needing to be fscked because of uncleanly unmounted journals.
Nah, that shouldn't happen. The pcmcia shutdown script ought to take care of unmounting the HDD?
-
why don't you just mount your partitions from a rc script? the sdcontrol and ide config are really meant for the removable devices to handle when they are inserted and ejected.
That was what I had been doing when I used rc12, I just inserted some mount commands into an existing rc script (can't remember which). Even then I had tried using ide.opts but didn't get anywhere. Now that I've upgraded to 1.1.0beta1 I decided try again, and failed.
Sigh, I might as well go back to the tried and trusted
For the internal harddisk, you really want to mount the partitions during boot up and unmount them during shutdown and reboot, so create the appropriate rc script for start and stop and you'd be much happier when your partitions don't complain about needing to be fscked because of uncleanly unmounted journals.
Nah, that shouldn't happen. The pcmcia shutdown script ought to take care of unmounting the HDD?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=110404\"][{POST_SNAPBACK}][/a][/div]
maybe the pdaxrom pcmcia shutdown script does a better job. the sharp one doesn't. well, it assumes that the external cf is fat also. since i have multiple partitions which don't get mounted automatically by default, i had to enhance the scripts to mount them, i also enhanced the scripts to do the reverse and unmount them as well. i also had put a swapfile on the card which was automatically enabled and it had to disabled before the cf could be unmounted so the default script wasnt that smart to figure this out either
well, no more swapfile for me anyway, now i got a swap partition.
-
maybe the pdaxrom pcmcia shutdown script does a better job. the sharp one doesn't. well, it assumes that the external cf is fat also. since i have multiple partitions which don't get mounted automatically by default, i had to enhance the scripts to mount them, i also enhanced the scripts to do the reverse and unmount them as well. i also had put a swapfile on the card which was automatically enabled and it had to disabled before the cf could be unmounted so the default script wasnt that smart to figure this out either
well, no more swapfile for me anyway, now i got a swap partition.
Sorry you're right. Without the instructions to umount reboot would fail (it kind of hangs at the "shutting down pcmcia services" stage). I checked my previous config and indeed I did have umount and swapoff instructions. I added the mount and umount commands to the end of the pcmcia start function and the beginning of the pcmcia stop function respectively.
-- cheers
-
I've finally tracked down why the settings in /etc/pcmcia/ide.opts don't work. It's a bug in /etc/pcmcia/shared, in the function add_parts() the line
unset DO_FSTAB DO_FSCK DO_MOUNT LINK
needs to be changed to:
unset FATOPTS DO_FSTAB DO_FSCK DO_MOUNT LINK
-- cheers
-
I've finally tracked down why the settings in /etc/pcmcia/ide.opts don't work. It's a bug in /etc/pcmcia/shared, in the function add_parts() the line
unset DO_FSTAB DO_FSCK DO_MOUNT LINK
needs to be changed to:
unset FATOPTS DO_FSTAB DO_FSCK DO_MOUNT LINK
-- cheers
[div align=\"right\"][a href=\"index.php?act=findpost&pid=123113\"][{POST_SNAPBACK}][/a][/div]
Maybe tell Sashz about your solution
-
Maybe tell Sashz about your solution
Added to bug tracker.
-- cheers