ts-7000
[Top] [All Lists]

[ts-7000] Re: TS-7500 SD card Mount

To:
Subject: [ts-7000] Re: TS-7500 SD card Mount
From: "al" <>
Date: Sat, 10 Dec 2011 23:23:53 -0000
Thanks for the quick reply, Mike.  I have found /etc/fstab empty and no traces 
of SD card mounts under /etc/init.d, but I will grep as many scripts a I can 
find.

One thing I did not mention was that the Flash on the TS-7500 was modified by 
us so that when power is applied, the system boots directly from the SD card 
into the full Debian kernel: linuxrc is a link to linuxrc-sdroot.  The only 
mount point for the SD card I can find there for the TS-7500 is this section:

  # Model: 7500 or 7551, 7552, etc.  (NOT 7550) -- these boards have mSD
  if [ "$model" != "0x7550" ]; then
    eval `sdctl -z 65536 --nbdserver 
lun0:disc,lun0:part1,lun0:part2,lun0:part3,lun0:part4 2>&1`
    if [ "$cardsize_sectors" == "0" ]; then
      killall sdctl >> $CONSOLE 2>&1
    else
      nbd-client 127.0.0.1 7500 /dev/nbd5
      nbd-client 127.0.0.1 7501 /dev/nbd6
      nbd-client 127.0.0.1 7502 /dev/nbd7
      nbd-client 127.0.0.1 7503 /dev/nbd8
      nbd-client 127.0.0.1 7504 /dev/nbd9
      mount -orw,noatime /dev/nbd9 /mnt/root
    fi
  fi
  
The mount point for partition 4 (ext3 FS) of the SD card is /mnt/root.  I do 
not see any references to other partitions, but I know they are mounted.  For 
example /initrd is the mount point for partition 3 whaich has the ext2 FS.  
Both /initrd and /mnt/root are mounted RW.

I have been able to change the ext2 mount by running the command 'umount -fr 
/initrd' in our application startup script.  /initrd can't be unmounted so the 
'-fr' option forces a remount to a RO ext2 FS.

Kind regards,
Mitch


--- In  Mike Dodd <> wrote:
>
> al wrote:
> > ...
> > The current linuxrc-sdroot file mounts the whole card (all 4
> > partitions) as either read/write or read-only.
>
> Check /etc/fstab for entries that mount the four partitions, or a script in 
> /etc/init.d/ that does the same thing.
>
> Choose the ones you want, and change "rw" to "ro".
> -- 
> Mike
> 
> Mike Dodd
> Louisa County, VA USA
> 
> http://mdodd.com




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU