Stockly.com Forums  

Go Back   Stockly.com Forums > TS-7250 > Things to know

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-11-2005, 11:51 PM
Grant Stockly Grant Stockly is offline
Administrator
 
Join Date: Jan 2005
Posts: 447
Default Mounting Thumb drive

$ more loadUSBModules.sh
insmod usbcore
insmod pcipool
insmod usb-ohci
insmod usb-ohci-ep93xx
insmod scsi_mod
insmod sd_mod
insmod usb-storage;

$ sh loadUSBModules.sh
Using /lib/modules/2.4.26-vrs1-cirrus-1-2-1-ts7/kernel/drivers/usb/usbcore.o
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
Using /lib/modules/2.4.26-vrs1-cirrus-1-2-1-ts7/kernel/arch/arm/common/pcipool.o
Using /lib/modules/2.4.26-vrs1-cirrus-1-2-1-ts7/kernel/drivers/usb/host/usb-ohci
.o
Using /lib/modules/2.4.26-vrs1-cirrus-1-2-1-ts7/kernel/drivers/usb/host/usb-ohci
-ep93xx.o
usb-ohci.c: USB OHCI at membase 0xe0020000, IRQ 56
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 3 ports detected
Using /lib/modules/2.4.26-vrs1-cirrus-1-2-1-ts7/kernel/drivers/scsi/scsi_mod.o
SCSI subsystem driver Revision: 1.00
Using /lib/modules/2.4.26-vrs1-cirrus-1-2-1-ts7/kernel/drivers/scsi/sd_mod.o
Using /lib/modules/2.4.26-vrs1-cirrus-1-2-1-ts7/kernel/drivers/usb/storage/usb-s
torage.o
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
$ hub.c: new USB device not_pci-3, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: SanDisk Model: Cruzer Micro Rev: 0.2
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 501759 512-byte hdwr sectors (257 MB)
sda: Write Protect is off
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1

$ sh loadUSB.sh
Creating extra device nodes...done.
Started device management daemon v1.3.25 for /dev
Checking root file system...
fsck 1.27 (8-Mar-2002)
e2fsck 1.27 (8-Mar-2002)
/dev/scsi/host0/bus0/target0/lun0/part1: clean, 19598/62744 files, 224439/250608
blocks
Calculating module dependencies... done.
Loading modules: usb-ohci-ep93xx fat vfat
Checking all file systems...
fsck 1.27 (8-Mar-2002)
none on /dev/pts type devpts (rw,gid=5,mode=620)
Starting hotplug subsystem: usb.
Running 0dns-down to make sure resolv.conf is ok...done.
Cleaning: /etc/network/ifstate.
hostname: /lib/libc.so.6: version `GLIBC_2.3' not found (required by /lib/libres
olv.so.2)
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces: done.
Starting portmap daemon: portmap.
Running ntpdate to synchronize clock.
Recovering nvi editor sessions... done.
Starting system log daemon: syslogd.
Starting hotplug subsystem: usb.
Starting kernel log daemon: klogd.
Starting NFS common utilities: statd.
Starting internet superserver: inetd.
Not starting NFS kernel daemon: No exports.
Starting OpenBSD Secure Shell server: sshd.
Starting deferred execution scheduler: atd.
Starting periodic command scheduler: cron.
Starting web server: apache.
ts7200:~#
Reply With Quote
  #2  
Old 02-12-2005, 02:11 AM
Grant Stockly Grant Stockly is offline
Administrator
 
Join Date: Jan 2005
Posts: 447
Default

To mount the 128MB flash after booting into the thumb drive, use:

mount -t yaffs /dev/root root

Backing up the 250MB on the thumb drive will take around 75MB as a gzip'd tar. The stock 128MB takes around 4.
Reply With Quote
  #3  
Old 02-12-2005, 05:09 PM
Grant Stockly Grant Stockly is offline
Administrator
 
Join Date: Jan 2005
Posts: 447
Default

Plug in a compact flash reader.

delete all the partitions using fdisk

ts7200:/sbin# mkfs.ext2 /dev/scsi/host1/bus0/target0/lun0/part1
mke2fs 1.27 (8-Mar-2002)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
64000 inodes, 255728 blocks
12786 blocks (5.00%) reserved for the super user
First data block=1
32 block groups
8192 blocks per group, 8192 fragments per group
2000 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185

Writing inode tables: done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
ts7200:/sbin# mkdir /mnt/src
ts7200:/sbin# mount /dev/scsi/host1/bus0/target0/lun0/part1 /mnt/src
ts7200:/sbin# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/scsi/host0/bus0/target0/lun0/part1
242686 216674 13482 95% /
/dev/scsi/host1/bus0/target0/lun0/part1
255460 2704 252756 2% /mnt/src
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Failing Hard Drive Sounds Grant Stockly Chit Chat 0 12-15-2008 10:56 PM
Floppy drive neptunium Altair 8800 4 04-04-2008 05:02 PM


All times are GMT. The time now is 06:22 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.