OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: whit on December 11, 2005, 09:57:44 pm

Title: Not Fstab?
Post 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?
Title: Not Fstab?
Post by: adf on December 12, 2005, 12:12:44 am
same on my 6k w/ 6 gig hitachi.
Title: Not Fstab?
Post by: pgas on December 13, 2005, 11:32:24 am
look in /etc/sdcontrol for the sd card
and in /etc/pcmcia/ide and ide.opts for the cf.
Title: Not Fstab?
Post by: desertrat on January 10, 2006, 02:18:14 pm
Quote
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:
Code: [Select]
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:
Code: [Select]
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
Title: Not Fstab?
Post by: Meanie on January 11, 2006, 04:05:39 am
Quote
Quote
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:
Code: [Select]
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:
Code: [Select]
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.
Title: Not Fstab?
Post by: desertrat on January 11, 2006, 05:06:00 am
Quote
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

Quote
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?
Title: Not Fstab?
Post by: Meanie on January 12, 2006, 04:36:34 am
Quote
Quote
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

Quote
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.
Title: Not Fstab?
Post by: desertrat on January 12, 2006, 07:59:44 am
Quote
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
Title: Not Fstab?
Post by: desertrat on April 13, 2006, 06:20:48 pm
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
Code: [Select]
unset DO_FSTAB DO_FSCK DO_MOUNT LINKneeds to be changed to:
Code: [Select]
unset FATOPTS DO_FSTAB DO_FSCK DO_MOUNT LINK
-- cheers
Title: Not Fstab?
Post by: scheck.r on April 14, 2006, 08:31:44 am
Quote
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
Code: [Select]
unset DO_FSTAB DO_FSCK DO_MOUNT LINKneeds to be changed to:
Code: [Select]
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
Title: Not Fstab?
Post by: desertrat on April 14, 2006, 10:47:47 am
Quote
Maybe tell Sashz about your solution

Added to bug tracker.

-- cheers