ts-7000
[Top] [All Lists]

[ts-7000] Re: pivot_root to USB drive

To:
Subject: [ts-7000] Re: pivot_root to USB drive
From: "Keith Gilman" <>
Date: Thu, 27 Oct 2005 14:38:08 -0000
--- In  "Eddie Dawydiuk" <> wrote:
>
> Hi Keith,
> 
> >> I've tried the shell script (loadUSBModule.sh
> >> or something) but I get errors with that and even though it is
> >> partially functional I don't think it is correct.
> 
> Make sure you can mount the drive and chroot to it before trying to
> pivot_root... Run the loadUSBModules.sh script in the /usr/bin 
directory
> then try to mount the drive, and finally chroot to it. Post any error 
> messages with the corresponding commands...
> 
> //Eddie
>

Eddie,

I'm still working on this. I do have the drive mounted ok, I have the 
CF image loaded and I am able to use the drive. Here is the output from 
loadUSB.sh


Technologic Systems TS-LINUX/arm 7.0
ts7200 login: root
Password:


BusyBox v1.00-rc2 (2004.08.05-21:44+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

$ ps
  PID  Uid     VmSize Stat Command
    1 root        488 S   init [3]
    2 root            SW  [keventd]
    3 root            SWN [ksoftirqd_CPU0]
    4 root            SW  [kswapd]
    5 root            SW  [bdflush]
    6 root            SW  [kupdated]
    7 root            SW  [mtdblockd]
   53 1           476 S   /sbin/portmap
   58 root        716 S   /usr/sbin/inetd
   63 root        484 S   /usr/sbin/telnetd
   72 root       1068 S   /www/apache/bin/httpd
   74 root        700 S   -sh
   78 root        360 S   /sbin/TempLogger
   80 nobody     1196 S   /www/apache/bin/httpd
   81 nobody     1196 S   /www/apache/bin/httpd
   82 nobody     1196 S   /www/apache/bin/httpd
   83 nobody     1196 S   /www/apache/bin/httpd
   84 nobody     1092 S   /www/apache/bin/httpd
   87 root        464 S   /sbin/lcdmesg
   85 root            SW  [khubd]
   94 root            SW  [usb-storage-0]
   95 root            SW  [scsi_eh_0]
  134 nobody     1120 S   /www/apache/bin/httpd
  135 root        664 S   -sh
  136 root        584 R   ps
$ cd /usr/bin
$ ./loadUSB.sh
Creating extra device nodes...done.
Started device management daemon v1.3.25 for /dev
modprobe: cannot create /var/log/ksymoops/20051026.log Read-only file 
system
modprobe: cannot create /var/log/ksymoops/20051026.log Read-only file 
system
Checking root file system...
fsck 1.27 (8-Mar-2002)
e2fsck 1.27 (8-Mar-2002)
modprobe: cannot create /var/log/ksymoops/20051026.log Read-only file 
system
modprobe: cannot create /var/log/ksymoops/20051026.log Read-only file 
system
modprobe: cannot create /var/log/ksymoops/20051026.log Read-only file 
system
modprobe: cannot create /var/log/ksymoops/20051026.log Read-only file 
system
modprobe: cannot create /var/log/ksymoops/20051026.log Read-only file 
system
modprobe: cannot create /var/log/ksymoops/20051026.log Read-only file 
system
fsck.ext2: No such file or directory while trying to open /dev/hda1

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate 
superblock:
    e2fsck -b 8193 <device>


fsck failed.  Please repair manually and reboot.  Please note
that the root file system is currently mounted read-only.  To
remount it read-write:

   # mount -n -o remount,rw /

CONTROL-D will exit from this shell and REBOOT the system.

ts7200:~#

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

I haven't tried the pivot_root yet. I need to get my linux box setup
to do tftp so I can try the ramdisk.

Thanks for your help!
-Keith






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/CFFolB/TM
--------------------------------------------------------------------~-> 

 
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