Format and Mount

Hi,
I have MikroTik RouterBOARD 760iGS. I want to format a new SD Card.

Regards

No one's stopping you.

2 Likes

Lol. My question is how we can format and mount the sdcard?

Less details might help (hint, there is more than one filesystem).

But in short (and equally unspecific), fdisk, mkfs, mount, ..., profit, ... umount, eject.

2 Likes

Depends on the filesystem you wish to use. For e.g. ext4 you'd need to install kmod-fs-ext4 and e2fsprogs and you also need to install kmod-sdhci-whatever_is_appropriate_for_your_device. Then format it as usual.

1 Like

I can not see any device in /dev/

root@OpenWrt:~# ls /dev/
bus              mtd3ro           mtdblock5        ttyS13
console          mtd4             mtdblock6        ttyS14
cpu_dma_latency  mtd4ro           mtdblock7        ttyS15
full             mtd5             mtdblock8        ttyS2
gpiochip0        mtd5ro           mtdblock9        ttyS3
gpiochip1        mtd6             null             ttyS4
gpiochip2        mtd6ro           port             ttyS5
hwrng            mtd7             ppp              ttyS6
i2c-0            mtd7ro           ptmx             ttyS7
kmsg             mtd8             pts              ttyS8
log              mtd8ro           random           ttyS9
mtd0             mtd9             shm              ubi_ctrl
mtd0ro           mtd9ro           tty              urandom
mtd1             mtdblock0        ttyS0            watchdog
mtd1ro           mtdblock1        ttyS1            watchdog0
mtd2             mtdblock2        ttyS10           zero
mtd2ro           mtdblock3        ttyS11
mtd3             mtdblock4        ttyS12

@WereCatf is right, incorrect info removed.

1 Like

It's not a USB-device.

You need both kmod-sdhci and kmod-sdhci-whatever-is-appropriate-for-your-SoC. It's not enough to just install kmod-sdhci.

it was kmod-sdhci-mt7620 to be installed. Now working fine. created partition including swap.

Device         Boot     Start       End   Sectors   Size Id Type
/dev/mmcblk0p1           2048 246417407 246415360 117.5G 83 Linux partition1
/dev/mmcblk0p2      246417408 249737215   3319808   1.6G 83 Linux partition2

I want OpenWrt to use partition(sdcard) storage rather than internal 16MB storage. Is this possible?

Kind of, yes: https://openwrt.org/docs/guide-user/additional-software/extroot_configuration

1 Like

you were told the same by @WereCatf three days ago already ...

1 Like

sorry, I'm new to Linux.

guess you're a quick learner, since you fixed it three days later ... :wink:

1 Like

Nope. I have purchased a router from India and I'm in Canada right now. The power supply plug is different so order a plug adapter which arrive today. So get late to follow up on the steps.

Thanks. Get finally to move overlay to sdcard.

root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 2.5M      2.5M         0 100% /rom
tmpfs                   123.1M     72.0K    123.0M   0% /tmp
/dev/mmcblk0p1          115.2G     65.6M    109.2G   0% /overlay
overlayfs:/overlay      115.2G     65.6M    109.2G   0% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock9           10.9M      2.8M      8.1M  25% /rwm