maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Explain the filesystem to me please? (https://talk.maemo.org/showthread.php?t=36166)

edgedemon 2009-12-07 13:10

Explain the filesystem to me please?
 
Hi There
When using the terminal, Im working within a normal linux file system structure, which I am presuming is protected as I can't see this structure when using mass storage mode from the PC
How can I transfer files from /home/user to a folder that I can then access from my PC in mass storage mode?
I can see folders under ./obex-root, which sort of correspond to view from my PC, but cant get into any of them apart from documents which if I copy files to - do not show up when viewing from my pc

Whats the best way to do this?
How does the n900 filestructure work?

Many thanks

cddiede 2009-12-07 13:16

Re: Explain the filesystem to me please?
 
Here's the breakdown:

/ is the root system partition where applications are loaded. This is a two Gigabyte partition.

/home/user/MyDocs is the area that is visable from the N900's GUI filemanager as "N900". This is the remainder of the internal 32GB chunk (about 27~ GB).

/media/mmc1 is the Micro SCHC card.

When you plug in the N900 in USB Mass storage mode, the host PC maps the /media/mmc1 and the /home/user/MyDocs partitions as separate readable drives.

If you want to move files from anywhere else onto your PC, first copy them to either the SDHC card, or to /home/user/MyDocs.

Hope this helps.

range 2009-12-07 13:16

Re: Explain the filesystem to me please?
 
Quote:

Originally Posted by edgedemon (Post 414455)
Hi There
When using the terminal, Im working within a normal linux file system structure, which I am presuming is protected as I can't see this structure when using mass storage mode from the PC
How can I transfer files from /home/user to a folder that I can then access from my PC in mass storage mode?

Do an "ls -la" in the terminal when you are in /home/user - the directories are all beginning with a ".".

So you have .documents/, .images/ and so on - these directories should show up when you connect the N900 to your PC.

EDIT: In /home/user/MyDocs that is - not in /home/user.

fnordianslip 2009-12-07 13:18

Re: Explain the filesystem to me please?
 
Quote:

Originally Posted by cddiede (Post 414465)
Here's the breakdown:

/ is the root system partition where applications are loaded. This is a two Gigabyte partition.

/home/user/MyDocs is the area that is visable from the N900's GUI filemanager as "N900". This is the remainder of the internal 32GB chunk (about 27~ GB).

/media/mmc1 is the Micro SCHC card.

When you plug in the N900 in USB Mass storage mode, the host PC maps the /media/mmc1 and the /home/user/MyDocs partitions as separate readable drives.

If you want to move files from anywhere else onto your PC, first copy them to either the SDHC card, or to /home/user/MyDocs.

Hope this helps.

This isn't quite right though. I'm not sure I know exactly how its set up, but this isn't it.

Alex Atkin UK 2009-12-07 13:24

Re: Explain the filesystem to me please?
 
Quote:

Originally Posted by cddiede (Post 414465)
Here's the breakdown:

/ is the root system partition where applications are loaded. This is a two Gigabyte partition.

Actually / is 256MB built-in to the CPU package. It contains the OS/Firmware.

/opt -> /home/opt is 2GB reserved from the 32GB internal storage chip. It is meant to be used for anything you install on top of the standard firmware as / has very little spare space.

Quote:

Originally Posted by cddiede (Post 414465)
/home/user/MyDocs is the area that is visable from the N900's GUI filemanager as "N900". This is the remainder of the internal 32GB chunk (about 27~ GB).

/media/mmc1 is the Micro SCHC card.

When you plug in the N900 in USB Mass storage mode, the host PC maps the /media/mmc1 and the /home/user/MyDocs partitions as separate readable drives.

If you want to move files from anywhere else onto your PC, first copy them to either the SDHC card, or to /home/user/MyDocs.

Hope this helps.

Is correct.

Basically, /home/user/MyDocs is where you are expected to put all your files such as music, videos, documents. The camera also saves here.

If you really need to access other parts of the filesystem you can always install OpenSSH - Server and then use winscp (if you are on Windows) to login and browse the filesystem. I am not sure if OpenSSH is in testing or extra though and you need to be a lot more careful when using it anyway as it gives you power to change things that will stop everything working.

cddiede 2009-12-07 13:32

Re: Explain the filesystem to me please?
 
Quote:

Originally Posted by fnordianslip (Post 414476)
This isn't quite right though. I'm not sure I know exactly how its set up, but this isn't it.

Really? That's how it's always presented itself on my device.
Here's a df output from the N900:

http://www.besh.com/~chad/shot.txt

fnordianslip 2009-12-07 13:54

Re: Explain the filesystem to me please?
 
Quote:

Originally Posted by cddiede (Post 414502)
Really? That's how it's always presented itself on my device.
Here's a df output from the N900:

http://www.besh.com/~chad/shot.txt

Your rootfs is mounted on / and in your df output is shown as having 227.9MB of total size. That's not 2GB. /opt is actually in /home and has the additional 2GB for packages from Extras and the remainder of the 32GB built-in MMC is on /home/user/MyDocs.

So it wasn't quite what you'd described earlier, but I can see why you'd perhaps describe it that way. The fact remains though, that the rootfs is quite small and we need 'care in the community' to ensure that it doesn't get filled up.

edgedemon 2009-12-07 13:57

Re: Explain the filesystem to me please?
 
Thanks guys - that was exactly what I needed to know :D

All sorted now

ossipena 2009-12-07 16:50

Re: Explain the filesystem to me please?
 
for later purposes:

http://wiki.maemo.org/N900_filesystem

will soon add the sizes of the partitions to the table.

jflatt 2009-12-07 18:28

Re: Explain the filesystem to me please?
 
So why the 2GB partition at /dev/mmcblk0p2 (/home)? Is this for the rest of the system that wouldnt fit in the rootfs? Basically, /home is stuff we shouldn't really touch, and /dev/mmcblk0p1 (/home/user/MyDocs) we can use?


All times are GMT. The time now is 07:19.

vBulletin® Version 3.8.8