Saturday, February 9, 2013

How do you determine what Linux file system your using?

Q. When you log onto a Linux system and get to the command prompt, how can you determine which of the many file systems supported in Linux you are using? Is there a command that will identify it?

A. Use fsck with the N option which just show what would have been done, but also show you what type of filesystem it is.

fsck -N /dev/(device-name)

e.g.

fsck -N /dev/hdc2

The 'mount' command wont help if the filesystem isn't mounted, and looking in /etc/fstab wont help because you cant be sure that information can be trusted.

Linux - File system structure between different distros?
Q. I have been reading about Linux distros and I am lost in that kind of "flavors".
Would someone help me understand the main differences in the file system structure in Fedora and how this is compared with the file system structure in Debian?

A. From an end-user perspective there really isn't much difference. Mostly the file system structure (do you mean layout?) is the same. For example, standard programs live in one or more of /bin, /sbin, /usr/bin, /usr/sbin, and custom applications live in /usr/local/bin (but you don't need to worry about any of that, as the PATH variable manages finding them).

Debian-derived distributions provide for some configuration within the directory /etc/default/, and network interfaces are either configured in the file /etc/network/interfaces or by Network Manager.

RedHat-derived distributions (including Fedora) mostly use /etc/sysconfig/ for configuration files, and network interfaces are configured in separate files (one per interfaces) underneath /etc/sysconfig/interfaces/ or by Network Manager

Unless you're getting into writing portable installation scripts that's about as far as you really need to go.

Partitioning a hard drive with two different Linux OS's sharing a common file system?
Q. How do I partition my hard drive with two Linux operating systems so that they have a common shared file system? It was explained to me a long time ago but I forgot. THANK YOU in advance for your time and consideration.

A. First, contrary to what jerry said, two /home/ directories may not be safely shared. There are two many config files, you you may end up with name and version conflicts.

/temp may be safely shared

the swap may be safely shared (but wierd thing can happen on resume from hibernate)

also /boot/ may be safely shared so long as you only configure from one system or the other, and there are no filename collisions (unlikely so no really safe in practice)

To just share media file, I would just create a partition and mount it at /share by editing the fstab of both systems. Then you can make your /home/user/Music a soft link that point to /share/Music. Repeat for Documents, Pictures, Downloads, and whatever else you care to share.



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

No comments:

Post a Comment