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.
|
 |
09-19-2022, 04:26 PM
|
#1
|
LQ Newbie
Registered: Sep 2022
Posts: 3
Rep:
|
No boot sector on usb drive (DOS table on Seagate Video 3.5 HDD)
The internal HDD in my Inspiron 1525 isn’t working so I am trying to install Arch on an external HDD, namely a Seagate Video 3.5 HDD.
I tried setting up an MBR/DOS partition table on the drive, untarring the Arch tarball in the root partition and doing the install from there (using the guide on bootstrapping Arch from the wiki), but when I try to boot from the new HDD, I get a “No boot sector in usb device” error. I installed and configured grub properly during the install.
How, if at all possible, can I create a boot sector on this sort of HDD? Thanks for the help.
|
|
|
09-20-2022, 12:25 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,270
|
Hello, hjerte & welcome to LQ.
People usually use the information you give us to help you with your problem. You didn't tell us much. Read this How_To_Ask_a_Question
Particularly, we need to know what you're trying to boot with, what image you're trying to boot, is there UEFI or legacy boot, and are yopu installing, or is there a system there already?
|
|
|
09-20-2022, 01:56 PM
|
#4
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
In addition, in legacy boot computer BIOS needs to address the first sector on HDD and execute the code there. Your enclosure has USB-SATA interface, are you sure this interface supports legacy boot? I have seen interfaces which do not let thru smartctl commands.
|
|
|
09-20-2022, 04:07 PM
|
#5
|
LQ Newbie
Registered: Sep 2022
Posts: 3
Original Poster
Rep:
|
I should add some more info I guess.
Quote:
Hello, hjerte & welcome to LQ.
People usually use the information you give us to help you with your problem. You didn't tell us much. Read this How_To_Ask_a_Question
Particularly, we need to know what you're trying to boot with, what image you're trying to boot, is there UEFI or legacy boot, and are yopu installing, or is there a system there already?
|
I’m using MBR/DOS as my ancient laptop doesn’t support UEFI so I use legacy boot. To clarify, I'm installing Archlinux on the new drive via the process in my original post. Could you please explain what you mean by a boot image, and what I am trying to boot with (do you mean my bootloader?)?
My internal disk is a Seagate 150GB 2.5in SATA HDD. Recently, whenever I install Arch onto it, I get an endless stream of
Code:
I/O error, dev sda, sector <sector number> op 0x0:(READ) flags <flags> phys_seg 1 prio class 0
during the install (sorry, I don't really know how to copy everything from stderr into pastebin, I'll send a photo of the error in action). When I try to boot that drive, I would get a "The root
filesystem on /dev/sda3 requires a manual fsck" error and I would have to manually fsck the drive and force rewrite on what seemed like an endless number of sectors (I did at least 30-35 before I gave up), so I got the thought that the drive was corrupted from there. Maybe there is a way to fix it, but seeing as the video HDD has more than triple the storage of my old HDD, I would like to have a go at the new one and see if I can use it.
As for my filesystem, every time I attempted the install I set up an ext2 boot partition, a swap partition and an ext4 root partition.
Quote:
In addition, in legacy boot computer BIOS needs to address the first sector on HDD and execute the code there. Your enclosure has USB-SATA interface, are you sure this interface supports legacy boot? I have seen interfaces which do not let thru smartctl commands.
|
I ran `smartctl -i /dev/sdc` (/dev/sdc is my external HDD) and I got this. So I guess the USB-SATA interface does let smartctl through. I tried looking up how to check if an interface supports legacy boot but I had no luck; could you please guide me? Would it be worth replacing my old internal HDD with the external one in the enclosure?
|
|
|
09-21-2022, 05:47 AM
|
#6
|
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,774
Rep: 
|
Probably easiest solution - replace/swap drives over - & use the menu driven installer program.
https://itsfoss.com/install-arch-linux/
|
|
|
09-21-2022, 05:53 AM
|
#7
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,270
|
So You're trying to install Arch, and sda isn't partitioned? What are you trying to boot from?
Have you a boot dvd?, usb? There's usually a kety (e.g. F10) that you can press to select a boot option or enter setup.
|
|
|
09-21-2022, 12:41 PM
|
#8
|
LQ Newbie
Registered: Sep 2022
Posts: 3
Original Poster
Rep:
|
I got it working now. Here's what I did:
First, according to what a guy on Stack Exchange advised, I got a Bootinfo summary, then ran a Boot repair autofix on the drive - in the process, I disconnected my old malfunctioning drive.
Then I discovered my fstab file was empty (I know I'm dumb, you're supposed to check it after running genfstab during install) so I filled it in using the Gentoo handbook section on fstab as a guide.
Of course, the Boot repair messed up with the perms on the new drive filesystem so I ran , dunno if that was a smart idea or no. Entered chroot, installed and configured grub again and everything's working!
Now, on startup the drive initially doesn't boot, and only does so when I hit F1 to retry boot after it fails. All in all, I'm happy to have it up and running.
Quote:
So You're trying to install Arch, and sda isn't partitioned? What are you trying to boot from?
Have you a boot dvd?, usb? There's usually a kety (e.g. F10) that you can press to select a boot option or enter setup.
|
Assuming you mean my old problematic drive, I did partition it during the Arch install (if that's what you mean). I had a 256Mb boot partition on an MBR/DOS partition table, along with the swap and root partitions.
|
|
|
All times are GMT -5. The time now is 11:36 PM.
|
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
|
|