LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 12-29-2022, 07:09 AM   #1
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Rep: Reputation: Disabled
What does "mount -o nosuid /dev/sdb10 /mnt" actually do ?


Hi!

I have an old Intel-i5 Fujitsu Laptop which has Windows in its internal hard disk and a Linux multiboot on an external SSD.

Installing on the external disk has been the subject of some rather confusing (my own fault) threads since about 2 years ago:

4- How-i-was-finally-able-to-boot-from-a-stubborn-external-usb-hard-disk-4175710196/

3- Exect-format-error-upon-booting-from-full-install-on-external-multiboot-bios-uefi-hd-4175699692/

2- Exec-format-error-upon-boot-on-fresh-install-on-usb-stick-4175689683/.

1- Exec-format-error-upon-boot-on-fresh-install-4175689612/

This morning I tried to start Slackware to use as a support computer while updating Slackware on my multiboot desktop and got a message that the partition could not be mounted on /mnt and that a /sbin/init was missing, and that I could try to solve it in a shell provided below the message.

I then used the for me magical incantation that had worked before:
Code:
mount -o nosuid /dev/sdb10 mnt
and "voila'!" the partition was mounted and when I entered
Code:
exit
it proceeded to boot Slackware and then I was soon on my desktop.

When I first got the error I immediately rebooted (I am still a newbie) and from another distro checked the fstab, opened the partition and ran fsck on the partition, with no errors found.

This partition runs on generic-5.15.63, with a tailormade initrd as related in How-i-was-finally-able-to-boot-from-a-stubborn-external-usb-hard-disk-4175710196/and has always been stable.

So now I am posting from Slackware and it seems pretty normal.
But I am disturbed by not understanding what is going on.

I had finally believed that the problems I experienced in booting from the external disk were related to some module(s) missing in the initrd, which I tried to solve with a more inclusive initrd.

But now I am at a loss again, and I am an older man who grew up under the ideal of understanding things, which I think was what made me so found of Slackware. It is all about learning isn't?

That is why I am still posting. I would like to hear a conceivable reason for a missing "/sbinit/init" and why the mentioned command worked and could it be any relationship between this 2 aspects?

I understand this interest may sound excessive, but I have succeeded in getting great instruction before from the Slackware community!

Season Greetings to all!
 
Old 12-29-2022, 07:33 AM   #2
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 597

Rep: Reputation: Disabled
If you boot from an external SSD it is probably through USB connection. In such a case, the kernel may require some time to initialize the USB subsystem and make your device node such as /dev/sdb available. If that is the case, your use of "nosuid" does not matter, because the thing that did matter was time passing.
You could test this idea bu adding a wait of, say, 10 seconds to the boot process.
Slackware's mkinitrd has a parameter for this:
Code:
-w     The -w option specifies how long to wait in seconds before
	     assuming that all the drives are spun up and ready to go.
 
Old 12-29-2022, 08:35 AM   #3
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Original Poster
Rep: Reputation: Disabled
Thanks Windu, for a quick answer.

The w option was pointed to me in those early threads.

I found out what was the problem immediately upon posting, when I closed my browser and looked at the desktop: there were no icons for my partititions, only icons for "/proc" and similar. Then I tried to sudo/su and got messages that I could not and one of those mentioned it might have to do with "nosuid" mounting, so I rebooted (had to logout and in as root) and when I looked at the Slackware stanza under GRUB it had root=/dev/sdc10.
As there are only 2 block devices I wondered and then remembered paying attention to a list of sdb1.......sdb16 in the booting output, and remembered clearly that I had written "/dev/sdb10" in the command that finally booted Slackware.

So I edited the grub stanza and booted swiftly.

And I then first thought that I had updated grub (running under Artix) last night (i.e. 5:00 this morning).

I don't know how that stanza turned out wrong, I can understandthough that these things happen not so seldom, so my need for comprehension is satisfied now: there was nothing magical about the command. It was the right device identification that fixed it. No magic !

This is solved !
 
  


Reply



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
[SOLVED] LFS: mount: mount point /mnt/lfs/dev/pts does not exist nocrazy Linux From Scratch 2 08-21-2016 12:54 PM
What are the options "Nosuid" "mode" "size" in /etc/fstab? tuxfiles.org does not help pstein Linux - Newbie 1 11-16-2012 12:58 AM
[SOLVED] Unable to mount NOR Flash (mount -t jffs2 /dev/mtdblock0 /mnt) cruiser Linux - Embedded & Single-board computer 2 08-28-2012 09:50 PM
why only "mount /dev/sda /mnt/usb" works and not "mount /dev/sda1..." ? gromot Linux - General 7 05-19-2009 10:18 AM
mount -t //192.168.0.1/mnt /mnt/windows -o password='' generates error broadsoft Linux - Networking 3 08-07-2003 04:51 AM

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

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