ts-7000
[Top] [All Lists]

[ts-7000] Re: USB disk and shutting down

To:
Subject: [ts-7000] Re: USB disk and shutting down
From: "nitelitephoto" <>
Date: Sat, 23 Jul 2005 22:51:28 -0000
--- In  "Eddie Dawydiuk" <> wrote:
> > I use the loadUSB{,Modules}.sh scripts with the
> > debian256-5-6-2005.tar.bz2 image.  (The scripts basically do a chroot
> > to the USB disk.)  What is the correct way to shut down or reboot?
> >
> > I have tried various ways including reboot or shutdown, but the USB
> > disk is not being unmounted.  Then file system ends up trashed.
> 
> Type exit this will kill any processes running in the chroot environment
> as well as unmounting dev, proc, and the USB flash drive. Your root
> directory will then be returned to the onboard flash, you can then
> shutdown your board normally.

Sometimes this works great.  Other times, something is keeping the
device busy.

ts7200:~# exit
exit
umount: /mnt/cf/dev: Device or resource busy
umount: /mnt/cf: Device or resource busy
$ mount
/dev/root on / type yaffs (rw)
none on /dev type devfs (rw)
/proc on /proc type proc (rw)
/dev/scsi/host0/bus0/target0/lun0/part1 on /mnt/cf type ext2 (rw)
devfs on /mnt/cf/dev type devfs (rw)
$ umount /mnt/cf/dev
umount: /mnt/cf/dev: Device or resource busy
$ chroot /mnt/cf
sh-2.05a# mount /proc
sh-2.05a# lsof | grep dev
sh      725 root    0u   CHR 204,16                3 /dev/ttyAM0
sh      725 root    1u   CHR 204,16                3 /dev/ttyAM0
sh      725 root    2u   CHR 204,16                3 /dev/ttyAM0
sh      725 root  255u   CHR 204,16                3 /dev/ttyAM0
lsof    728 root    0u   CHR 204,16                3 /dev/ttyAM0
lsof    728 root    2u   CHR 204,16                3 /dev/ttyAM0
grep    730 root    1u   CHR 204,16                3 /dev/ttyAM0
grep    730 root    2u   CHR 204,16                3 /dev/ttyAM0






 
Yahoo! Groups Links

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

<*> 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