LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-14-2021, 05:02 AM   #1
jpi90
LQ Newbie
 
Registered: Aug 2021
Posts: 6

Rep: Reputation: Disabled
Exclamation Hard Drive not detected after Lilo command


I have a problem with my hard drive. I have two differents hard drives, one with windows and other with Linux.

The problem was that, after i installed the Linux Hard drive, i made a mistake and installed the GRUB in the Windows hard drive.

Since then, the windows hard drive started to function really bad, sometimes i couldn't even boot from there. But so far it still woked.

Trying to fix this, i found a guy who suggested to do "lilo -M /mbr /dev/sda" (sda was the windows hard drive). So i try that. Since i did that, my hard drive is not recognized anymore by my Linux.

I can't even read my data to save it!!

Does anybody can help me with this? How can i make the hard drive works again??

Thank you very much!!
 
Old 08-14-2021, 05:52 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,206
Blog Entries: 20

Rep: Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758
Before you do anything else, boot from an external image on CD/DVD/USB and copy your data to safe storage! With any luck, your Linux installation image will do for that. Then you can deal with fixing the hard drives.
 
Old 08-14-2021, 05:57 AM   #3
jpi90
LQ Newbie
 
Registered: Aug 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi hazel,

Thank you. The thing is that, I can boot from my Linux hard drive without any problem, but once I am there I can’t see my windows hard drive to recover the data. I tried to mount it but with no success.
So I think that if I boot externally from a usb, it will be the same, I won’t be able to see my windows hard drive.
 
Old 08-14-2021, 06:24 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,206
Blog Entries: 20

Rep: Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758Reputation: 4758
What exactly do you mean by "I can't see it".

Is there a device file for the drive in your /dev directory? I would expect it to be called something like /dev/sdb.

Are there device files for the partitions on that drive? If so, do you know which one is your main Windows partition? Is that partition listed in your /etc/fstab file? That will determine how much information you have to provide to your system in order to mount it successfully.

What happens when you try to mount that partition? If it doesn't mount, what error message do you get?

Please do try to be specific. Giving an error message is always better than just saying, "I can't..."

Last edited by hazel; 08-14-2021 at 06:27 AM.
 
Old 08-14-2021, 06:29 AM   #5
jpi90
LQ Newbie
 
Registered: Aug 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
Sorry for not being specific.

When i tip "fdisk -l" i just see the Linux hard drive /dev/sdb. I know that my windows hard drive must be in /dev/sda.

So what i tried is: "mount /dev/sda /media/usb/". Then i get this message:

mount: /media/usb: tipo de sistema de ficheros incorrecto, opción incorrecta, superbloque incorrecto en /dev/sda, falta la página de códigos o el programa auxiliar, o algún otro error.

Which i will translate to english:

mount: /media/usb wrong filesystem type, wrong option, wrong superblock in / dev / sda, missing code page or helper, or some other error.
 
Old 08-14-2021, 06:49 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Please actually show us the full output of
Code:
sudo LC_ALL=C fdisk -l
If your currently in use partition resides on sdb, sda should still exist somewhere, so you can also try
Code:
sudo LC_ALL=C dmesg | grep sda
BTW, you generally do not mount complete drives (sda) but partitions instead (sda1, sda2...).

Please use CODE tags for code & output, see my signature.
 
Old 08-14-2021, 09:08 AM   #7
jpi90
LQ Newbie
 
Registered: Aug 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
I withdraw the hard drive and connect it to a carrier. Then i plugged the carrier to my laptop and run your suggestion. Here is the output:

