PaulBraspi
Posts: 9
Joined: Thu Sep 19, 2013 4:49 am

How to read raspbian files in windows?

Thu Sep 19, 2013 5:23 am

Is there a way to save a file in raspbian so that I can read it from the SD in an XP machine?

(I don't know if it makes any difference, but I set up Raspbian from a NOOBS SD)

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 6008
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: How to read raspbian files in windows?

Thu Sep 19, 2013 7:12 am

Due to the fact that Windows (XP et al) does not understand most of the filesytem(s) on the SDHC card and can only "see" the first "FAT" partition, whilst it is possible to save and transfer (very small) text files via that "common area" there are better ways.
Perhaps the simplest is to just use a USB stick - they're "FAT" formatted by default and thus all of the space is available for either O.S. I usually use SFTP (port 22) transferring files via a Filezilla client when I'm booted up into XP on my netbook (or, also, into Ubuntu Linux since Filezilla is available for Linux too) but there are other FTP tools for virtually all O.S.'s . To read and edit Raspbian created textfiles under XP I suggest Notepad++ but, again, there are other "cross-platform" editors.
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's & P400. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm


User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: How to read raspbian files in windows?

Thu Sep 19, 2013 7:52 am

Try DiskInternals Linux Reader - http://www.diskinternals.com/linux-reader/

Richard S.

PaulBraspi
Posts: 9
Joined: Thu Sep 19, 2013 4:49 am

Re: How to read raspbian files in windows?

Thu Sep 19, 2013 9:02 am

Thanks guys! I'll be trying out all these options to see which one works best for me.

Trevor, you mentioned it was possible to do it directly for small text files in the 'common area'. That's exactly what I want to do! Can you give me some details on that?

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: How to read raspbian files in windows?

Thu Sep 19, 2013 9:13 am

PaulBraspi wrote:Trevor, you mentioned it was possible to do it directly for small text files in the 'common area'. That's exactly what I want to do! Can you give me some details on that?
Not easily with a NOOBS installation. The 'common area' is not mounted and available to Raspbian by default. (That's to keep that area 'safe' because it contains the NOOBS recovery software.)
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

User avatar
RaTTuS
Posts: 10703
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: How to read raspbian files in windows?

Thu Sep 19, 2013 9:16 am

winscp the file
run on windows and link to your RPi
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 6008
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: How to read raspbian files in windows?

Thu Sep 19, 2013 1:07 pm

DeeJay wrote:
PaulBraspi wrote:Trevor, you mentioned it was possible to do it directly for small text files in the 'common area'. That's exactly what I want to do! Can you give me some details on that?
Not easily with a NOOBS installation. The 'common area' is not mounted and available to Raspbian by default. (That's to keep that area 'safe' because it contains the NOOBS recovery software.)
@PaulBraspi, @DeeJay is correct w.r.t. NOOBS since, in order to provide a recovery option, its partition layout is somewhat "special" and similar to that found on notebooks and laptops where the O.S. has been pre-installed (and no recovery discs supplied).
However, even if you use a "directly written" O.S. image (via a *.img file) the (FAT formatted) /boot partition, visible to the Pi and Windows is only ~60Mb with a couple of Mb of "free space"! In principle, if you had access to another Linux box and a card reader to put your SDHC card in, it should be possible to re-arrange the partition layout (shrinking one partition, moving it, and then enlarging the the other etc.) with a tool like GParted, but, given all the other methods of transferring files between a Pi and a Windows (or other) PC, its not really worth the risk or effort.
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's & P400. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

PaulBraspi
Posts: 9
Joined: Thu Sep 19, 2013 4:49 am

Re: How to read raspbian files in windows?

Thu Sep 19, 2013 1:18 pm

Trev,

2MB is plenty of space for what I need to do! I'm intending to use something like vi or leafpad to create '.txt' files of maybe 20kb, tops. So it sounds like I should switch to a regular *.img distro? Raspbian, or Arch or whatever you'd recommend? I'm not committed to any particular OS at the moment and I'm happy to experiment...

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: How to read raspbian files in windows?

Thu Sep 19, 2013 1:41 pm

I think it is clear to most of us that, if your machine is network connected, that this is a Bad Idea.

I.e., the only way it is likely to make sense to transfer files via the SD card is if your machine is off-network - no network connectivity at all. If this is the case, then of course, please ignore this post.

But if it is on-network - that is, if it would be possible to use any of the thousands of ways of transferring files via the network - then I think most of us are going to continue to "Why?" - why you want to do it the hard way...
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

PaulBraspi
Posts: 9
Joined: Thu Sep 19, 2013 4:49 am

Re: How to read raspbian files in windows?

Thu Sep 19, 2013 2:36 pm

Yes, it's off network. I'm sorry; I should have made that clear.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 6008
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: How to read raspbian files in windows?

Thu Sep 19, 2013 3:06 pm

PaulBraspi wrote:Yes, it's off network. I'm sorry; I should have made that clear.
Fair enough. However you don't need a full network (eg. WiFi or ethernet cable, router, modem etc.) to get "network connectivity" .
If both your Pi and "other computer" have wired ethernet ports, just a short ethernet cable. If both only have USB (ie. you have a Model A Pi) USB-USB networking is possible: http://www.cpmspectrepi.webspace.virgin ... Cable.html (but slower).
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's & P400. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

W. H. Heydt
Posts: 14002
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: How to read raspbian files in windows?

Thu Sep 19, 2013 4:22 pm

When I need to transfer files between Linux (including Pis) and Windows, I use pscp from the Windows end. For the size files being discussed here (on the order of 20KB) it's probably faster than shutting down the PI, pulling the card, and setting up the access on the Windows system and then reversing the process and booting the Pi again.

Basically, get a file off the Pi...

Code: Select all

pscp -v <userid>@<IP addreess>:<path of file/name>  .
Assumes that you are in the directory you want to put the file. (Note the dot at the end. it's important. You can give the file a different name by using the file name instead of the dot.)

You'll need to download and install pscp (if you haven't already). And if you haven't grabbed PuTTY, do that as well while you're on the site to get pscp.

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: How to read raspbian files in windows?

Thu Sep 19, 2013 4:47 pm

Flinging network-based solutions at someone who has already stated that his machine(s) are off-network, is unlikely to be helpful.

I'm wondering if OP's situation is that he has a Windows-based system (in the Central Office, so to speak) and he has users in the field who send in their SD cards - for "downloading" to the central system.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

PaulBraspi
Posts: 9
Joined: Thu Sep 19, 2013 4:49 am

Re: How to read raspbian files in windows?

Fri Sep 20, 2013 12:59 am

Joe Schmoe wrote:I'm wondering if OP's situation is that he has a Windows-based system (in the Central Office, so to speak) and he has users in the field who send in their SD cards - for "downloading" to the central system.
In essence, yes!! This is exactly my situation.

I'm still trying to figure this out as I go along, but -- assuming I switch from NOOBS to booting Raspbian from a *.img -- then in effect I guess I'm asking how/where to write a small text file on a raspbian FAT partition so that I can subsequently read it on a Windows machine.

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: How to read raspbian files in windows?

Fri Sep 20, 2013 1:18 am

PaulBraspi wrote:I guess I'm asking how/where to write a small text file on a raspbian FAT partition so that I can subsequently read it on a Windows machine.
Anywhere in /boot

PaulBraspi
Posts: 9
Joined: Thu Sep 19, 2013 4:49 am

Re: How to read raspbian files in windows?

Fri Sep 20, 2013 1:49 am

All right! Great! I'll try that! Thanks!

Return to “Beginners”