LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-08-2014, 04:09 PM   #1
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 141

Rep: Reputation: 16
Extending a root filesystem


Hello

Extending a "/" filesystem in Linux (Centos5.7) without LVM.

Thanks

---------- Post added 08-08-14 at 05:10 PM ----------

i got below link, but it won't work for me.

http://thewiringcloset.wordpress.com...x-without-lvm/
 
Old 08-08-2014, 05:16 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
It's impossible to say anything meaningful about what you need to do in order to extend the root FS of your system, as you've provided no details on your specific setup. Nor have you said anything about exactly what it was in the article that didn't "work" for you.

As the article clearly states, before you can extend the file system, you must extend the underlying device or partition. So:
  • Does your file system reside on a regular partition on a hard drive?
  • Is the drive partitioned using the MBR or GPT partitioning scheme?
  • Is there free space directly after the root partition?
  • Are there other partitions on the drive, and if so, can any of them be shrunk or deleted?
 
Old 08-09-2014, 07:15 PM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You need to post output of
Quote:
fdisk -l
toget any type of help.
 
Old 08-11-2014, 02:26 PM   #4
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 141

Original Poster
Rep: Reputation: 16
Sorry My mistake-

So now i am providing you all details hopefully it would be helpful

Filesystem Size Used Avail Use% Mounted on
/dev/sda3 42G 37G 4.8G 89% /
/dev/sdb1 50G 23G 25G 49% /home
/dev/sdc1 199G 91G 99G 48% /opt
/dev/sda1 99M 37M 58M 39% /boot
tmpfs 3.9G 0 3.9G 0% /dev/shm


Disk /dev/sda: 53.6 GB, 53612386816 bytes
255 heads, 63 sectors/track, 6518 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 14 104391 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 14 1034 8193150 82 Linux swap / Solaris
/dev/sda3 1034 6517 44042197+ 83 Linux

Disk /dev/sdb: 53.7 GB, 53711078912 bytes
255 heads, 63 sectors/track, 6530 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 6529 52436128+ 83 Linux

Disk /dev/sdc: 214.7 GB, 214762061312 bytes
255 heads, 63 sectors/track, 26110 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes


LABEL=/ / ext3 defaults 1 1
LABEL=/home /home ext3 defaults 1 2
LABEL=/svn /opt ext3 defaults 0 0
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0



=======================

I am adding a new disk to increase my (/) partition.

I have followed up the exact steps provided in link http://thewiringcloset.wordpress.com...x-without-lvm/

and it screwed up my box and now i am getting kernel panic error.

only thing i did i had taken clone and did all my experiment.

so my prod box is alive. still i am struggling in re-sizing.


Enclosed attachment
Attached Thumbnails
Click image for larger version

Name:	attach.jpg
Views:	24
Size:	59.3 KB
ID:	16100  

Last edited by abhijeetdutta; 08-11-2014 at 02:32 PM.
 
Old 08-14-2014, 07:41 AM   #5
abhijeetdutta
Member
 
Registered: Aug 2009
Posts: 141

Original Poster
Rep: Reputation: 16
Any idea's, I am still stuck.
 
Old 08-14-2014, 02:02 PM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I think that would be better off having swap on sdc to free up space sda for /. Also you may have to run an fsck to correct the fs corruption. Not sure if using uuid's would be better.
 
Old 08-14-2014, 07:36 PM   #7
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Why is your / partition so big?
Surely there is a pile of removable stuff that could go?

Alternatively, you could delete the swap partition, and use a "live CD"
to extend / into the extra space.
If you still need swap space, create swap file(s) in another filesystem that has some free space.
It is almost as efficient as a dedicated swap partition.

BTW
Code:
df -h
will list all your mounted partitions in a concise and useful way.
 
  


Reply



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
[SOLVED] Extending lv by adding disk to root vg. Slaine Linux - Server 4 03-07-2014 02:24 PM
Extending a filesystem across two scsi disks? TaiChiFrank Linux - Newbie 2 09-08-2009 10:49 PM
Extending root partition sumit dash Linux - Hardware 1 12-05-2008 05:13 AM
vmware: extending root disk cygnus-x1 Linux - Software 1 10-27-2006 07:12 PM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM

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

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