root@localhost:/home/juan# LC_ALL=C dmesg | grep sdb
[ 116.321004] sd 2:0:0:0: [sdb] 156301485 512-byte logical blocks: (80.0 GB/74.5 GiB)
[ 116.321401] sd 2:0:0:0: [sdb] Write Protect is off
[ 116.321404] sd 2:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 116.321796] sd 2:0:0:0: [sdb] Asking for cache data failed
[ 116.321804] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 116.342922] sdb: sdb1 sdb2
[ 116.344897] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 237.123535] sd 2:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
[ 237.123538] sd 2:0:0:0: [sdb] 0-byte physical blocks
[ 237.124064] sd 2:0:0:0: [sdb] Test WP failed, assume Write Enabled
[ 237.124627] sd 2:0:0:0: [sdb] Asking for cache data failed
[ 237.124633] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 237.127424] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 1357.321092] sd 2:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
[ 1357.321094] sd 2:0:0:0: [sdb] 0-byte physical blocks
[ 1357.321635] sd 2:0:0:0: [sdb] Test WP failed, assume Write Enabled
[ 1357.322197] sd 2:0:0:0: [sdb] Asking for cache data failed
[ 1357.322201] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 1357.324405] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 1423.055052] sd 2:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
[ 1423.055056] sd 2:0:0:0: [sdb] 0-byte physical blocks
[ 1423.055595] sd 2:0:0:0: [sdb] Test WP failed, assume Write Enabled
[ 1423.059994] sd 2:0:0:0: [sdb] Asking for cache data failed
[ 1423.060001] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 1423.063919] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 1442.413216] sd 2:0:0:0: [sdb] 976773165 512-byte logical blocks: (500 GB/466 GiB)
[ 1442.413609] sd 2:0:0:0: [sdb] Write Protect is off
[ 1442.413613] sd 2:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 1442.413978] sd 2:0:0:0: [sdb] Asking for cache data failed
[ 1442.413989] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 1445.814400] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1445.814408] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1445.814413] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1445.814419] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00 00 00
[ 1445.814422] print_req_error: critical target error, dev sdb, sector 0
[ 1445.814433] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1445.814472] print_req_error: I/O error, dev sdb, sector 1
[ 1445.814477] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1445.814480] Buffer I/O error on dev sdb, logical block 2, async page read
[ 1445.814484] Buffer I/O error on dev sdb, logical block 3, async page read
[ 1445.814488] Buffer I/O error on dev sdb, logical block 4, async page read
[ 1445.814492] Buffer I/O error on dev sdb, logical block 5, async page read
[ 1445.814495] Buffer I/O error on dev sdb, logical block 6, async page read
[ 1445.814499] Buffer I/O error on dev sdb, logical block 7, async page read
[ 1445.814600] print_req_error: I/O error, dev sdb, sector 0
[ 1445.814611] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1445.814632] print_req_error: I/O error, dev sdb, sector 1
[ 1445.814636] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1445.814649] print_req_error: I/O error, dev sdb, sector 2
[ 1445.814663] print_req_error: I/O error, dev sdb, sector 3
[ 1445.814677] print_req_error: I/O error, dev sdb, sector 4
[ 1445.814691] print_req_error: I/O error, dev sdb, sector 5
[ 1445.814705] print_req_error: I/O error, dev sdb, sector 6
[ 1445.814720] print_req_error: I/O error, dev sdb, sector 7
[ 1445.815448] Dev sdb: unable to read RDB block 0
[ 1445.815916] sdb: unable to read partition table
[ 1445.818005] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 1518.509945] sd 2:0:0:0: [sdb] 976773165 512-byte logical blocks: (500 GB/466 GiB)
[ 1518.510317] sd 2:0:0:0: [sdb] Write Protect is off
[ 1518.510320] sd 2:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 1518.510694] sd 2:0:0:0: [sdb] Asking for cache data failed
[ 1518.510703] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 1521.916831] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1521.916837] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1521.916842] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1521.916848] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00 00 00
[ 1521.916854] print_req_error: critical target error, dev sdb, sector 0
[ 1521.916866] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1521.916908] print_req_error: I/O error, dev sdb, sector 1
[ 1521.916912] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1521.916916] Buffer I/O error on dev sdb, logical block 2, async page read
[ 1521.916919] Buffer I/O error on dev sdb, logical block 3, async page read
[ 1521.916923] Buffer I/O error on dev sdb, logical block 4, async page read
[ 1521.916926] Buffer I/O error on dev sdb, logical block 5, async page read
[ 1521.916930] Buffer I/O error on dev sdb, logical block 6, async page read
[ 1521.916934] Buffer I/O error on dev sdb, logical block 7, async page read
[ 1521.917036] print_req_error: I/O error, dev sdb, sector 0
[ 1521.917047] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1521.917069] print_req_error: I/O error, dev sdb, sector 1
[ 1521.917073] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1521.917086] print_req_error: I/O error, dev sdb, sector 2
[ 1521.917101] print_req_error: I/O error, dev sdb, sector 3
[ 1521.917114] print_req_error: I/O error, dev sdb, sector 4
[ 1521.917127] print_req_error: I/O error, dev sdb, sector 5
[ 1521.917140] print_req_error: I/O error, dev sdb, sector 6
[ 1521.917154] print_req_error: I/O error, dev sdb, sector 7
[ 1521.918004] Dev sdb: unable to read RDB block 0
[ 1521.918552] sdb: unable to read partition table
[ 1521.920364] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 1567.823417] sd 2:0:0:0: [sdb] 976773165 512-byte logical blocks: (500 GB/466 GiB)
[ 1567.823794] sd 2:0:0:0: [sdb] Write Protect is off
[ 1567.823798] sd 2:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 1567.824150] sd 2:0:0:0: [sdb] Asking for cache data failed
[ 1567.824160] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 1571.475198] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1571.475206] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1571.475211] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1571.475217] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00 00 00
[ 1571.475223] print_req_error: critical target error, dev sdb, sector 0
[ 1571.475235] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1571.475276] print_req_error: I/O error, dev sdb, sector 1
[ 1571.475280] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1571.475285] Buffer I/O error on dev sdb, logical block 2, async page read
[ 1571.475289] Buffer I/O error on dev sdb, logical block 3, async page read
[ 1571.475293] Buffer I/O error on dev sdb, logical block 4, async page read
[ 1571.475297] Buffer I/O error on dev sdb, logical block 5, async page read
[ 1571.475300] Buffer I/O error on dev sdb, logical block 6, async page read
[ 1571.475304] Buffer I/O error on dev sdb, logical block 7, async page read
[ 1571.475400] print_req_error: I/O error, dev sdb, sector 0
[ 1571.475410] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1571.475429] print_req_error: I/O error, dev sdb, sector 1
[ 1571.475432] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1571.475443] print_req_error: I/O error, dev sdb, sector 2
[ 1571.475454] print_req_error: I/O error, dev sdb, sector 3
[ 1571.475465] print_req_error: I/O error, dev sdb, sector 4
[ 1571.475476] print_req_error: I/O error, dev sdb, sector 5
[ 1571.475486] print_req_error: I/O error, dev sdb, sector 6
[ 1571.475498] print_req_error: I/O error, dev sdb, sector 7
[ 1571.476180] Dev sdb: unable to read RDB block 0
[ 1571.476514] sdb: unable to read partition table
[ 1571.478318] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 1621.138921] sd 2:0:0:0: [sdb] 976773165 512-byte logical blocks: (500 GB/466 GiB)
[ 1621.139314] sd 2:0:0:0: [sdb] Write Protect is off
[ 1621.139318] sd 2:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 1621.143876] sd 2:0:0:0: [sdb] Asking for cache data failed
[ 1621.143884] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 1624.788617] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1624.788622] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1624.788625] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1624.788629] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00 00 00
[ 1624.788633] print_req_error: critical target error, dev sdb, sector 0
[ 1624.788641] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1624.788663] print_req_error: I/O error, dev sdb, sector 1
[ 1624.788664] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1624.788666] Buffer I/O error on dev sdb, logical block 2, async page read
[ 1624.788668] Buffer I/O error on dev sdb, logical block 3, async page read
[ 1624.788670] Buffer I/O error on dev sdb, logical block 4, async page read
[ 1624.788672] Buffer I/O error on dev sdb, logical block 5, async page read
[ 1624.788673] Buffer I/O error on dev sdb, logical block 6, async page read
[ 1624.788675] Buffer I/O error on dev sdb, logical block 7, async page read
[ 1624.788720] print_req_error: I/O error, dev sdb, sector 0
[ 1624.788724] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1624.788727] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1624.788750] print_req_error: I/O error, dev sdb, sector 0
[ 1624.788759] print_req_error: I/O error, dev sdb, sector 1
[ 1624.788768] print_req_error: I/O error, dev sdb, sector 2
[ 1624.788776] print_req_error: I/O error, dev sdb, sector 3
[ 1624.788785] print_req_error: I/O error, dev sdb, sector 4
[ 1624.788790] print_req_error: I/O error, dev sdb, sector 5
[ 1624.788795] print_req_error: I/O error, dev sdb, sector 6
[ 1624.789062] Dev sdb: unable to read RDB block 0
[ 1624.789613] sdb: unable to read partition table
[ 1624.794429] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 1647.538087] sd 2:0:0:0: [sdb] 976773165 512-byte logical blocks: (500 GB/466 GiB)
[ 1647.538432] sd 2:0:0:0: [sdb] Write Protect is off
[ 1647.538435] sd 2:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 1647.538787] sd 2:0:0:0: [sdb] Asking for cache data failed
[ 1647.538793] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 1650.945686] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1650.945690] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1650.945692] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1650.945695] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00 00 00
[ 1650.945699] print_req_error: critical target error, dev sdb, sector 0
[ 1650.945705] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1650.945727] print_req_error: I/O error, dev sdb, sector 1
[ 1650.945729] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1650.945731] Buffer I/O error on dev sdb, logical block 2, async page read
[ 1650.945733] Buffer I/O error on dev sdb, logical block 3, async page read
[ 1650.945734] Buffer I/O error on dev sdb, logical block 4, async page read
[ 1650.945736] Buffer I/O error on dev sdb, logical block 5, async page read
[ 1650.945738] Buffer I/O error on dev sdb, logical block 6, async page read
[ 1650.945740] Buffer I/O error on dev sdb, logical block 7, async page read
[ 1650.945793] print_req_error: I/O error, dev sdb, sector 0
[ 1650.945798] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1650.945807] print_req_error: I/O error, dev sdb, sector 1
[ 1650.945808] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1650.945813] print_req_error: I/O error, dev sdb, sector 2
[ 1650.945818] print_req_error: I/O error, dev sdb, sector 3
[ 1650.945824] print_req_error: I/O error, dev sdb, sector 4
[ 1650.945829] print_req_error: I/O error, dev sdb, sector 5
[ 1650.945834] print_req_error: I/O error, dev sdb, sector 6
[ 1650.945840] print_req_error: I/O error, dev sdb, sector 7
[ 1650.946300] Dev sdb: unable to read RDB block 0
[ 1650.946627] sdb: unable to read partition table
[ 1650.948820] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 1718.868445] sd 2:0:0:0: [sdb] 976773165 512-byte logical blocks: (500 GB/466 GiB)
[ 1718.868818] sd 2:0:0:0: [sdb] Write Protect is off
[ 1718.868821] sd 2:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 1718.869182] sd 2:0:0:0: [sdb] Asking for cache data failed
[ 1718.869190] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 1722.527210] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1722.527217] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1722.527222] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1722.527228] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00 00 00
[ 1722.527234] print_req_error: critical target error, dev sdb, sector 0
[ 1722.527247] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1725.905183] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1725.905190] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1725.905195] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1725.905201] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 01 00 00 07 00 00 00
[ 1725.905205] print_req_error: critical target error, dev sdb, sector 1
[ 1725.905216] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1725.905223] Buffer I/O error on dev sdb, logical block 2, async page read
[ 1725.905227] Buffer I/O error on dev sdb, logical block 3, async page read
[ 1725.905232] Buffer I/O error on dev sdb, logical block 4, async page read
[ 1725.905235] Buffer I/O error on dev sdb, logical block 5, async page read
[ 1725.905239] Buffer I/O error on dev sdb, logical block 6, async page read
[ 1725.905242] Buffer I/O error on dev sdb, logical block 7, async page read
[ 1729.283060] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1729.283067] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1729.283073] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1729.283079] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00 00 00
[ 1729.283082] print_req_error: critical target error, dev sdb, sector 0
[ 1729.283093] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1732.661027] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1732.661034] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1732.661040] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1732.661045] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 01 00 00 07 00 00 00
[ 1732.661049] print_req_error: critical target error, dev sdb, sector 1
[ 1732.661060] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1732.661066] Buffer I/O error on dev sdb, logical block 2, async page read
[ 1732.661070] Buffer I/O error on dev sdb, logical block 3, async page read
[ 1732.661074] Buffer I/O error on dev sdb, logical block 4, async page read
[ 1732.661078] Buffer I/O error on dev sdb, logical block 5, async page read
[ 1732.661081] Buffer I/O error on dev sdb, logical block 6, async page read
[ 1732.661084] Buffer I/O error on dev sdb, logical block 7, async page read
[ 1736.039013] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1736.039020] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1736.039025] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1736.039031] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00 00 00
[ 1736.039034] print_req_error: critical target error, dev sdb, sector 0
[ 1736.039045] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1739.416910] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1739.416918] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1739.416923] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1739.416928] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 01 00 00 07 00 00 00
[ 1739.416932] print_req_error: critical target error, dev sdb, sector 1
[ 1739.416942] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1739.416949] Buffer I/O error on dev sdb, logical block 2, async page read
[ 1739.416952] Buffer I/O error on dev sdb, logical block 3, async page read
[ 1739.416956] Buffer I/O error on dev sdb, logical block 4, async page read
[ 1739.416960] Buffer I/O error on dev sdb, logical block 5, async page read
[ 1739.416963] Buffer I/O error on dev sdb, logical block 6, async page read
[ 1739.416967] Buffer I/O error on dev sdb, logical block 7, async page read
[ 1742.794761] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1742.794766] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1742.794770] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1742.794775] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00 00 00
[ 1742.794778] print_req_error: critical target error, dev sdb, sector 0
[ 1742.794786] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1746.172805] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1746.172811] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1746.172815] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1746.172819] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 01 00 00 07 00 00 00
[ 1746.172822] print_req_error: critical target error, dev sdb, sector 1
[ 1746.172831] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1746.172836] Buffer I/O error on dev sdb, logical block 2, async page read
[ 1746.172839] Buffer I/O error on dev sdb, logical block 3, async page read
[ 1746.172842] Buffer I/O error on dev sdb, logical block 4, async page read
[ 1746.172846] Buffer I/O error on dev sdb, logical block 5, async page read
[ 1746.172849] Buffer I/O error on dev sdb, logical block 6, async page read
[ 1746.172851] Buffer I/O error on dev sdb, logical block 7, async page read
[ 1749.550612] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1749.550619] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1749.550625] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1749.550631] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00 00 00
[ 1749.550634] print_req_error: critical target error, dev sdb, sector 0
[ 1749.550645] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1752.928687] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1752.928694] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1752.928700] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1752.928705] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 01 00 00 07 00 00 00
[ 1752.928709] print_req_error: critical target error, dev sdb, sector 1
[ 1752.928720] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1752.928727] Buffer I/O error on dev sdb, logical block 2, async page read
[ 1752.928731] Buffer I/O error on dev sdb, logical block 3, async page read
[ 1752.928735] Buffer I/O error on dev sdb, logical block 4, async page read
[ 1752.928739] Buffer I/O error on dev sdb, logical block 5, async page read
[ 1752.928742] Buffer I/O error on dev sdb, logical block 6, async page read
[ 1752.928746] Buffer I/O error on dev sdb, logical block 7, async page read
[ 1756.306742] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1756.306749] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1756.306755] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1756.306760] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00 00 00
[ 1756.306764] print_req_error: critical target error, dev sdb, sector 0
[ 1756.306775] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1759.684629] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1759.684636] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1759.684641] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1759.684646] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 01 00 00 07 00 00 00
[ 1759.684650] print_req_error: critical target error, dev sdb, sector 1
[ 1759.684661] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1759.684668] Buffer I/O error on dev sdb, logical block 2, async page read
[ 1759.684671] Buffer I/O error on dev sdb, logical block 3, async page read
[ 1759.684675] Buffer I/O error on dev sdb, logical block 4, async page read
[ 1759.684679] Buffer I/O error on dev sdb, logical block 5, async page read
[ 1759.684683] Buffer I/O error on dev sdb, logical block 6, async page read
[ 1759.684687] Buffer I/O error on dev sdb, logical block 7, async page read
[ 1763.062360] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1763.062363] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1763.062366] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1763.062369] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00 00 00
[ 1763.062371] print_req_error: critical target error, dev sdb, sector 0
[ 1763.062376] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1766.440622] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1766.440629] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1766.440634] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1766.440640] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 01 00 00 07 00 00 00
[ 1766.440643] print_req_error: critical target error, dev sdb, sector 1
[ 1766.440654] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1766.440660] Buffer I/O error on dev sdb, logical block 2, async page read
[ 1766.440664] Buffer I/O error on dev sdb, logical block 3, async page read
[ 1766.440668] Buffer I/O error on dev sdb, logical block 4, async page read
[ 1766.440672] Buffer I/O error on dev sdb, logical block 5, async page read
[ 1766.440675] Buffer I/O error on dev sdb, logical block 6, async page read
[ 1766.440678] Buffer I/O error on dev sdb, logical block 7, async page read
[ 1769.818297] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1769.818304] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1769.818310] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1769.818316] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00 00 00
[ 1769.818319] print_req_error: critical target error, dev sdb, sector 0
[ 1769.818329] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1773.196267] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1773.196274] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1773.196279] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1773.196284] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 01 00 00 07 00 00 00
[ 1773.196288] print_req_error: critical target error, dev sdb, sector 1
[ 1773.196298] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1773.196303] Buffer I/O error on dev sdb, logical block 2, async page read
[ 1773.196307] Buffer I/O error on dev sdb, logical block 3, async page read
[ 1773.196310] Buffer I/O error on dev sdb, logical block 4, async page read
[ 1773.196314] Buffer I/O error on dev sdb, logical block 5, async page read
[ 1773.196317] Buffer I/O error on dev sdb, logical block 6, async page read
[ 1773.196320] Buffer I/O error on dev sdb, logical block 7, async page read
[ 1773.196367] Dev sdb: unable to read RDB block 0
[ 1776.574305] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1776.574311] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1776.574315] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1776.574321] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00 00 00
[ 1776.574324] print_req_error: critical target error, dev sdb, sector 0
[ 1776.574334] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1779.952283] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1779.952292] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1779.952298] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1779.952306] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 01 00 00 07 00 00 00
[ 1779.952311] print_req_error: critical target error, dev sdb, sector 1
[ 1779.952324] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1779.952332] Buffer I/O error on dev sdb, logical block 2, async page read
[ 1779.952337] Buffer I/O error on dev sdb, logical block 3, async page read
[ 1779.952342] Buffer I/O error on dev sdb, logical block 4, async page read
[ 1779.952347] Buffer I/O error on dev sdb, logical block 5, async page read
[ 1779.952352] Buffer I/O error on dev sdb, logical block 6, async page read
[ 1779.952357] Buffer I/O error on dev sdb, logical block 7, async page read
[ 1783.330410] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1783.330417] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1783.330423] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1783.330429] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00 00 00
[ 1783.330432] print_req_error: critical target error, dev sdb, sector 0
[ 1783.330443] Buffer I/O error on dev sdb, logical block 0, async page read
[ 1786.708160] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1786.708167] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1786.708172] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1786.708178] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 01 00 00 07 00 00 00
[ 1786.708181] print_req_error: critical target error, dev sdb, sector 1
[ 1786.708192] Buffer I/O error on dev sdb, logical block 1, async page read
[ 1786.708198] Buffer I/O error on dev sdb, logical block 2, async page read
[ 1786.708202] Buffer I/O error on dev sdb, logical block 3, async page read
[ 1786.708205] Buffer I/O error on dev sdb, logical block 4, async page read
[ 1786.708209] Buffer I/O error on dev sdb, logical block 5, async page read
[ 1786.708212] Buffer I/O error on dev sdb, logical block 6, async page read
[ 1786.708216] Buffer I/O error on dev sdb, logical block 7, async page read
[ 1790.097486] sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1790.097492] sd 2:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
[ 1790.097497] sd 2:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
[ 1790.097502] sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00 00 00
[ 1790.097506] print_req_error: critical target error, dev sdb, sector 0
[ 1790.097515] Buffer I/O error on dev sdb, logical block 0, async page read
 
