0

I'm attempting to get an SD card to mount on boot for permanent storage and I'm pretty sure I screwed it up. This is my first time with Linux and I'm not a programmer. I've never even partitioned anything before.

I'm running Lubuntu 22.04 on a Chromebook, which came with a 16gb eMMC drive.

After doing some research, I mounted my SD to root (which I assume is where I went wrong):
sudo mount /dev/mmcblk1p1 /

Then I got into /etc/fstab and added the following (with the appropriate whitespace and an extra newline at the bottom):
/dev/mmcblk1p1 / ext2 defaults 0 0

Things seemed fine.

However! Before I remounted the SD, running df -h ~ showed this:

Filesystem     Size Used Avail Use% Mounted on
/dev/mmcblk0p2 15G  14G  0     100% /

Similarly, df -h showed all the usual drives, including both mmcblk0p2 (the eMMC) and mmcblk1p1 (the SD).

Imagine my horror when, after mounting the SD to root, I check df -h ~ and it shows me this:

Filesystem     Size Used Avail Use% Mounted on
/dev/mmcblk1p1 15G  14G  0     100% /

mmcblk1p1 has 128gb.

mmcblk0p2 has also disappeared from the df -h result.

So, how badly did I mess this up? Is there a way to fix this?

Drew
  • 1

0 Answers0