LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-31-2020, 07:24 AM   #16
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,111

Rep: Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543

Are you using a UUID found with blkid for the root partition with mkinitrd? rEFInd is nice and picks up whatever is on the EFI partition. https://slackbuilds.org/repository/1...?search=refind

Code:
sh /usr/share/refind-0.11.5/refind-install
and change efibootmgr to refind.
 
Old 03-31-2020, 10:47 AM   #17
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.1/-current
Posts: 138

Original Poster
Rep: Reputation: 10
I disagree that this thread is Slackware-specific. I alluded to people using other distributions, posting to other forums, that had similar problems as mine. Thatís why I posted to a general Linux forum. Itís not to say the Slackware people arenít helpful. They almost always come through for me when I post a problem. Since Iím not a moderator, there is little I can do, but just give my $.02.

Anyway, in reply to post before moderator, I thought I was already root, since I used ďsuĒ before using vi or nano or anything else.
 
Old 03-31-2020, 11:12 AM   #18
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware Linux
Posts: 605

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by 2damncommon View Post
Everyone should keep a copy of Super Grub2 around.
This is good advice if you use grub to boot your computer. For those of us that use lilo the Super Grub Disk will not work
 
Old 03-31-2020, 11:27 AM   #19
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,618

Rep: Reputation: 4754Reputation: 4754Reputation: 4754Reputation: 4754Reputation: 4754Reputation: 4754Reputation: 4754Reputation: 4754Reputation: 4754Reputation: 4754Reputation: 4754
looks like a read only partition.
Again, probably would be better to use uuids or labels instead of partition numbers.
 
Old 03-31-2020, 01:21 PM   #20
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.1/-current
Posts: 138

Original Poster
Rep: Reputation: 10
@RadicalDreamer no. I have not modified mkinitrd at all. Thanks for the suggestion. Maybe I can try that. Editing mkinitrd on a system that’s screwed up can’t screw it up any more.
 
Old 03-31-2020, 02:41 PM   #21
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,111

Rep: Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543
Quote:
Originally Posted by deretsigernu View Post
@RadicalDreamer no. I have not modified mkinitrd at all. Thanks for the suggestion. Maybe I can try that. Editing mkinitrd on a system thatís screwed up canít screw it up any more.
Can you boot to root with:
https://mirrors.xmission.com/slackwa...xe-installers/ ?!
 
Old 03-31-2020, 04:01 PM   #22
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 2,834

Rep: Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915
It seems to me that the Windows "upgrade" may have created a new partition which changed all the partition numbers. Use Slackware Live or a live disc like Hirens Boot Disc to run any program like fdisk, cfdisk, or GParted to view the new numbering scheme. Edit your bootloader config to reflect the changes and chroot into Slackware to run grub update or /sbin/lilo depending on which bootloader you use. There are Windows apps that will boot Linux from the windows bootloader but only if /etc/fstab (and initrd if you use one) points to the correct appropriate partitions.

Naturally the best solution is to just never use windows ever again
 
1 members found this post helpful.
Old 03-31-2020, 08:36 PM   #23
laprjns
Member
 
Registered: Oct 2005
Location: Connecticut USA
Distribution: SalixOS
Posts: 199

Rep: Reputation: 97
I agree with enorbet, although I don't blame it on Windows. In fact I believe that it is an issue with Slackware itself not using persistent naming of block devices. During the Windows upgrade, Windows added a new partition somewhere between your existing Window partition and the partition that Slackware was installed on, resulting in a re-ordering of the partitions as the kernel discovers them. There could have been some unused space between your Windows and Slackware partitions that Windows used for the new partition or more likely, Windows shrunk its own partition and created the new partition in the newly freed up space. Now when you try to boot Slackware both the grub and fstab are expecting the Slackware root partition to be on /dev/sda5, as it was during the Slackwar install, but now its on /dev/sda6 as the kernel see it now. As a result it trying to boot what it thinks is the Slackware root files system on /dev/sda5 but in actuality it small partition that is formatted in a MS proprietary file system.

To fix this, all you really need to do is to boot into a Live installation, mount the Slackware root file system (now designated as /dev/sda6) and navigate to and edit the fstab file replacing all the /dev/sda5 to /dev/sd6. I don't use grub so I'm not sure how to fix it. For elilo, you would just need to edit the elilo.conf file in the Slackware directory on the ESP.

