LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-02-2013, 06:26 PM   #1
jzoudavy
Member
 
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 180

Rep: Reputation: Disabled
trying to increase the size of my primary partition


Hi experts

I am stumped with this. Here is what I have:

One SUSE 11 with SP1 virtual machine (VM running on VWare vCenter), 50 gig HD, on root partition, 12 gig memory and 12 Gig swap file.

Code:
linux:~ # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              48G   46G  154M 100% /
devtmpfs              5.9G  108K  5.9G   1% /dev
tmpfs                 5.9G   88K  5.9G   1% /dev/shm

linux:~ # free -tom
             total       used       free     shared    buffers     cached
Mem:         11980       2236       9744          0         10       1536
Swap:         1498          0       1498
Total:       13478       2236      11242

fstab content:
/dev/sda1            swap                 swap       defaults              0 0
/dev/sda2            /                    ext3       acl,user_xattr        1 1
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
/dev/sdb             /                    ext3       acl,user_xattr        1 2
I am trying to install this work application on it and that's what providing the swap file requirement. (I get an error about requiring 12 gig swap file if I don't have it) But for some reason the application keeps eating up the space as I install the various packages it needs. So I figured, no problem, I will just add a second hard disk, mount it under root, edit the fstab, and I should be fine.

So from vmware I add the second hard disk, another 50 gig should fix it. But on linux it always shows up as sdb, instead of being part of sda2. so sda2 remains 50 gig and my application still can't install because it doesn't expand into sdb for some reason. (Dev guys left for the day already, and their environment always just calls for a single partition root on sda.)

Also, the sdb that I mount, would disappear if I restart the VM. Which is absolutely not acceptable under any circumstances. That is also why from the partition table up above you do not see sdb.

I am mounting sdb via this document that I found here: http://www.cyberciti.biz/faq/linux-disk-format/

Now application wise there is nothing I can do, it is another department and something I intend to use, not develop, so I am not touch that can of worms.

My next plan of attack is to just create a new bloody vm with 100gig hd and install suse on it again because i do need a working version of the app. but in the meanwhile, if someone could help me figure this out, I would appreciate it.

if you any questions please feel free to ask.

Thanks
davy
 
Old 05-02-2013, 06:39 PM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 5,999

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
You can't do what you are trying to. You can't just mount another disk at a mount point to extend the room on that mount point. You need to read up on disks, partitions and mount points before you break something.
Your best course of action here is, as you mentioned, create a new VM with a large enough hard drive.
The other option would be something like shut down the VM, resize the virtual hard drive, boot the VM with a parted magic CD image, resize the filesystem of the VM, then restart the VM. That may work.
 
Old 05-02-2013, 07:26 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Another possibility is that if you know the main dir where you need extra space eg /app, you can make that a mount point and mount sdb1 there.
That's the nearest equivalent of what you tried, I think.
Incidentally, you must partition it with at least one partition, hence sdb1, not 'sdb'.
 
Old 05-03-2013, 01:43 PM   #4
jzoudavy
Member
 
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 180

Original Poster
Rep: Reputation: Disabled
hey guys

thanks for all your advice, i made a new vm with a bigger disk and bigger swap file and now it is working. t

davy
 
  


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
Increase primary /dev/sda1 partition amirsd Linux - Newbie 3 03-16-2010 04:10 PM
How to increase partition size? Uday123 Linux - Software 3 01-24-2010 08:28 PM
Is it possible to increase the size of the / partition? abefroman Linux - Server 5 12-15-2009 03:05 PM
Increase partition size bmstephan Linux - Newbie 3 01-09-2009 12:31 AM
tricky backup of Linux system to NTFS partition to increase partition size Pandarsson Linux - General 5 07-09-2008 03:35 PM


All times are GMT -5. The time now is 02:45 AM.

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