LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-30-2011, 05:54 AM   #1
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 171

Rep: Reputation: 38
Modify Boot Partition


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.

Any ideas would be appreciated!
 
Old 11-30-2011, 05:58 AM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Are you using sudo in your commands?
 
Old 11-30-2011, 06:17 AM   #3
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 171

Original Poster
Rep: Reputation: 38
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.
 
Old 11-30-2011, 09:08 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,444

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
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.
 
Old 11-30-2011, 04:25 PM   #5
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Make a directory to mount the /dev like

sudo mkdir /mnt/sda1

sudo mount /dev/sda1 /mnt/sda1

sudo cd /mnt/sda1


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.
 
Old 11-30-2011, 06:50 PM   #6
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 171

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by Larry Webb View Post

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.
 
Old 11-30-2011, 08:27 PM   #7
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
mkdir /home/user/test

sudo mount /dev/sda1 /home/user/test

sudo cd /home/sda1/test
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.
 
Old 11-30-2011, 09:36 PM   #8
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 171

Original Poster
Rep: Reputation: 38
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).
 
Old 12-01-2011, 09:16 AM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,444

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
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:

http://bootinfoscript.sourceforge.net
 
Old 12-01-2011, 05:43 PM   #10
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
Are you chain loading?
 
  


Reply


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
Ubuntu Server : Need to modify root partition Khao8 Linux - General 4 09-03-2009 07:38 AM
Modify partition size on hard drive ??? stefane321 Linux - Hardware 6 06-30-2009 08:37 AM
Cannot modify, delete, or format free partition Lizardboy74 Linux - Hardware 1 01-22-2007 01:57 PM
help to modify the permissions for a partition locke_as16 Linux - General 3 04-22-2006 02:03 AM
Modify first partition CowboyJ Linux - Hardware 2 05-30-2005 10:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:05 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
Open Source Consulting | Domain Registration