It is currently Sun May 19, 2013 2:51 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [SOLVED]When it boots from Hard drive can it see the flash?
PostPosted: Tue Apr 03, 2012 6:38 am 
Super Tonidoid
Super Tonidoid
Joined: Thu Dec 01, 2011 10:41 am
Posts: 41

I wanted to see if my user old data was still on the internal flash drive for websharepro I used fdisk -l but I guess it disabled the internal flash drive when it boots from a real hard drive. Is this right, or is there a way to mount it to look at it's data when you boot from a hard drive?

-Raymond Day


Last edited by RaymondDay on Wed Apr 04, 2012 4:39 am, edited 1 time in total.

Offline
 Profile  
 Post subject: Re: When it boots from Hard drive can it see the internal fl
PostPosted: Wed Apr 04, 2012 4:21 am 
Super Tonidoid
Super Tonidoid
Joined: Thu Dec 01, 2011 10:41 am
Posts: 41

Wow looks like you can. From another post on this forum from pmcallihan He said how to copy wireless drivers from it.

So you can mount the Internal flash drive like this:

Code:
cd /
mkdir internal_flash_drive
ubiattach /dev/ubi_ctrl -m 3
mount -t ubifs ubi0:rootfs /internal-flash-drive


That makes a folder named "internal_flash_drive".

If you want to unmount it just do:

Code:
cd /
umount internal_flash_drive
ubidetach /dev/ubi_ctrl -m 3


Then delete the internal_flash_drive folder.

Code:
rmdir internal_flash_drive


That command will not let you delete it unless it's empty. It should be if you just used it to mount the internal flash drive.

This command shows the info of it. Looks like it has four 128 KB partitions. 4 x 128 = 512 what it has. Because look at this list of the flash drive partitions:

Code:
root@small2:/# mtdinfo -a
Count of MTD devices:           4
Present MTD devices:            mtd0, mtd1, mtd2, mtd3
Sysfs interface supported:      yes

mtd0
Name:                           u-boot
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          12 (1572864 bytes, 1.5 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:0
Bad blocks are allowed:         true
Device is writable:             true

mtd1
Name:                           u-boot-env
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          1 (131072 bytes, 128.0 KiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:2
Bad blocks are allowed:         true
Device is writable:             true

mtd2
Name:                           uImage
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          48 (6291456 bytes, 6.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:4
Bad blocks are allowed:         true
Device is writable:             true

mtd3
Name:                           rootfs
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          4032 (528482304 bytes, 504.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  512 bytes
OOB size:                       64 bytes
Character device major/minor:   90:6
Bad blocks are allowed:         true
Device is writable:             true

root@small2:/#


-Raymond Day


Offline
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


 Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
 
cron