Author Topic: Not Fstab?  (Read 6365 times)

whit

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Not Fstab?
« 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?

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Not Fstab?
« Reply #1 on: December 12, 2005, 12:12:44 am »
same on my 6k w/ 6 gig hitachi.
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Not Fstab?
« Reply #2 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.
SLC-860 cacko / senao wifi

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Not Fstab?
« Reply #3 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
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Not Fstab?
« Reply #4 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.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Not Fstab?
« Reply #5 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?
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Not Fstab?
« Reply #6 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.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Not Fstab?
« Reply #7 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
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Not Fstab?
« Reply #8 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
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

scheck.r

  • Sr. Member
  • ****
  • Posts: 320
    • View Profile
    • http://
Not Fstab?
« Reply #9 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
SL-C1000 from PriceJapan(cheap and very fast shipping) with EA-70 power adapter, iRiver USB Host cable, PDAIR case, pentopia stylus, ultra clear screen-protector from shop.brando.com.hk only $3 for shipping worldwide
4GB Hitachi Microdrive, 1GB Kingston Elite Pro CF, 4GB Transcend 150x SD, Symbol Spectrum 4137 CF WiFi(low power)
PdaXrom pdaxii13 5.4.9 updated with Kkazakov13's feed. I owned a SL-6000L before

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Not Fstab?
« Reply #10 on: April 14, 2006, 10:47:47 am »
Quote
Maybe tell Sashz about your solution

Added to bug tracker.

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM