[SOLVED] hdd recovery: How to boot a live usb iso withOUT hang/errors from bad hard disk drive
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.
As far as I can tell, nothing. When I plug in the hard drive after booting from usb (ie at normal desktop) without disabling it, no new dmesg shows up and the above code (meant to rescan scsi) does nothing. fdisk only shows the ram the live usb is using, the free few gigs on the usb, and my cdrom. Same with lsscsi.
Try #15. Yes, the init=/bin/sh goes anywhere on that line. (what it does is kinda 'cool'; web-research it!)
I'm really curious to see whether it's the ahci pata driver (compiled into the kernel vs. a .ko module) or udev/systemd/? doing this. (I wish I knew 'all' of how /sys/dev* {scsi,ata#,host#} {/delete,rescan,enable,*} works, but digging thru the kernel source code is beyond me currently, tho any GuruInfo is very welcome here!)
Realstically, I suspect the hdd is 'bricked' (although it makes a great learning experience or advanced hands-on cert test).
Try #15. Yes, the init=/bin/sh goes anywhere on that line. (what it does is kinda 'cool'; web-research it!)
I'm really curious to see whether it's the ahci pata driver (compiled into the kernel vs. a .ko module) or udev/systemd/? doing this. (I wish I knew 'all' of how /sys/dev* {scsi,ata#,host#} {/delete,rescan,enable,*} works, but digging thru the kernel source code is beyond me currently, tho any GuruInfo is very welcome here!)
Realstically, I suspect the hdd is 'bricked' (although it makes a great learning experience or advanced hands-on cert test).
Yeah enjoy learning more about grub and booting. Anyways adding the init=/bin/sh only worked when I included the libata.force=1:disable also. So I guess whatever libata is doing comes before the shell is initialized. I could even delete everything on that line (the file= and boot=) and still get a prompt, but again only if the libata parameter was included.
With the libata parameter the only thing that happens is:
[ 5.720082] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 5.722879] ata1.00: FORCE: horkage modified (disable)
[ 5.722883] ata1.00: unsupported device, disabling
[ 5.722886] ata1.00: disabled
So at least the 6.0 Gbps is correct.
edit: Ah, yes, I have an adapter actually..but I think it only does the 7-pin data line and not the larger power connection. Similar to this. The ones with both ports arent that expensive though it seems, maybe Ill snag one.
Huh? Do you mean it (the kernel) still hung/errors with init=/bin/sh appended? (no disable)
(My beloved init=/bin/sh ?always? "works", on any "normal" situation, I thought!)
Edit upon reread: oh, probably "yes".
I was afraid of that. Might a distro that has ahci as a loadable .ko help here?
IF we can *attach the bricked hdd*, should we file a kernel bug?
? Does init= do same hang/error from the bad hdd? Or a different "not work"?
Sorry, I know zero about EFI (but my wild-guess is that it's not related)
No, I meant just add it to end (leaving all the original, I thought wouldn't matter)
Other topic: can you download and put on USB, a different distro, with sata/ahci stuff loadable?
(I'm not sure what distro tho; not that 7mb mll I mentioned earlier: it has all compiled in, no modules).
Took a while for the damaged partition to mount but eventually was able to get all my important stuff transferred over to the new drive using normal means.
Just wanted to come back and say thanks for pointing me in the right direction.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.