Old 08-14-2021, 05:08 PM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,808

Rep: Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679
as root post the output of
Code:
parted -l
 
Old 08-14-2021, 05:16 PM   #9
jpi90
LQ Newbie
 
Registered: Aug 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
I changed the location of my hard drives, so right now the windows drive is /dev/sdb. Here is the output:


Model: ATA KINGSTON SA400S3 (scsi)
Disk /dev/sda: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 239GB 239GB primary ext4 boot
2 239GB 240GB 1022MB extended
5 239GB 240GB 1022MB logical linux-swap(v1)


Error: /dev/sdb: unrecognised disk label
Model: ATA TOSHIBA MQ01ABF0 (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: unknown
Disk Flags:

root@localhost:/home/juan#
 
Old 08-14-2021, 07:48 PM   #10
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,808

Rep: Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679
Looks like the mbr of the windows disk is corrupted. You might be able to recover it with testdisk.
 
Old 08-15-2021, 01:51 PM   #11
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,808

Rep: Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679
Another option to try if the disk is a gpt disk is
Code:
sudo gdisk /dev/sdb
It will give message

Code:
"valid gpt with corrupted mbr, using GPT and will write new protective MBR on save"
If you get this message
press p to display partition table,
it partition table is correct, press w and at the next prompt y.

If you don't get the above message press q for quite and use testdisk.

Last edited by colorpurple21859; 08-15-2021 at 08:19 PM.
 
Old 08-15-2021, 04:52 PM   #12
lovemeslk
Member
 
Registered: Feb 2020
Location: Rantoul IL
Distribution: Slackware
Posts: 350

Rep: Reputation: 73
Quote:
The problem was that, after i installed the Linux Hard drive
Please go into your BIOS and make sure you have the correct order of drives to boot from.
Make Linux drive 1=sda windows 2=sdb
then reboot
If it is visa versa then swap it.

Hopefully you will be back.
Always look at your /etc/fstab
make sure it is in sync with your "blkid" command.
after your back in Linux again.
run run lilo.

Have no clue what your pc is but.
If you press F8 or F10 at the start it may take you to the boot device selection.
Quote:
open pkgtool Setup run liloconfig
if you installed for GPT with UEFI setup then ll.eliloconfig
once you have linux booting windows open a terminal as admin. and type
Code:
C:\> bootsect /nt60 <drive name>: /mbr

If your drive is C:\ this command will be

C:\> bootsect /nt60 C: /mbr
Thats it. GRUB should be gone from MBR, restart and confirm.

Last edited by lovemeslk; 08-15-2021 at 05:14 PM.
 
Old 08-16-2021, 06:22 PM   #13
jpi90
LQ Newbie
 
Registered: Aug 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi, i did what cloropurple suggested. Here is the log, what option should i use?

root@localhost:/home/juan# gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.3

Warning! Read error 5; strange behavior now likely!
Caution: invalid main GPT header, but valid backup; regenerating main header
from backup!

Warning! Read error 5! Misbehavior now likely!
Caution! After loading partitions, the CRC doesn't check out!
Warning! Main partition table CRC mismatch! Loaded backup partition table
instead of main partition table!

Warning! One or more CRCs don't match. You should repair the disk!

Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: damaged

Found invalid MBR and corrupt GPT. What do you want to do? (Using the
GPT MAY permit recovery of GPT data.)
1 - Use current GPT
2 - Create blank GPT


if i press 1 or 2 then i need to send a command, which one?

root@localhost:/home/juan# gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.3

Warning! Read error 5; strange behavior now likely!
Caution: invalid main GPT header, but valid backup; regenerating main header
from backup!

Warning! Read error 5! Misbehavior now likely!
Caution! After loading partitions, the CRC doesn't check out!
Warning! Main partition table CRC mismatch! Loaded backup partition table
instead of main partition table!

Warning! One or more CRCs don't match. You should repair the disk!

Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: damaged

Found invalid MBR and corrupt GPT. What do you want to do? (Using the
GPT MAY permit recovery of GPT data.)
1 - Use current GPT
2 - Create blank GPT


Thank you!
 
Old 08-16-2021, 07:03 PM   #14
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,808

Rep: Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679
Base on this
Quote:
Warning! Read error 5; strange behavior now likely!
Caution: invalid main GPT header, but valid backup; regenerating main header
from backup!
select
Code:
1 - Use current GPT
and then p to see if the partition table looks correct and for any other errors. If the partition table appears correct and there are no other errors, press w to write the partition table to the disk.

If your not sure about the partition table post the partition table before pressing w and writing the partition table to disk, so someone can give additional input on the problem

Last edited by colorpurple21859; 08-16-2021 at 07:12 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
External hard drive enclosure not detected after reboot ridago Linux - Hardware 3 01-20-2019 08:51 PM
Internal hard drive not detected after entering Linux installer Wisnu_Yudha Linux - Hardware 6 12-20-2018 06:38 AM
[SOLVED] CD-ROM not detected, then hard disk not detected helpless-new-fulla Linux - Newbie 4 06-28-2010 01:39 AM
IDE DVD drive and SATA 3.0 hard drive not detected on Debian/Ubuntu install Byrnascus Linux - Hardware 7 01-21-2010 11:11 AM
I want to copy my hard drive to a larger hard drive and boot from the new drive. lpmorgan1 Ubuntu 8 09-07-2009 11:26 PM

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

All times are GMT -5. The time now is 07:10 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