can a SD card be used as storage with emmc boot
#4
(04-27-2018, 08:53 AM)Enzo Wrote: hello
booting from emmc
so SD slot not used
but
can i use it for storage?
used lsblk, with a SD card inserted [format: ntfs-3], showed up as /dev/mmcblk1 [emmc was /dev/mmcblk0]
but mount failed, [tried a few different options]
also edited fstab, /dev/mmcblk /mnt/SD/ ntfs-3 auto rw 0 0
but the rock tried to boot from SD, which was empty, [had to remove above line from fstab]
can you please advise want to do
thanks

actually used an usb stick which automounted fine [mounted as /dev/sda]

As others have indicated, yes you can (use the SD card as storage if booting from the eMMC).

First you'll want to check out what is on the SD card (sudo fdisk -l /dev/mmcblk1). Find out what partitions are on it, and what file system type. Is it really NTFS, or is it fat(16/32)? This is the output when the SD card is another boot image, although I'm not using it at the moment as the rock64 is booting from the eMMC.

Code:
Disk /dev/mmcblk1: 7.4 GiB, 7948206080 bytes, 15523840 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 305CD6FF-4953-4D14-AD69-3A11874A2E0B

Device          Start      End  Sectors  Size Type
/dev/mmcblk1p1     64     8063     8000  3.9M Linux filesystem
/dev/mmcblk1p2   8064     8191      128   64K Linux filesystem
/dev/mmcblk1p3   8192    16383     8192    4M Linux filesystem
/dev/mmcblk1p4  16384    24575     8192    4M Linux filesystem
/dev/mmcblk1p5  24576    32767     8192    4M Linux filesystem
/dev/mmcblk1p6  32768   262143   229376  112M Microsoft basic data
/dev/mmcblk1p7 262144 15523806 15261663  7.3G Linux filesystem

Here, there are a bunch of linux (probably ext4) partiions, with the most interesting being the last two (p6 & p7). I should be about the mount either of them with no trouble, after making suitable directories upon which to mount them.

So for somewhere to mount them:


Code:
sudo mkdir /mnt/sd-boot; sudo mkdir /mnt/sd-os


And to actually mount them:

Code:
sudo mount /dev/mmcblk1p6 /mnt/sd-boot; sudo mount /dev/mmcblk1p7 /mnt/sd-os

Interestingly enough I didn't need to specify the -t flag to let mount know the type. Not sure why it was so co-operative... I was expecting to need to specify vfat and ext4, but it mount worked it out on it's own this time.
  Reply


Messages In This Thread
RE: can a SD card be used as storage with emmc boot - by pfeerick - 04-28-2018, 04:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Compatible eMMC modules and benchmarks danboid 7 14,435 03-09-2023, 08:14 AM
Last Post: arvendui
  DAC (ES9023) addon card on other SBCs like rpi? AlexS 1 2,175 08-28-2021, 04:53 AM
Last Post: CounterPillow
  RS-485 CAN HAT Rock won’t boot gnvdude 1 3,138 01-10-2021, 05:15 PM
Last Post: as365n4
  Help! Rock64 won't boot anything! trohn_javolta 3 6,348 03-09-2020, 06:03 PM
Last Post: tllim
Question Have eMMC adapter - but can't seem to fix eMMC card SirRyanTheGeek 3 6,099 05-04-2019, 04:19 AM
Last Post: burito111
  Boot from M.2/USB 3 Max_H 8 10,209 05-03-2019, 02:56 AM
Last Post: Monstercrunch
  emmc module help default_user8 1 2,866 04-05-2019, 07:19 PM
Last Post: SirRyanTheGeek
  Boot on power-up vicencb 1 2,905 11-26-2018, 11:45 PM
Last Post: evilbunny
  Dead eMMC? machina 8 9,180 11-21-2018, 05:05 AM
Last Post: machina
  FORSEE eMMC is reliable? ramprasad 3 5,055 11-12-2018, 03:34 PM
Last Post: Tortax

Forum Jump:


Users browsing this thread: 1 Guest(s)