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 12-19-2010, 11:01 AM   #16
born2bdesi
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Original Poster
Rep: Reputation: 0

Thanks Catkin.

I would appreciate if you could throw some light on the commands to be run in order to increase the space in sda2.
 
Old 12-19-2010, 11:04 AM   #17
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
Quote:
Originally Posted by catkin View Post
What about commenting swap out of fstab, deleting the swap partition sda3 and growing sda2 into the space formerly taken by sda3? sda5 could be shrunk to make space for a new swap partition.
Good plan !
 
Old 12-19-2010, 11:04 AM   #18
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by born2bdesi View Post
Thanks Catkin.

I would appreciate if you could throw some light on the commands to be run in order to increase the space in sda2.
I'm busy right now; maybe somebody else can do that if there is consensus that it is a workable plan.
 
Old 12-19-2010, 11:14 AM   #19
born2bdesi
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Sure, I would wait for your inputs.

I am going to be online again in a couple of hours. Looking forward for your support!
 
Old 12-19-2010, 11:37 AM   #20
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
I suggest getting the gparted livecd and using that. It will make things much simpler for you.
 
Old 12-19-2010, 09:35 PM   #21
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by smoker View Post
I suggest getting the gparted livecd and using that. It will make things much simpler for you.
+1 to that. I believe the native tools are more robust but with a new installation, having no data to back up -- and restore if necessary, gparted would be a good choice.

The swap partition can be commented out of /etc/fstab by a leading # and then edited to suit and uncommented when the partition name of the new swap is known.
 
Old 12-20-2010, 05:40 PM   #22
born2bdesi
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for all your replies!

Here is what has been done.

Code:
Pre: Commented SWAP Partition from /etc/fstab (As suggested by catkin)
Pre: Backed up my VMWare Disk Image

1. Boot using GParted Live CD
2. Deleted the SWAP Partition that was being shown as below.
    Partition		File System		Label		Size		
   /dev/sda3		linux-swap		SWAP-sda3	2.00 GiB
3. Resized /dev/sda2 (/home partition) to a bigger size.
4. Shrinked /dev/sda5 to a smaller size.
5. Created /dev/sda6 to hold SWAP Partition as shown below.
    Partition		File System		Label		Size		
   /dev/sda6		linux-swap		SWAP-sda6	4.00 GiB

Post: UnCommented SWAP Partition from /etc/fstab (As suggested by catkin)
All went good, I rebooted Linux with no issues at all!

Current configuration
Code:
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1           6       48163+  83  Linux
/dev/sda2               7         776     6184893   83  Linux
Partition 2 does not end on cylinder boundary.
/dev/sda4             777        2610    14731605    5  Extended
/dev/sda5             777        2082    10486620+  83  Linux
/dev/sda6            2082        2610     4243456   82  Linux swap / Solaris
However, I see this warning during boot-up.

Code:
Unable to access resume device (LABEL=SWAP-sda3)
Also, I see a warning in the above fstab output.

Code:
Partition 2 does not end on cylinder boundary.
Do you guys foresee any issues with my current configuration?

Highly appreciate your inputs!
 
Old 12-20-2010, 11:15 PM   #23
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
"Unable to access resume device" probably comes from GRUB and could be fixed by editing /boot/grub/menu.lst.

"Partition 2 does not end on cylinder boundary" is a warning, not an error. To adjust the partition table to suit fdisk you could boot gparted again and set it to use "Align to cylinder" instead of "Align to MiB" and then resize /dev/sda2. In retrospect that would have been a better choice the first time around (Sorry -- I do not use gparted and have only just learned of this setting by netsearching).
 
Old 12-21-2010, 12:40 AM   #24
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
Unable to resume device is because you have not edited fstab to reflect that the swap partition is now on sda6. Change sda3 to sda6 in fstab and it should be fine.
 
  


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
Clonezilla - Copy /dev/sda2 on computer 1 => /dev/sda4 on computer 2 pizzipie Linux - Software 13 08-04-2014 09:35 PM
ALERT! /dev/sda5 does not exist! mrlinus Linux - Software 3 04-13-2009 01:34 AM
how to remove disk space in /dev/sda8 to increase the /dev/sda7 centguy Linux - Software 16 11-27-2008 07:05 PM
device dev/sda5 ignoring secure Linux - Hardware 2 08-23-2007 03:39 AM
installing slackware to usb harddrive...no /dev/sda2 on disk to mount for cfdisk surfbass Slackware 7 05-09-2006 08:37 AM

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

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