ts-7000
[Top] [All Lists]

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

To:
Subject: Re: [ts-7000] Re: TS-7500 SD card Mount
From: Jim Ham <>
Date: Sat, 10 Dec 2011 15:59:12 -0800
Remember that the initrd is loaded into RAM by the bootstrap. What is 
referenced by /initrd is the RAM image. If you want to get at the initrd 
image that is on the SD card you have to mount it separately.

Are you running udev? You might find a udev rule that automatically 
mounts mmcblk partitions. I don't think it will mount the initrd 
partition as it is marked 0xDA rather than 0x83.

I think (not sure here) that an entry in fstab will override what udev 
does. So you might solve the whole problem just by making a real fstab.

Keep us posted on how this works out. I certainly don't have a good 
understanding of udev.

al wrote:
> 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
>
>
>
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.1873 / Virus Database: 2102/4672 - Release Date: 12/10/11
>
>

-- 
Porcine Associates LLC
244 O'Connor St.
Menlo Park, CA 94025
USA
+1(650)326-2669 fax +1(650)326-1071


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

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/

Attachment: jimham.vcf
Description: Vcard

<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