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