Slackware and it derivatives (i.e Salix) are the only Linux distribution that I know of that still uses non-persistent device naming in both the boot loader (lilo, elilo) and fstab. If you had say Mint or Fedora installed along with Window and Slackware and the same thing happen during a Windows upgrade the only distro that would failed to boot would be Slackware.
 
1 members found this post helpful.
Old 03-31-2020, 10:52 PM   #24
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.1/-current
Posts: 138

Original Poster
Rep: Reputation: 10
enorbet: "Naturally the best solution is to just never use windows ever again "

You've nailed it on the head. The thing is, I'm not as trained in linux (or computer administration) as I should be to manage all the configurations and packages on linux that I use on Windows without having to come up some extra package to work. That's on me, I understand that. I want to get there. But my occupation is not related to administering computers and there is only so much time in my day for learning about the finer points of mkinitrd or how to just plain know which is the correct directory to put my additional packages into. I'm s l o w l y learning these things. Everyday on my slackware partition is a new adventure. Makes it hard to run a spatial analysis when I can't get GEOS to install, for example. Given Microsoft's intention to make people subscribe just to log into their account, I want to leave Windows. It's just gonna take time.

Everyone has been helpful. I appreciate all the "Slackers" on this forum. I think RadicalDreamer's and laprns's recent comments will be useful. But I'm not going to get to that tonight. My day is over. Tomorrow hopefully.
 
1 members found this post helpful.
Old 04-01-2020, 10:43 AM   #25
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,111

Rep: Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543
Quote:
Originally Posted by deretsigernu View Post
enorbet: "Naturally the best solution is to just never use windows ever again "

You've nailed it on the head. The thing is, I'm not as trained in linux (or computer administration) as I should be to manage all the configurations and packages on linux that I use on Windows without having to come up some extra package to work. That's on me, I understand that. I want to get there. But my occupation is not related to administering computers and there is only so much time in my day for learning about the finer points of mkinitrd or how to just plain know which is the correct directory to put my additional packages into. I'm s l o w l y learning these things. Everyday on my slackware partition is a new adventure. Makes it hard to run a spatial analysis when I can't get GEOS to install, for example. Given Microsoft's intention to make people subscribe just to log into their account, I want to leave Windows. It's just gonna take time.

Everyone has been helpful. I appreciate all the "Slackers" on this forum. I think RadicalDreamer's and laprns's recent comments will be useful. But I'm not going to get to that tonight. My day is over. Tomorrow hopefully.
After each kernel update I:
Code:
mkinitrd -c -k 5.4.28 -m ext4 -r "UUID=XXXX-XX-XXXX" -u -o /boot/initrd.gz
and
XXXX-XX-XXXX is the code for the root partiton which is listed as / when you type
Code:
df -h
under Mounted On. You can find it by typing in for example
Code:
blkid | grep sda3
, and sda3 is whatever your root is.

Then I use eliloconfig to update the EFI partition with the latest kernel with ELILO and the rEFInd boot manager will pick it up. rEFInd will pick up whatever OS are on EFI partitions. Then I type
Code:
efibootmgr
to find the boot number for rEFInd, it will be listed as something like Boot0002, so I put in
Code:
efibootmgr -o 0002
and reboot. Also remember to press F2 I think in BIOS if there is an issue like Windows changes the boot order and rEFInd should be listed.

You can see a fully tricked out mkinitrd with
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh
.

Last edited by RadicalDreamer; 04-01-2020 at 10:48 AM.
 
2 members found this post helpful.
Old 04-01-2020, 03:41 PM   #26
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,111

Rep: Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543
Oh ya, and my fstab looks like this
Code:
UUID=XXXX-XX        /                ext4        defaults         1   1
UUID=XXXX-XXXX      /boot/efi        vfat        defaults         1   0
UUID=XXXX-XXXX-XX     /home/Rad      ext4        defaults         1   1
UUID=XXXXX-XX       swap             swap        defaults         0   0
 
2 members found this post helpful.
Old 04-02-2020, 06:14 PM   #27
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 2,834

Rep: Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915Reputation: 2915
While it is conceivable to lay blame at Slackware's feet for not using persistent naming of block devices...

