Page 1 of 1
How to mount root partition on SD card
Posted: Thu Nov 30, 2023 3:55 pm
by syn
I have the MiSTer SD card plugged into my PC, but I can't mount the root partition. I can find only the MiSTer_Data partition.
There is a second 3MB partition on the card, but I'm unable to mount it. Linux doesn't seem to recognize the file system.
I need to fix something in /etc. How can I mount the root FS on the SD card?
Re: How to mount root partition on SD card
Posted: Fri Dec 01, 2023 6:43 pm
by JamesH
The next update is going to overwrite it, so the practical advice would be to use /media/fat/linux/user-startup.sh to modify things you need every time system boots.
However, if you really want to update root fs and really understand all implications and side effects, the root fs is in the linux/linux.img. But, again, that is not what you want to do.
Re: How to mount root partition on SD card
Posted: Fri Dec 01, 2023 7:53 pm
by bbond007
syn wrote: ↑Thu Nov 30, 2023 3:55 pm
I have the MiSTer SD card plugged into my PC, but I can't mount the root partition. I can find only the MiSTer_Data partition.
There is a second 3MB partition on the card, but I'm unable to mount it. Linux doesn't seem to recognize the file system.
I need to fix something in /etc. How can I mount the root FS on the SD card?
The root "partition" is not a partition on your SD card. It is the "linux.img" file on your data partition under "linux". To mount that all you need to do is use the "mount" command on your Linux (or Windows with WSL) machine...
From there you can modify what you need in the /etc/ directory.
Code: Select all
mkdir ~/mister_root
mount linux.img /home/bbond007/mister_root
cd ~/mister_root/etc
Hope that helps...
Re: How to mount root partition on SD card
Posted: Tue Dec 05, 2023 6:57 pm
by syn
bbond007 wrote: ↑Fri Dec 01, 2023 7:53 pm
The root "partition" is not a partition on your SD card. It is the "linux.img" file on your data partition under "linux". To mount that all you need to do is use the "mount" command on your Linux (or Windows with WSL) machine...
That's exactly what I needed to know. Thanks!