LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 10-13-2012, 12:33 PM   #1
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 169

Rep: Reputation: Disabled
extend boot partition ?


hi everybody
i want to extend /boot partition on my fedora 17.
i m running fedora alongside windows 7
every time upgrading kernel asking for extra free disk space on /boot.
current df of my fedora system

rootfs 20157076 5440644 14511668 28% /
devtmpfs 1456348 0 1456348 0% /dev
tmpfs 1467320 84 1467236 1% /dev/shm
tmpfs 1467320 1264 1466056 1% /run
/dev/sda7 20157076 5440644 14511668 28% /
tmpfs 1467320 0 1467320 0% /sys/fs/cgroup
tmpfs 1467320 0 1467320 0% /media
/dev/sda5 99150 70012 24018 75% /boot
/dev/sda8 8567248 1900676 6231372 24% /home

steps to extend the partition needed. thanks
 
Old 10-13-2012, 12:56 PM   #2
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Gentoo, Lubuntu
Posts: 254
Blog Entries: 16

Rep: Reputation: 20
fdisk

df is not enough

send a fdisk -l /dev/sda
or sfdisk -l /dev/sda

running fdisk as root

this will give the disk geometry of your HD
 
Old 10-13-2012, 01:33 PM   #3
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 169

Original Poster
Rep: Reputation: Disabled
hi jheengut


Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf3c6f6a7

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 204802047 102297600 7 HPFS/NTFS/exFAT
/dev/sda3 204802048 553457663 174327808 7 HPFS/NTFS/exFAT
/dev/sda4 553457664 625141759 35842048 5 Extended
/dev/sda5 553461760 553666559 102400 83 Linux
/dev/sda6 553668608 565956607 6144000 82 Linux swap / Solaris
/dev/sda7 565958656 606918655 20480000 83 Linux
/dev/sda8 606920704 624328703 8704000 83 Linux
[root@zafar zafar]#
 
Old 10-14-2012, 06:55 AM   #4
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Gentoo, Lubuntu
Posts: 254
Blog Entries: 16

Rep: Reputation: 20
Unhappy

/dev/sda5 99150 70012 24018 75% /boot


/dev/sda5 553461760 553666559 102400 83 Linux
/dev/sda6 553668608 565956607 6144000 82 Linux swap / Solaris


It seems /boot is /dev/sda5 with 102400 blocks and the next partition is /dev/sda6 a swap partition(I do not think it is a Solaris partition).

check for swap with
[code]grep swap -i /etc/fstab [\code]

the output would be like this I presume
/dev/sda6 swap swap defaults 0 0


if not then the swap partion is either a file or is mounted with UUID or with LABEl

UUID=11483a15-cda7-4363-9fe0-0690112cb92b swap swap defaults 0 0
LABEL=SWAP swap swap defaults 0 0


Also you did not mention which filesystem /boot is using. You can get that info from mount . From this I can recommend which tool to use for resizing.


note :: Before resizing , perform a backup of the whole hard disk , using clonezilla in case.













Recommended steps to be confirmed ==============>>

1, login as root on runlevel init 1
2, swapoff /dev/sda6
3, umount /boot
4, remove both /dev/sda6 and /dev/sda5 ( optional )
5, create a bigger partition of /dev/sda5 (200 MB should suffice) and recreate /dev/sda6
for the swap space
6, resize /dev/sda5
7, mkswap /dev/sda6
8, swapon /dev/sda6
9, reboot

or use a live distro to perform steps 4 - 7
<<==============


This is what I would do and applies to all UNIX system.

You can use tools like gparted but the problem here lies with the swap space and repartionning is a very dangerous task because as far as I remember fedora use UUID to mount partions and if there is a native tool for partionning under fedora17 you should go for it.

The partionning tool under fedora is incompatible with fdisk.
The tool I am referring to here is the one fedora use at install time.


You can use gparted live distros to perform resizing.
 
1 members found this post helpful.
  


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
Extend an partition Jordan Miguel Linux - General 9 04-27-2011 08:51 PM
Extend a partition musiqdefunk Linux - Newbie 7 03-25-2011 03:12 PM
How to Extend Boot Partition mselvaprakash Linux - Server 5 10-19-2010 07:21 PM
Extend/Grow a partition dsrm Linux - Newbie 5 10-19-2007 12:26 AM
how to extend partition? Sushy *BSD 2 01-25-2007 01:29 PM


All times are GMT -5. The time now is 06:58 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