LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-10-2004, 05:01 PM   #1
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Rep: Reputation: 30
Making the /boot partition bigger


Is there a stable/easy way to make my boot partition bigger, or better yet, merge it with my root partition. I like to install the latest kernels and don't delete the last ones for a while. I was wondering if I could make the boot partition bigger for this reason.


I was thinking about using Qtparted, but I am not sure if anything will get messed up after using it.


Thanks
 
Old 07-10-2004, 05:10 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
How big is it currently? Maybe you just want to change
the filesystem :}

That aside it's quite easy to move /boot to / ...

Just go init 1 and then
a) copy the files from boot to /tmp/boot
b) unmount /boot
c) edit /etc/fstab, remove the /boot-line
d) copy files from /tmp/boot back to /boot

Done ... caveat: you have a tiny, empty partition :)


Cheers,
Tink
 
Old 07-10-2004, 05:17 PM   #3
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
Thanks for the imput. Very helpful.

What did you mean by changing the filesystem? It is ext 3, and it is ~100megs.

If I were to do it the way you suggested, how would I get rid of the empty partition? (or add that space to the root partition)
 
Old 07-10-2004, 05:18 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
There's your problem :)

ext3's journaling.

You shouldn't use ext3 for small paritions,
change back to ext2 and you'll fit another
20 kernels there ;)


Cheers,
Tink
 
Old 07-10-2004, 05:29 PM   #5
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
Cool, although, just wondering..how do I change it to ext 2 from ext 3 without reformatting?
 
Old 07-10-2004, 06:08 PM   #6
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
bump. Would qtparted do it right? I am sure there is another way, but not sure what it is..

and using ext 3 for my root partition is ok, right?

@Tinkster - I noticed you are using debian for work. Are you using Stable, Testing, or Unstable?


Thanks

Last edited by r3dhatter; 07-10-2004 at 06:12 PM.
 
Old 07-10-2004, 06:50 PM   #7
p-static
Member
 
Registered: Jul 2004
Distribution: Gentoo
Posts: 101

Rep: Reputation: 15
To change it from ext3 to ext2, you'll have to back up all the files from the /boot partition, then "mke2fs /boot", and then copy all the files back. I don't think there's a way to do it without reformatting, but I could be wrong.
 
Old 07-10-2004, 07:33 PM   #8
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
I did a little research and I found a few threads that say to do this:

"You use tune2fs to change the file systems either to or from ext2 or ext3.
I suggest you use your install CD to load your system since I don't
believe you can make the change with the partition active.

Once you have a working system without the partition mounted that you want
to change you should issue this command:

tune2fs -O ^has_journal /dev/drive_partition

where drive partition is something like hda1. You will also need to
change /etc/fstab to make sure the partition the correct type.

To change it back just do the same but issue this command:

tune2fs -O has_journal /dev/drive_partition

Read the man page for tune2fs. "


From http://linux.derkeiler.com/Mailing-L...3-11/1271.html


Not sure if this is right or not though...
 
Old 07-10-2004, 08:23 PM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
You could create a boot partition on your root (/) partition and mount it there, copying all of the files to your new directory, then either reformat the old boot as ext2 or use tune2fs. After that you can move the files back. This will be easier to do using the rescue system when the /boot partition isn't mounted to begin with.

Last edited by jschiwal; 07-10-2004 at 08:35 PM.
 
Old 07-10-2004, 09:00 PM   #10
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
Do I even need a /boot partition? Can I just copy the /boot folder to the root partition and delete the /boot partition afterwards. Not sure how I would reset the boot flag though...
 
Old 07-10-2004, 10:10 PM   #11
p-static
Member
 
Registered: Jul 2004
Distribution: Gentoo
Posts: 101

Rep: Reputation: 15
Tune2fs should work. You'll need to umount the /boot partition first, though. If you do choose to just copy the boot partition onto the root partition, make sure you update your grub.conf for the new locations. I think you can set the boot flag with fdisk.
 
Old 07-10-2004, 10:41 PM   #12
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
I think I really messed it up now. I copied /boot to /temp/boot, then I formatted my boot partition as ext 2 with qtparted. Then, went to the fstab and commented out my swap by accident (thought it was the partition qtparted made). I also commented out my boot partition. Now I can't load grub.

I thought about using knoppix to solve this just by copying and pasting /boot to the root partition but it says I do not have permission even though I use the super user mode gui thing. Help.

Thanks
 
Old 07-10-2004, 11:08 PM   #13
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
You can likely use knoppix. If it has grub on it, which is quite likely, try to reinstall grub (who needs menu.lst?) Or, install grub to a floppy for this problem. If you have grub without a menu.lst (or grub.conf in gentoo-speak), you can still boot by entering the boot (hdx), kernel= lines. You can even install grub to your hard drive's partition again if you know where your kernel is - you can get the darn thing booted again anyhow.
 
Old 07-11-2004, 04:08 PM   #14
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
Thanks for the suggestion vectordrake. I have tried many ways to make linux boot disk that I found on google, but many have not worked for me.. I can still copy files from my old /boot partition onto a cd and floppy. I have a grub folder, lost and found, vmlinux, config files, initrd.img files, and system maps for 3 different kernels: 2.5, 2.4, and 2.6.6.

How do I make a boot disk from this? I would like to make it using a cdrom since it is really hard to make floppy boot disk do to the slowness of my floppy drive. I also have a debian sarge installer if that helps any.

Thanks
 
Old 07-11-2004, 04:34 PM   #15
r3dhatter
Member
 
Registered: Dec 2003
Distribution: Debian (testing)
Posts: 210

Original Poster
Rep: Reputation: 30
Cool, I got linux to come up with a Libranet boot disk!

Although, I can't get into the gui, so I am going to have to copy the files using command line.

I did:
cp boot /
and:
cp --target-directory=/ boot

but it just says "ommiting directory 'boot' "

Is there another way to copy the boot folder (in /temp/boot) to root (/)

Thanks
 
  


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
Java Array's.... Making An array bigger??? Tru_Messiah Programming 11 08-17-2016 02:45 PM
Making a partition bigger Tsukasa7 Linux - Newbie 8 10-24-2005 01:41 PM
making linux partition bigger? M O L8ingN2dust Linux - Newbie 1 03-23-2005 04:47 PM
Making a partition bigger rverlander Linux - General 8 07-19-2002 09:49 PM
making patitions bigger than one harddrive saavik Linux - Software 3 11-10-2001 08:59 AM


All times are GMT -5. The time now is 04:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration