How do I format my external hard drive to a very Linux compatible file system?
Linux – How to Format External Hard Drive to Linux Compatible File System
filesystemsmkfs
Related Solutions
My question is, if I purchase a standard Windows external hard drive with a USB connection, will I be able to copy the files from the Linux cluster's files server to the external drive?
Yes, there is no technical problem to this, however:
The hardware us not a "standard windows hard drive with USB connection". Please scrap the windows part from that sentence. And external USB HDD will work equally well with or without windows as the OS.
I am assuming that the Linux cluster has a USB port, but this is something that I will need to verify.
For a large amount of data (and 1TB is a lot) connecting the drive locally is probably a lot faster. However with USB2 you are still limited to 35-ish MB/sec. That means that copying 1TB over USB2 takes about 8-9 hours.*
You can speed that up a lot if the drive is locally mounted (via plain SATA), if the cluster and your drive have eSATA, if both have USB3 or if both have firewire.
Alternatively you can connect the drive to your own desktop and copy the files. In this case the network might be the speed limit. You also risk an angry administrator asking why you are making the network so slow for other users. :-)
It looks like many standard Windows external hard drives are formatted in either NTFS or FAT32, whereas our Ubuntu Linux file server uses NFS.
uhm, no.
The hard disk does not care which filesystem is used. It may come pre-formatted with NTFS (which is a sensible choice for most people who buy them), but nothing stop you from changing the filesystem and reformatting. That should only take a few minutes.
Also, your file server does not use NFS on its hard disks. It is probably using ext2, ext4 or ZFS. Neither of which you need to worry about. As long as you can read the data you can write it in any format.
(Consider the analogy: You copy the text written in a notebook. Do not worry about the form or the colour of the original notebook. As long as you can read it and have a large enough notebook of your own you can copy the content from one notebook to another).
*: 8-9 hours estimated based on this:
35 MiB/second
100 MiB per 3 seconds.
1000 MiB per 30 seconds, which is the same as 1GiB per 30 seconds.
1GiB per 30 seconds
1000GiB per 30000 seconds
1TiB per 30000 seconds. 30000/3600=8.3 (3600 seconds per hour)
Depending on who set up the old Windows machine (ie: if it's from HP, Lenovo, etc) you may have many different partitions on the disk that you normally wouldn't see with Windows. Those partitions might include recovery, unused space, etc. As mentioned in the answer above, use fdisk to see the partitions.
fdisk -l /dev/sdb
Using that information you can find out which partition is where the files you need are located. The largest partition is probably the one you want.
Depending on your distribution and version of Windows, you might need to get the ntfs-4g package in order to mount the disk. It looks like you wanted to mount it readonly and that you expect it to be ntfs3 based on your fstab entry.
mount -o ro /dev/sdbX /media/Microsoft
For the second part of the question you should have several options depending on what you want to do. You can make a normal file systems with mkfs or you could create a logical volume. If you have a modern installation of a recent linux distribution then your system is more than likely using LVM - you can check with the command "vgs
". If you receive output with details about a volume group then LVM is in place. You could add the disk to LVM to expand your existing partitions or create a new, independent disk that is mounted somewhere separately.
Best Answer
You could use GUI applications like GParted on Ubuntu. Install them from the repositories using:
Once you have it installed, select the correct block device/partition and format it using a filesystem like ext2/3/4, JFS, XFS, ResiserFS, etc depending on your needs.
However, the above mentioned file systems are only for reference. Not all of them run on all distributions perfectly.
For example, as @Nils pointed out:
Ext2 is almost a legacy file system now and not a very good choice.
That leaves only Ext3 and Ext4.
Again, since ext4 is still new and under development, it may have problems with a few distributions. For example, on RH5 there is no ext4, on SLES10 it is a bit dicey. However, I should point out here that the vanilla Linux kernel completely supports ext4 since version 2.6.28. On Arch and Gentoo ext4 gives no problems.
But ext3 will work an any current distribution - not only the newest ones.