LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   No Mount point (https://www.linuxquestions.org/questions/linux-general-1/no-mount-point-797067/)

IraB 03-22-2010 10:30 AM

No Mount point
 
I have a single hard drive computer with 12 partitions. One of the distros I put on /dev/hda6 somehow got in there without a mount point!!! And that is what I want to do, add the mount point. This is a Linux only machine, by the way. I could re-install, but I need to remember/know this!!!

Could someone please point me to the info I need.....

Thanks,

irmin 03-22-2010 11:04 AM

Do you want to make /dev/hda6 to get mounted every time you boot? All known file systems are in /etc/fstab. Maybe you want to add a line for your partition?

IraB 03-22-2010 11:20 AM

Hi and thanks for the reply.

/dev/sda6 has no mount point and does not show up on the boot menu. So there is no chance of booting that distro. Could I use mount -t /dev/sda6 in order to see partition 6 on the boot menu and boot it?

I have 4 different distros on the HD and would like to be able to boot to all individually and at will.

Short answer to you questions:

Yes and yes....Could I add the info for Partition 6 into the /etc/fstab on partition 5?

PTrenholme 03-22-2010 11:37 AM

A "mount point" is, of course, the directory in your / at which the device is mounted. (E.g., you propose mount command should be something like sudo mount /dev/sda6 /mnt) Note that the "-t" option is omitted since Linux types are usually recognized by mount.

Is it possible that the distribution you installed on a6 is one like Fedora that defaults to using a "Logical Volume," and you're trying to access a LV as though it's a simple partition?

If you're seeing the "no mount point" comment from your boot menu, your boot program is telling you that you haven't told it where to find the "root" file system. Look for a root= (or similar) line in your boot stanza and verify that it's correct.

michaelk 03-22-2010 12:37 PM

It is not necessary to mount a partition to be able to boot an OS. How are the other distributions setup to boot? Did you also install the bootloader to sda6 when the OS was installed?

IraB 03-22-2010 07:06 PM

That particular partition is a logical partition. The following is from the boot section of /dev/sda5, which grub counts differently....

timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,5)/boot/gfxmenu
default 0

title linux
kernel (hd0,5)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=8bf73019-1548-46b8-9aa9-267f5d1df8a9 acpi=on splash=silent vga=788
initrd (hd0,5)/boot/initrd.img

title linux-nonfb
kernel (hd0,5)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=8bf73019-1548-46b8-9aa9-267f5d1df8a9 acpi=on
initrd (hd0,5)/boot/initrd.img

title failsafe
kernel (hd0,5)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=8bf73019-1548-46b8-9aa9-267f5d1df8a9 failsafe acpi=on
initrd (hd0,5)/boot/initrd.img


maybe this helps. I don't really understand the large number after the root=UUID=

I think that failing to correctly set the partition up is the problem and I thought I could fix it from another angle....oh well...........

PTrenholme 03-22-2010 08:55 PM

The "large number" is the UUID of the root. You can verify it by booting a working distribution and doing a ls -l /dev/disk/by-uuid/.

Alternatively, replace the root=UUID=... by root=/dev/sda6. The point in the UUID= is that will, theoretically, find the correct partition even it the partitions are reordered.

I'm puzzled by the BOOT_IMAGE=... part of your boot stanzas, above, since they all start the same initial RAM file system files. Perhaps the distribution you're booting has an interpreter in it's initramfs file that does different things depending on the BOOT_IMAGE value. If so, that seem "cool."

IraB 03-22-2010 09:23 PM

The way this boot menu seems to look is, each distro has the main boot and a recovery and a failsafe mode, if we could call it that....

This little boot menu is courtesy of LinuxMint. So I guess it could be something weird, they are using grub and I'll do some studying and see if I can modify the grub file or hose the whole works...
Not a good thing to do, but it's only a test machine anyway, Linux only...I think it should be easy to include the PCLinuxOS partition, but maybe not so easy....

Thanks...

PTrenholme 03-23-2010 11:55 AM

Perhaps I wasn't clear enough.:redface: My point was that the BOOT_IMAGE= option is (to the best of my knowledge) a distribution specific thing, and it would be ignored by the initial RAM file system and kernel processing of any distribution that was "unaware" of it. Thus those boot stanzas may, for "unaware" distributions, be identical. I note also that different distributions name their initial RAM file system image files and ROM kernel boot files differently, so it would be unusual for a distribution to use /boot/vmlinz and /boot/initrd.img for the names of the boot kernel and initial RAM file system image files.

For example, on Fedora those stanzas might look like this:
Code:

title          --- Fedora 12 x86_64
root

title Fedora (2.6.32.9-70.fc12.x86_64)
        root (hd0,5)
        kernel /boot/vmlinuz-2.6.32.9-70.fc12.x86_64 root=LABEL=Fedora12 quiet LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us
        initrd /boot/initramfs-2.6.32.9-70.fc12.x86_64.img

