LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Do external FAT32 hard drives work with Linux? (https://www.linuxquestions.org/questions/linux-newbie-8/do-external-fat32-hard-drives-work-with-linux-760100/)

anon091 10-06-2009 12:53 PM

Do external FAT32 hard drives work with Linux?
 
I have a FAT32 external USB hard drive with a bunch of stuff I want to copy onto a RHEL server. Is it as simple as it is on a Mac or PC where I just plug it in and it will show up, then I can copy all the files off of it?

If it is, how do I safely remove the drive after I'm done with it?

markush 10-06-2009 01:08 PM

Hello,

yes it is as easy. Savest way to remove the drive is unmounting it and then wait until unmount is beeing done. Actually this is a good question since on Linux-systems it often looks like copying is ready but the syncronization takes place while the device is being unmounted.

Markus

Ahmed 10-06-2009 03:08 PM

Insert the drive and see whether it mounts automatically (I don't know about RHEL, but I suppose it'll have that ability). When the directory pops up under /mnt or /media, do whatever you want to do with it, then right click on the directory and click on "Unmount volume" or anything similar. If you do that, wait till the light on the drive (if there is one) stops flashing before pulling it out (!).

If you really want to be sure, first open a command line as root, execute

Code:

# sync
then unmount the drive.

-A

anon091 10-06-2009 03:17 PM

I guess my only "issue" (since I never done this before) is that my only access to the server is through the CLI.

Ahmed 10-06-2009 03:38 PM

Ok, insert your drive and then execute 'dmesg'. The last few lines should give a clue which device node it has (/dev/sda, /dev/sdb, ..). For example, I'll assume it's /dev/sdb.

Log in as root and create any directory in /mnt (say /mnt/drive) and then mount the device:

Code:

# mkdir /mnt/drive
# mount /dev/sdb1 /mnt/drive

This should give you access to the first (and probably only) partition on the drive, via this directory you've just created. After you're done copying files and stuff:

Code:

# sync  (<- just to be sure)
# umount /dev/sdb1

You can then delete the directory:

Code:

# rmdir /mnt/drive
That's all :)

-A

anon091 10-06-2009 05:12 PM

ok, thanks


All times are GMT -5. The time now is 03:03 AM.