Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
So, I created a boot partition and made it bootable and got Ubuntu to install into this boot partition. When I try to mount it to modify it, it says "permission denied". I'm assuming I must've missed some step like taking ownership of it? Or worse, screwed up the install.
I basically created a separate partition for GRUB so I can install multiple distros with (hopefully) less headaches.
Sorry, I should clarify, I can mount it fine but trying to CD into it (so I can start modifying) it gives me the permission denied. Weirdly enough, if I do a sudo dir/ls command it will display Lost+Found (or something like that) but if I try to do it without sudo, it also says permission denied.
You could try "sudo su" without quotes at command line. Should be prompted for your password and then be able to do whatever.
Also gksudo or sudo nautilus are worth trying.
sda1 is an illustration of your partition, You will need to use what ever your partition number is. The directory name can be anything you want. Do not use a name of any other /mnt's.
I use the device number for a name. It makes it easier for me to remember.
You will need to build two more directories /boot/grub
and then the file grub.cfg if you installed in a different partition or copy the file from your distro.
Last edited by Larry Webb; 11-30-2011 at 04:29 PM.
You will need to build two more directories /boot/grub
and then the file grub.cfg if you installed in a different partition or copy the file from your distro.
yep, basically what I done and got the permission denied error while trying to cd in. The commands I typed were:
Code:
mkdir /home/user/test
sudo mount /dev/sda1 /home/user/test
sudo cd /home/sda1/test
I'm not sure if not having it in the mnt directory is causing the issue, but I'll try that when I get home.
Also your 'cd' entry is not the same as your mkdir.
Did you put grub inside your home partition? If not then do not use the word /home for the first word in the directory. When you change directories it will try and take you to the home directory.
Last edited by Larry Webb; 11-30-2011 at 08:28 PM.
yeah, that was a typo :P I'm a little off my game today..
During the Ubuntu install I selected sda1 as the partition to install the boot loader on but I did't select it to load as /boot if you get what I'm saying. Though, looking at the boot dir, I see a grub dir in their with a grub.cfg (going off the top of my head atm, not on my pc).
In your initial post, you say you created a separate /boot partition and installed Ubuntu into this boot partition?? The purpose of a boot partition is to have the boot files not an operating system? Also in this initial post you indicate you created a separate partition as a Grub partition. Is this a different partition or are you referring to the same /boot partition?
In your last post, you indicate you selected sda1 as the partition to install the bootloader for Ubuntu to. If you did that, what bootloader do you have in the master boot record from which operating system so that you will be able to access the Ubuntu bootloader?
Maybe you should download and run the bootinfoscript at the site below and post the results.txt file here:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.