1) It is actually the fault of Win10 creating a new partition without first asking the "owner" if that operation is OK. It's just one more clue that MS assumes they own your PC and you are merely a cash cow lessor. I do still have a very rarely booted install of Win7 which allows me to turn off updates entirely so things like this can't happen. That option has subsequently vanished in later releases. I don't buy into the facade that MS has morphed into the "new, kinder, gentler" MS. I think they still fully buy into The Highlander story and believe "there can be only One"

2) Patrick has stated and lived by his principle of not assuming users needs and desires. He doesn't assume we are idiots who need everything done for us. If we feel the need to deal with naming conventions we are free and empowered to do so. I'm glad he doesn't do UUID for example by default as such numbers have no immediate meaning to humans. For a time I used LABEL but that got to be a bit cumbersome since this boxen, my Main, has 3 drives totally 8TB divided into over 20 partitions. I just label them with fdisk or gparted with a name that has meaning for me and disallow ANY OpSys from changing anything so fundamental without my knowledge and permission.

The least maintenance and most stable PC is one where NOTHING happens the owner didn't initiate, where any problem was caused by that owner in the preceding operation making that operation obviously where the error was generated... no need to look any further than that. That, gentlemen, IMHO is the ultimate time saver... owning your PC(s).

Last edited by enorbet; 04-02-2020 at 06:16 PM.
 
2 members found this post helpful.
Old 04-02-2020, 07:06 PM   #28
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 7,069

Rep: Reputation: 4747Reputation: 4747Reputation: 4747Reputation: 4747Reputation: 4747Reputation: 4747Reputation: 4747Reputation: 4747Reputation: 4747Reputation: 4747Reputation: 4747
Quote:
Originally Posted by enorbet View Post
The least maintenance and most stable PC is one where NOTHING happens the owner didn't initiate, where any problem was caused by that owner in the preceding operation making that operation obviously where the error was generated... no need to look any further than that. That, gentlemen, IMHO is the ultimate time saver... owning your PC(s).
For the most part I agree with everything, and really, this is just me being pedantic, but sometimes a stable PC isn't the result where nothing by the owner was initiated. When serious flaws are discovered and published, you could be affected without needing to do anything (like the worm that propagated through Samba on Windows systems without any effort by the owner).

That being said, it shouldn't give the OS the automatic authority to push patches whenever they feel it is necessary. I get why Microsoft did it, but if they're going to make updates automatic out of the box (since most people probably shouldn't be trusted with keeping their box updated), they should give people the ability to override it without needing to go to an Enterprise or Education Edition (luckily, I got an Education Edition license from my school for my one and only Windows laptop at home and could disable automatic updates). I am glad that Pat doesn't assume on how we're going to use Slackware. He provides a great default state and we are free to tweak as needed for our usage.
 
1 members found this post helpful.
Old 04-02-2020, 07:10 PM   #29
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,059

Rep: Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937
I've read numerous threads at different forums where 'some' windows 10 upgrades rewrite the partition table and neglect to include non-windows partitions. Might try using Testdisk to find the old partition table and compare to the current. Some possible solutions at the link below, might be worth taking a look.

https://askubuntu.com/questions/6550...ir-doesnt-help
 
Old 04-03-2020, 12:38 AM   #30
zrdc28
Member
 
Registered: Dec 2007
Location: Alabama USA
Distribution: Slackware current
Posts: 303

Rep: Reputation: 53
Super grub2 will boot it.

Quote:
Originally Posted by 2damncommon View Post
Everyone should keep a copy of Super Grub2 around.

I agree supergrub2 will boot most anything that is single, double or etc.


The old Super Grub original will boot it and rewrite it where it boots from now on. It is hard to find SuperGrub but it will do it for you.
 
  


Reply

Tags
e2fsck, grub rescue


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
LXer: Even in remotest Africa, Windows 10 nagware ruins your day: Update burns satellite link cash LXer Syndicated Linux News 2 06-04-2016 02:20 PM
dropline-installer ruins KDE sythe Slackware 40 08-13-2007 06:27 AM
Opensuse 10.2 ruins reiserfs suguru SUSE / openSUSE 7 05-22-2007 08:24 AM
DVD Burner Ruins Data DVD natewlew Linux - Software 8 03-29-2006 02:29 PM
Logging in as root ruins my sound card configuration Penguin of Wonder Slackware 13 09-26-2005 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:45 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration