Sunday, January 13, 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.

How can i access a RAID partition from Linux?
Q. I am playing around with Mandriva, a distribution of Linux. I have windows installed on a separate RAID 0+1 setup and i want to access my files from Mandriva. How can i do this? I'm reading about samba shares but i'm not so sure I understand. Is there a directory i can just type in to access my windows partition?

A. Just mount the partition.

How can I mount a disk I unmounted on my Mac?
Q. I ejected one of my hard drives by accident and when I tried to mount it again, it says "Mount failed. Try running first aid on the disk and then retry mounting. I ran first aid (both verify and repair disk) and that failed as well. It's an almost new disk with all my most important files (of course). The recommended action by First Aid is to erase and reformat.

A. If you're familiar with the Terminal application you could try getting the drive mounted via the command line. The programs you'll likely need are "fsck" to make sure the partition is clean and "mount" to actually mount the partition. Unfortunately those tools have a bit of a learning curve if you don't have any UNIX/Linux background.

Another option is other GUI-based disk/mount utilities. "Mount Me!" has worked for some people but I haven't had a need for it personally.




Powered by Yahoo! Answers

No comments:

Post a Comment