How to access files on a different partition

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to access files on a different partition

950 Views
KrishnaPavan
Contributor II

I have created ext3 partition with rootfs in it.

 

I have created fat partition and saved a file in it on my host pc.

 

Now, I have put my SD card in board, I am able to browse through all my files on ext3, then how to access files on the fat partition.

 

I use minicom to boot u-boot in linux.

 

Version 10.04 LTS Ubuntu.

 

Regards   Krishna Pavan

Labels (1)
Tags (2)
0 Kudos
4 Replies

707 Views
KrishnaPavan
Contributor II

Hi Daiane, I must thank you for remembering me my thread.

Here I am posting the solution to that thread.

 

make directory in /mnt/YOUR_MOUNT_POINT                     for example

Then use this command. 

 

mount -t vfat -o iocharset=utf8,umask=0022 /dev/mmcblk0p2 /mnt/YOUR_MOUNT_POINT

If its a ntfs/ext2/3/4, then the specific iocharset/ can be used

for ntfs

# sudo mount -t ntfs -o nls=utf8,umask=0222 /dev/hdb1 /media/c

umask can be obtained from the command in the help commands in terminal.

/dev/hdb1   is your device that can be obtained from "fdisk -l devicename" or "cat /proc/partitions"

we will get an iocharset error, but can be ignored if we are not using it on windows.

Regards :: Krishna Pavan

0 Kudos

707 Views
daiane_angolini
NXP Employee
NXP Employee

great!

 

;)

0 Kudos

707 Views
KrishnaPavan
Contributor II

Yeah, yea Daiane,

 

I have solved that, We have to create a mountpoint in the /dev/   and then using the commands specific to the OS inside the U-boot that is loaded, we have to mount the partition. I have got it right, after many attempts, finally it o.k now.

 

Regards   Krishna Pavan

0 Kudos

707 Views
daiane_angolini
NXP Employee
NXP Employee

Hi.

 

Both partition are on the same SDCard?

 

You should to mount the fat partition on some /mnt dir.

 

take a look on dmesg in order to see which /dev/XXX you should take

0 Kudos