Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've put 2 WD 1.5 TB drives into my computer. The first was empty and the second was full (almost). The full one was an NTFS partition and the empty I formatted using "Disk Utility" as an EXT4 filesystem.
I copied everything over from the full drive to the empty drive so that I could re-format the NTFS partition to EXT4.
When I was done formatting the first drive as EXT4 it didn't show up as a hdd on the left panel in Nautilus. People kept telling me to not worry about it and just put a shortcut to the mount point. So that's what I did.
Now I've formatted the second drive but this time I used GParted because I was deleting 3 partitions that were on it and then re-formatted as EXT4. Once I opened Nautilus that drive showed as a hdd.
I then opened the first hdd in GParted (the one that isn't showing as a hdd) and it is showing as UNALLOCATED instead of as an ext4 partition.
This is really weird. Is there any way of fixing this without having to copy everything over again and re-format?
Have you made partitions on the first disk before formatting it? If not you formatted the whole disk with ext4, instead of a partition on it. This is rather uncommon, but totally possible and working. GParted simply sees the disk as unallocated because it has no partition table.
I did create a partition though but using Disk Utility. I clicked at the top where is said Create Partition or something like that and then select "Master Boot" which was the recommended option. Then I created the file system on it EXT4.
So, I'm guessing the only way to fix this is to re-partition the drive and re-format?
Partition table entries are not in disk order
Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00095efd
Device Boot Start End Blocks Id System
/dev/sdb1 1 182401 1465136001 0 Empty
Disk /dev/sdc: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x93fd9413
Device Boot Start End Blocks Id System
/dev/sdc1 1 182402 1465137152 83 Linux
/dev/sdb1 is the drive that I'm having a problem with. It shows up as empty but it is full. (showing in GParted as "Unallocated").
/dev/sdc1 is the drive that I just re-formatted with GParted and it is correct. There is nothing on this drive at all right now.
It is very, very strange that an allocated partition would have a type code of 0 (Empty), but that appears to be the case here. I just did a quick test, and had no problem with using the command line 'fdisk' utility to change the type code to 83 (Linux). Use the "t" command to change the type.
As stated empty just means the partition ID value is not set. It is independent of the actual file system and formatting does not automatically change ID type. FYI The disk utility does have a separate button to change the ID.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.