this post was submitted on 14 Aug 2023
32 points (97.1% liked)
Linux
48181 readers
1189 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Oh ya, forgot to mention that. It boots fine if I just unplug the optical drive. It’s when I plug in a new ssd into the same sata motherboard port - that’s when it hangs. It’s funny - it actually makes it to the login screen, it hangs only after trying to log in. I can’t even break out to another tty terminal.
Edit - the motherboard and chip and ram and video card are all new. It’s the old stuff I’m resuing-case, power supply, old hdds, ect
The new SSD sounds suspicious to me
Weird.
So I’m triple booting right now. I’ve got a windows drive and a separate manjaro drive. Those drives are older and getting small in space-so I bought a shiny new ssd.
Windows works fine, and I moved to arch on the new drive and that is working great. It’s not a big deal - the manjaro drive will get wiped once I’m comfortable the arch install. But I’d like to fix it just for learning purposes. I feel like there’s a text file somewhere that associated the optical drive’s uuid with the sata port that identifies as /dev/sda (but I’m not even sure optical drives have a uuid?)
Anyways - I think the new drive is fine.
Since it boots without the optical drive I would think it's not hanging because you swapped the drive. Can you rotate the sata ports of your other drives and try again? Unless you configured something manually all of your drives should be detected automatically on boot. These days Linux partitions are usually identified by uuid in /etc/fstab to avoid issues involving reordering of drives.
Did that. fstab uses uuid for identification. If I plug ANY of my drives into that sata port where the optical drive was - manjaro won’t get past login.
Maybe my manjaro installation is borked and I don’t even know it (it’s actually been pretty good for a while now)
Interesting... Does the optical drive work on a different port? Does your bios treat that port differently?
That I have not tried. I’ll try moving them around and see if it’s an issue with that port.
I’ve moved drives to that one port, but I haven’t tried shuffling all the components around.
My understanding with sata was that I should be able to move things around all I want. What would change is sda sdb sdc etc, and that’s why you use uuids in fstab. So it was strange to me that I couldn’t plug drives into that first port.
I’ll shuffle things around more when I get home and see if I can detect any further patterns.
Edit: as far as I can tell that port is nothing special other than it’s the first one. All the same in bios.
When you say "login screen" is it graphical or the console?
If it's graphical, can you drop to the console (ctrl+alt+F1 ?) and try to login there? And with a brand new user (create one without the ssd) or root? Just to check if it's something triggered by a user config pointing to the drive.
Also, is your fstab using UUIDs or /dev/sdXn?
After the hang, if you boot without the ssd, can you then find any errors in the message log from the previous boot?
I’ll have to try this
I tried logging into gui and it hangs. While I’m at the spinning cursor of death, I cannot break out into a console. I’ll try the console first.
I suspect you are onto the issue here - something in user config is looking for that optical drive and failing.
Fstab has just hard drives, and it’s by uuid.
I’m at work now, I can boot into manjaro by unplugging the drive - I’ll check the logs and see if there’s any clues there.
It does not-that was the first thing I went after. I thought (incorrectly) that optical drives were in fstab and I was surprised to see only my hard drives there. Then I learned a bit more, sr0, etc and was like hmm, I’m missing something. ;)
My vibe is the OS checks the new drive on startup, and gets mad that it’s not formatted instead of moving along.
Oh, in that case it sounds like it is having issues reading the SSD drive for some reason. I have seen system hang trying to read a drive over and over again. Usually the drive is bad when that happens. But it could be a bad SATA cable or maybe some kind of a weird format.