SlackwareThis Forum is for the discussion of Slackware 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.
Looks like perhaps there is an earlier installation of Slackware on that computer and you booted into that one.
If you re-installed to /dev/sda6 and forgot to run the command "lilo" then the lilo which is installed into the MBR may still be booting your older installation of Slackware from /dev/sda1 .
bash-4.4# mount
/dev/sda1 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda5 on /mnt/dados type ext4 (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
vmware-vmblock on /var/run/vmblock-fuse type fuse.vmware-vmblock (rw,nosuid,nodev,default_permissions,allow_other)
gvfsd-fuse on /home/hcs/.gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=hcs)
bash-4.4#
Looking at my fstab, I wondered if this could be his fault?
Understand that sda1 is completely empty. There is no other system installed, or file rest on sda1.
Looks like perhaps there is an earlier installation of Slackware on that computer and you booted into that one.
If you re-installed to /dev/sda6 and forgot to run the command "lilo" then the lilo which is installed into the MBR may still be booting your older installation of Slackware from /dev/sda1 .
sda1 is 100% empty. There is no rest of installation.
I really saw that fstab is kind of wrong. That's because I completely moved the installation from sda1 to sda6. Erasing sda1 completely.
And of course, I had to run lilo to make it work on sda6.
Curious is that fstab was spelled wrong and I didn't get any error messages for it, and the system still loads.
I did not understand why the lack of error message, and why it works!
Although lilo was registered in sda6 and the system is in sda6
fstab is mounting the / on sda1
I think creating a link in sda1 to sda6
Well crazy what happened
I suspect you can have wrong entry in /etc/fstab. Root partition entry, in fact, ins't used to mount it. It is done on boot from "root" kernel parameter. Run "df" and compare sizes of "/" mount point and partitions. sda1 and sda6 differs in size so you can have clean answer.
Maybe for some reason the partitions got renamed after lilo was run, but the boot sector in the MBR was not affected, and the root partition that was name sda6 when you ran lilo is now named sda1.
I don't think that /dev/sda1 be empty as else your system wouldn't work at all.
Ads suggested by Labinnah please tell us what says (typed from the running system)
Code:
df -h
Last edited by Didier Spaier; 09-03-2019 at 03:21 PM.
I suspect you can have wrong entry in /etc/fstab. Root partition entry, in fact, ins't used to mount it. It is done on boot from "root" kernel parameter. Run "df" and compare sizes of "/" mount point and partitions. sda1 and sda6 differs in size so you can have clean answer.
Yes, when you asked to see fstab, it was the first thing I noticed. Because on fstab I reported the mount point on sda1.
I fixed this (for sda6) and it was obviously normal.
I just didn't understand how the system worked normally without errors. Because I only discovered the problem when I wanted to mount sda1 and saw that it was mounted strangely
Maybe for some reason the partitions got renamed after lilo was run, but the boot sector in the MBR was not affected, and the root partition that was name sda6 when you ran lilo is now named sda1.
I don't think that /dev/sda1 be empty as else your system wouldn't work at all.
Ads suggested by Labinnah please tell us what says (typed from the running system)
Maybe for some reason the partitions got renamed after lilo was run, but the boot sector in the MBR was not affected, and the root partition that was name sda6 when you ran lilo is now named sda1.
When I run lilo in this case, I always run the partition that will be used, and in this case it was from sda6. He did not report any errors.
Quote:
I don't think that /dev/sda1 be empty as else your system wouldn't work at all.
I thought so too. For me it should not work the system, and precisely because it worked without presenting any error msg I did not realize.
The only explanation I believe it to be is that fstab just created a link. I don't know exactly how it worked! The fact is that fstab being wrong should not usually work
I just didn't understand how the system worked normally without errors.
As this entry ins't used for "real mounting" is no matter what you put there. System starts normal, but some tools may show garbage output as they expect correct value. If rc.S wasn't expect to found this entry, system will be start even without it (I've test lately both cases, by accident ).
With all the above information.
Could anyone explain how what happened was possible?
Did fstab really link from sda1 to sda6?
I know we solved the problem by finding the error in fstab. But I just would like to understand what happened.
With all the above information.
Could anyone explain how what happened was possible?
Did fstab really link from sda1 to sda6?
I know we solved the problem by finding the error in fstab. But I just would like to understand what happened.
When did you gen. the initrd?
is that mounting / ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.