SD card issue with beaglebone black

155 views
Skip to first unread message

sanjay ahuja

unread,
Sep 16, 2014, 11:22:00 AM9/16/14
to beagl...@googlegroups.com
Hi,

I tried using microSD card as extra storage for my beaglebone black. I followed the steps as mentioned at http://elinux.org/Beagleboard:MicroSD_As_Extra_Storage.

I was able to use mount microSD card successfully. However I am facing some strange issue.

when I do ls -lart on the mounted drive the permissions are

drwx------  5 root root 16384 Jan  1  1970 drive


If I try chmod o+rx,g+rx /media/drive, to change the permissions, it does not work. No error on issuing chmod command but permission does not get change.

Infact I am not even able to change the user permission for any executable file under directory 'drive'.

For ex. 
bash-4.2# ls -lart /media/drive/jdk1.7.0_60/bin/java
-rw-r--r-- 1 root root 5822 May  7 20:26 /media/drive/jdk1.7.0_60/bin/java

bash-4.2# chmod u+x /media/drive/jdk1.7.0_60/bin/java

bash-4.2# ls -lart /media/drive/jdk1.7.0_60/bin/java
-rw-r--r-- 1 root root 5822 May  7 20:26 /media/drive/jdk1.7.0_60/bin/java

Since 'x' permission is missing, I am not able to execute any binary file. I am logged in as root user only. The jdk directory is expanded from jdk installer zip using command
tar -xvf Downloads/jdk-7u60-linux-arm-vfp-sflt --owner root --group root --no-same-owner.

No issues are encountered if the jdk directory is expanded under home directory instead of SD card.

The partition details for SD Card:

Usage : Filesystem
Partition type: W95 FAT16 (LBA) (0x0e)
Type: FAT (16-bit version)
Device: /device/mmcblk1p1
Mount Point: Mounted at /media/drive

Any help will be really appreciated.

Thanks,
Sanjay Ahuja 


Robert Nelson

unread,
Sep 16, 2014, 11:28:16 AM9/16/14
to Beagle Board
re-partition it as "ext4"... fat16 doesnt' support user permissions..

Regards,

--
Robert Nelson
http://www.rcn-ee.com/

sanjay ahuja

unread,
Sep 16, 2014, 2:13:15 PM9/16/14
to beagl...@googlegroups.com
Hi Robert,

Do you have any pointer to steps for partitioning it as ext4. The link I followed specifically mentioned that partition type must be 'FAT'. The content of uEnv.txt as provided there is
mmcdev=1
bootpart=1:2
mmcroot=/dev/mmcblk1p2 ro
optargs=quiet

Would it remain same if partition type is 'ext4' or some values would change?


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/BGri5BFH2W4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sanjay ahuja

unread,
Sep 16, 2014, 2:38:12 PM9/16/14
to beagl...@googlegroups.com
Basically what should be content of uEnv.txt if we are mounting external SD card with partition type 'ext4'?
To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscribe@googlegroups.com.

William Hermans

unread,
Sep 16, 2014, 3:20:20 PM9/16/14
to beagl...@googlegroups.com
sanjay, uEnv.txt should not have to change at all, content wise. Everything in this file just "tells" uboot where:

1)  to load the kernel, and board file for the BBB

2) where the root file system is.

3) Lastly, optargs=quite means to be less verbose with kernel debug output ( I believe )

You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages