LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-25-2012, 08:42 AM   #1
jim.thornton
Member
 
Registered: May 2007
Posts: 430

Rep: Reputation: 19
Problems with hard drive


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?
 
Old 01-25-2012, 10:00 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
Old 01-25-2012, 10:06 AM   #3
jim.thornton
Member
 
Registered: May 2007
Posts: 430

Original Poster
Rep: Reputation: 19
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?
 
Old 01-25-2012, 10:43 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Please post the output of
Code:
sudo fdisk -l
 
Old 01-25-2012, 11:24 AM   #5
jim.thornton
Member
 
Registered: May 2007
Posts: 430

Original Poster
Rep: Reputation: 19
# sudo fdisk -l
Code:
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.
 
Old 01-25-2012, 07:03 PM   #6
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
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.
 
Old 01-25-2012, 07:33 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems installing ubuntu live cd hard drive problems! icturubyz2 Linux - Newbie 2 05-26-2009 12:07 AM
Hard Drive problems bullit.mosh Linux - Hardware 14 04-06-2007 06:05 PM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 02:24 PM
Hard drive problems pajohn Linux - Hardware 1 09-06-2005 12:40 PM
hard drive problems nuka_t General 1 10-26-2004 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration