ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: pivot_root to USB drive

To:
Subject: Re: [ts-7000] Re: pivot_root to USB drive
From: "Eddie Dawydiuk" <>
Date: Thu, 27 Oct 2005 08:56:40 -0700 (MST)
Hi Keith,

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

It looks like your /etc/fstab is incorrect. Look if you have a /etc/fstab.usb,
if so copy it over your /etc/fstab. If not you'll want to change the last line
of your /etc/fstab as follows

-     /dev/hda1       /       ext2    defaults        1 1
+     /dev/scsi/host0/bus0/target0/lun0/part1 /       ext2    defaults        1 
1


Let me know if you have any other problems...

//Eddie


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