title Fedora (2.6.32.9-70.fc12.x86_64) (Recovery Mode)
        root (hd0,5)
        kernel /boot/vmlinuz-2.6.32.9-70.fc12.x86_64 ro root=LABEL=Fedora12 3 quiet LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us
        initrd /boot/initramfs-2.6.32.9-70.fc12.x86_64.img

title Fedora (2.6.32.9-67.fc12.x86_64)
        root (hd0,5)
        kernel /boot/vmlinuz-2.6.32.9-67.fc12.x86_64 root=LABEL=Fedora12 quiet LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us
        initrd /boot/initramfs-2.6.32.9-67.fc12.x86_64.img

title Fedora (2.6.32.8-58.fc12.x86_64)
        root (hd0,5)
        kernel /boot/vmlinuz-2.6.32.8-58.fc12.x86_64 root=LABEL=Fedora12 quiet LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us
        initrd /boot/initramfs-2.6.32.8-58.fc12.x86_64.img

(I picked that as an example since my Fedora 12 is on /dev/sda6 on this laptop.)

Note that, for Fedora, the "recovery mode" is simply to boot to init level 3 (console login mode) which is indicated by the "3" in the kernel options list.

IraB 03-23-2010 07:50 PM

Thanks for the info. That looks a lot like what is in the grub boot menu. I took a look at it today and messed with it a bit. I actually re-installed the partition in question twice and same thing. Didn't show up in the boot menu. I kinda thought it would, but that would be too easy..and not what I started out to do.

Now I think if I re-installed the distro that owns the boot menu, LinuxMint in this case, that it would pick up the partition in question. I may try that tomorrow.

If I really knew what I was doing I could just make an entry in the boot menu and add it. I think.
I have a lot of info on grub and I need to study it a lot more.
There are parts of it I have forgotten and some I still don't understand.....so I'll try to squeeze that in before too long and report back with the results. Should be interesting.

Thanks again to all.

yancek 03-23-2010 09:48 PM

Which of the four distributions you have is installed on sda6?
Which of your four distributions do you boot from?
You have Linux Mint, which release Mint 8? It uses Grub 2. If Ubuntu is 9.10, it also uses Grub 2. Fedora, I think, still uses Grub Legacy and Slackware uses Lilo.

If you installed the last distro on sda6 and installed its Grub to the master boot record, it should have detected the others unless it was Fedora you last installed.

The question of the mount point is irrelevant to booting as indicated above. What you need is a correct entry in whichever Grub configuration file you are using to boot. Answers to the above questions would provide useful information for someone to help.

PTrenholme 03-23-2010 09:50 PM

If you're using a "standard" GRUB (and it surly looks like you are), then you should be able to press the "e" key when GRUB displays its log-on screen. That opens GRUB's built-in, RAM-only, editor. (By RAM-only, I mean that any changes you make to a boot stanza will be lost when you boot from the changed stanza, or when you press <Esc> to abandon an edit.)

Anyhow, a brief edit "how-to" should be displayed at the bottom of the screen.

The "built-in" editor is a handy way to try various different GRUB settings trying to find one that works. (I usually write down what I'm trying so I can edit something that works into the grub.conf file after I finally get it to work.

Oh, one thing: If you're using the "tab-completion" feature to verify path names, remember that the root command has not been executed when you're editing a specific line. E.g., if you wanted to see that list of all files in /boot on /dev/sda6 that start with the string "init", you would have to enter initrd (hd0,5)/boot/init<tab> even if your actual stanza contained a root (hd0,5) line.

IraB 03-23-2010 10:30 PM

Thanks. I was doing that a while ago and kinda gave up for today. I can see that I need to know a lot more about PCLinuxOS. There's 8 or 10 lines in each of those boot entries and I think I need to know the kernel version and can't recall the other one now.

I tried to set up a menu.lst file in the /boot/grub folder, but there were some permissions issues there.....and I was getting tired.....so I just cashed in for the night...

I think I might take the easy way out and reinstall LinuxMint just to see what happens. Mainly to see if it picks up PCLinuxOS. Maybe tomorrow.....

Thanks again for your time.

IraB 03-24-2010 03:41 PM

Sorry Yancek, I didn't mean to overlook you....

sda6 has pclinuxos. I am using Mint 8 and using it's boot loader. And yes you are right. I decided to install another distro today just to see what would happen. I chose PC/OS. It went on ok and sure enough, it picked up all the rest of the distros on the partitions. And with a different looking boot loader. No splash screen, but that's ok.

I have downloaded the grub manual and am going to do this right. I know with the extra distro, and with it's boot manager, I have access to sda6, but that's not the point. I think it can be done by some command line or modifying grub....would be educational for me..

Thank you all very much for the input...


All times are GMT -5. The time now is 03:05 PM.