Do I HAVE to sub partition a storage drive?
Hi,
Just after some quick advice :- I formatted a new 2tb drive with XFS filesystem it appears as /dev/sdc on my system and I can mount it ok (I've copied stuff to it and can read and write from it fine) However when I do fdisk -l it says invalid partition table for this drive only. I'm assuming I should have created a partition like /dev/sdc1 and then formatted it? Is there any risk/disadvantage in leaving it as it is - it will hold media files mostly. |
Yes, I think you should have created a primary partition for the size of the disk and then run mkfs.xfs on it.
|
Yes, I probably should have been partitioned first. That's common practice for a few reasons.
Without being partitioned you have no Master Boot Record so that disk can never be made bootable; if there is no MBR and your system is dual boot there is a possibility that the disk utilities used by the other OS might partition it on you (this may be just ancient history); esthetics?; consistancy?; and there are other reasons. I would correct this now, before you get too much data on it. Does xfs support UUID (I'm ignorant here); and are you mounting it by device name or UUID? btw, what distro and version are you using? Is the device owned by LVM? Is it possible with your distro? If so, I'd advise making it an LVM Physical Volume if you can. It'll make life much easier later on when you want to add more space, move stuff around, replace the drive with a larger one, etc. another btw, you should update your LQ profile so we know what distro and version you have. It makes answering your questions easier if we know that you are asking about a server, workstation, laptop or imbedded device... |
Partition the drive before formatting with a file system, or you'll run into problems. You can create a primary partition taking the full 2TB, then mkfs.xfs /dev/sdc1, and after that mount it.
|
I am running Arch Linux 64 (2.6.37) with a single boot drive with OS, formatted ext4 (using a HP proliant microserver as NAS)
This is a secondary drive for movies,songs etc. so never needs to be made bootable - I'm aiming for maximum disk usage and speed (will mostly be large files) I did put the xfs file system onto it but onto the whole drive i.e. mkfs.xfs /dev/sdc I can mount it fine using it UID I am not using LVM due to it being too complicated for this set up - I will eventually have 4 2TB drives with differing types of media on which can all be streamed from seperately for efficiency. |
Quote:
Quote:
I also recommend aligning the partitions to multiples of 4096 sectors (previous recommended 2048, but 4096 is a multiple of the new huge pages and that might end up being important some day). That multiple should apply to both the first, as well as last (minus 1) sector (e.g making the size as multiple of 2MB, too). |
FWIW I have several flash drives (Imation) that are not partitioned. I've had no problems using them with any OS or with any standard disk utility. The drive will work as is just fine but will agree with the others that it will make life easier if it was partitioned.
|
As far as choosing the best FS, there's an old thread that covers the topic in a lot of detail:
http://www.linuxquestions.org/questi...system-443612/ However, your choice of XFS is already well placed. I believe the consensus here is that you should create a partition using fdisk, and also follow Skaperen's advice and make the partitions large because you are storing media files on that disk. |
Hi,
There is no problem in using the whole drive instead of partitioning unless size is too great for a MBR based. Sure, management would be easier if partitioned properly. I agree with michaelk. You could have a MBR with 2.1TB limitation or if you select GPT then things would be handled different. Look at provided links. Quote:
|
ok thanks for all the replies.
I decided to re-partition using the conventions. I tried GTP first but it seemed a bit overcomplicated for my liking (I guess I'll leave this till the new 3/4Tb drives come out and we are forced to use it). I also found the new fdisk now defaults to a start sector of 2048 which is nice but I wanted to choose start sector 64 so had to use the -c msdos switch. What I found was utilities like fdisk now show the filesystem information correctly whereas before it would complain. MiniDlna and Samba are both serving their purpose and the box is doubling up as a media centre with XBMC playing HD. Not bad for £98 (there was a £100 HP rebate included in the price). Cheers |
Quote:
But you won't be forced to use GPT until drives 2TB and smaller disappear from the market. I still see 80GB drives around (32GB for SSD), so I think that will be quite a while. We'll likely see more drive miniaturization during this time, extending the life of "sub 2TB" drive sizes even longer. And when that dreaded day is reached, maybe you can still find a USB memory stick or camera memory card under 2TB. Or maybe everyone will have moved their data to the "cloud" and no longer need these devices :p |
All times are GMT -5. The time now is 07:02 PM. |