2

I need to add a text file to any raspbian folder but without opening the OS.

I tried as follows:

  1. I inserted the SD card in my computer.
  2. I sent the text file to the SD card. I found the file in the "boot" folder, this is affecting the RP setting and caused problems..

I want a way to add my text file to RP OS from the SD card, and should not go to the "boot" folder.

Update from the comments:
I could not find /home when I opened the raspbian SD card in windows or MAC.

Ingo
  • 42,107
  • 20
  • 85
  • 197
Jawad Sabir
  • 127
  • 2
  • 6

3 Answers3

4

To elaborate the answer from @Milliways a bit. Raspbian is installed on two partitions. Partition 1 is the boot partition and contains essential files like the kernel to load and firmware and drivers. To be easy readable on boot up it is formated as fat filesystem. This filesystem is readable by nearly all operating systems including MS Windows and MAC.

Partition 2 is the root partition and is the main partition containing the Raspbian operating system. It is formated with the ext4 filesystem, a more powerful one than fat. But MS Windows and MAC cannot read this filesystem without helpers. The easiest is to boot your computer with a Linux operating system (Debian, Ubuntu etc.) to access the root partition. There you will also find the /home/ folder.

Ingo
  • 42,107
  • 20
  • 85
  • 197
2

It is SIMPLE - just mount the SD Card on a Linux computer - this can be a virtual machine, a bootable image or another Pi.

Milliways
  • 59,890
  • 31
  • 101
  • 209
  • I cannot quite see your effort to answer the question. The op put the SD Card in the PC. Now he has problems in finding the partition he wants which is not addressed in the answer. – user3123159 May 04 '21 at 06:58
2

The actual OS is on a separate partition than boot. You need special software to access this partition if you are using Windows or Mac.
If you are using a Mac, you can use software called OS X Fuse (instructions on http://osxdaily.com/2014/03/20/mount-ext-linux-file-system-mac/).
If you are using Windows, you can download software called Ext2Read from the link below:
https://sourceforge.net/projects/ext2read/
I hope this works for you!

Joelvanf
  • 51
  • 2
  • 7