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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
02-15-2023, 07:27 AM
|
#1
|
LQ Newbie
Registered: Feb 2023
Posts: 10
Rep:
|
HD not fully found and cannot get enough for gparted to work
Hi all, I have a hard drive that is undetectable by gparted and by windows and its utilities. A while back it was in a working linux system but because I was new to Linux I messed up the OS and so I just bout a new drive. But now I am trying to use it again as an external drive. I believe when I removed it I was able to wipe it using linux with ones and zeros.
So while trying some basic options to try an recognizance this I noticed when hook up to Linux, and I reboot my Linux system trys to boot into this one but fails, and it had a error line no fstab file or directory found.
here are some basic stuff I tried:
$ sudo fdisk -t /dev/sdb
[sudo] password for jand:
fdisk: unsupported disklabel: /dev/sdb
- - - - - - - next command - - - - - - - - -
$ lsblk
sda is my working hard drive not listed here
sdb 8:16 0 931.5G 0 disk
- - - - - - - next command - - - - - - - - -
$ sudo fdisk -l /dev/sdb
just clocks and clocks same issue with gparted and win 10 utilities
Thanks for any advice!
|
|
|
02-15-2023, 02:52 PM
|
#2
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,496
|
How are you trying to use it as an external drive? External drives need to get power from an external power source, or from a USB port that actually provides enough power for the drive. The latter excludes using USB2 ports, and some USB3 ports.
|
|
|
02-16-2023, 04:05 AM
|
#3
|
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,860
Rep: 
|
Quote:
I believe when I removed it I was able to wipe it using linux with ones and zeros.
|
Possibly, you wiped the MBR, & all info about partitions, if so you will need to give it a new MBR or GPT table, format it with a new filesystem; then try to mount it.
|
|
1 members found this post helpful.
|
02-17-2023, 12:29 AM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,378
|
Tr gdisk rather than fdisk.
|
|
1 members found this post helpful.
|
02-17-2023, 07:38 PM
|
#5
|
LQ Newbie
Registered: Feb 2023
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by fatmac
Possibly, you wiped the MBR, & all info about partitions, if so you will need to give it a new MBR or GPT table, format it with a new filesystem; then try to mount it.
|
I think that is what happened, but if gparted wont recognize it how do I format it? this is the part that is confusing me. Thanks for the help!
|
|
|
02-17-2023, 07:43 PM
|
#6
|
LQ Newbie
Registered: Feb 2023
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by mrmazda
How are you trying to use it as an external drive? External drives need to get power from an external power source, or from a USB port that actually provides enough power for the drive. The latter excludes using USB2 ports, and some USB3 ports.
|
I have an adapter with a power adapter to an AC outlet the unit plugs into the drive then through a USB, I have other drives I read like this so I do know this adapter works. I think like was mentioned I did wipe the MBR. Now I am not sure how to create a new MBR
|
|
|
02-17-2023, 07:48 PM
|
#7
|
Moderator
Registered: Aug 2002
Posts: 26,731
|
What type of enclosure are using for the drive? I assume the drive is 3.5" but make/model number would help.
As posted internal drives require some sort of external power supply although something is being read because the drive size is being reported i.e. sdb 8:16 0 931.5G 0 disk
Check the output of the dmesg command to see if there are disk errors as well as running a smart test via smartctl.
|
|
|
02-17-2023, 08:18 PM
|
#8
|
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,496
|
When a partition table has been removed with disturbing data on the partitions themselves, a new table needs to be created with the exact same parameters as previously used. I have no knowledge of which partitioning tools are capable of this except for one: http://www.dfsee.com/. It used to be proprietary, but it was recently made free. To get author support for this particular process used to be required and covered by the license. How it works now I don't know. It may require a small fee to get a custom script that rebuilds the table correctly.
|
|
|
02-17-2023, 08:43 PM
|
#9
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385
|
Quote:
Originally Posted by JimT_23
if gparted wont recognize it how do I format it? this is the part that is confusing me. Thanks for the help!
|
use gdisk: https://ahelpme.com/linux/tips/repai...pt-with-gdisk/
also:
man gdisk
|
|
|
02-18-2023, 01:59 AM
|
#10
|
LQ Newbie
Registered: Feb 2023
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by michaelk
What type of enclosure are using for the drive? I assume the drive is 3.5" but make/model number would help.
As posted internal drives require some sort of external power supply although something is being read because the drive size is being reported i.e. sdb 8:16 0 931.5G 0 disk
Check the output of the dmesg command to see if there are disk errors as well as running a smart test via smartctl.
|
Here is the dmesg output:
Code:
[76766.858272] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[76766.858286] buffer_io_error: 2 callbacks suppressed
[76766.858288] Buffer I/O error on dev sdb, logical block 0, async page read
[76766.858344] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[76766.858351] Buffer I/O error on dev sdb, logical block 0, async page read
[76766.858374] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[76766.858380] Buffer I/O error on dev sdb, logical block 0, async page read
[76766.858391] ldm_validate_partition_table(): Disk read failed.
[76766.858405] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[76766.858411] Buffer I/O error on dev sdb, logical block 0, async page read
[76766.858433] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[76766.858438] Buffer I/O error on dev sdb, logical block 0, async page read
[76766.858460] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[76766.858465] Buffer I/O error on dev sdb, logical block 0, async page read
[76766.858485] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[76766.858490] Buffer I/O error on dev sdb, logical block 0, async page read
[76766.858499] Dev sdb: unable to read RDB block 0
[76766.858513] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[76766.858517] Buffer I/O error on dev sdb, logical block 0, async page read
[76766.858537] blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[76766.858542] Buffer I/O error on dev sdb, logical block 0, async page read
[76766.858571] blk_update_request: I/O error, dev sdb, sector 24 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[76766.858576] Buffer I/O error on dev sdb, logical block 3, async page read
[76766.858621] sdb: unable to read partition table
[76766.858762] sd 9:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[76766.858767] sd 9:0:0:0: [sdb] Sense not available.
[76766.858772] sd 9:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
|
|
|
02-18-2023, 02:01 AM
|
#11
|
LQ Newbie
Registered: Feb 2023
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by jailbait
|
Tried gdisk and it just clocks since there are no tables to read I am guessing just clocks for ever like gparted does.
|
|
|
02-18-2023, 02:35 AM
|
#12
|
LQ Veteran
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,291
|
Ran this bootable partition manager on a comapq cq-56 for more than 5 primary partitions. So the user could keep windows.
Won't hurt to try it I guess.
https://www.techspot.com/downloads/3...ion-logic.html
If not. Maybe latest gparted might help
https://gparted.org/livecd.php
don't list the drive either?
|
|
|
02-18-2023, 04:13 AM
|
#13
|
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,860
Rep: 
|
To create a new MBR, I use fdisk at the command line, use the 'o' option to set a new MBR, & if not confident using this program, use the 'w' option to write it to disk & quit the program, then you should be able to partition & format it with the program that you are most comfortable using.
|
|
|
02-18-2023, 09:01 AM
|
#14
|
LQ Newbie
Registered: Feb 2023
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by fatmac
To create a new MBR, I use fdisk at the command line, use the 'o' option to set a new MBR, & if not confident using this program, use the 'w' option to write it to disk & quit the program, then you should be able to partition & format it with the program that you are most comfortable using.
|
Sorry, no go I tried every suggestion here.
|
|
|
02-18-2023, 09:08 AM
|
#15
|
LQ Newbie
Registered: Feb 2023
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by mrmazda
When a partition table has been removed with disturbing data on the partitions themselves, a new table needs to be created with the exact same parameters as previously used. I have no knowledge of which partitioning tools are capable of this except for one: http://www.dfsee.com/. It used to be proprietary, but it was recently made free. To get author support for this particular process used to be required and covered by the license. How it works now I don't know. It may require a small fee to get a custom script that rebuilds the table correctly.
|
So I was messing around a year ago with this HD and I wanted to remove all my personal info because I have a tendency to loose stuff. So all data was purposefully wiped thoroughly. It seems it did its job and not sure if it is possible to recreate with the same parameters how would we know what these even are now? So I might just buy a new drive and call it a day.
|
|
|
All times are GMT -5. The time now is 07:52 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|