LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-25-2011, 01:52 PM   #1
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 179

Rep: Reputation: 0
Repartitioning Without Losing Root Partiton


Hi,
i have suse linux enterprise desktop on my laptop with these partitions :
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2612 20980858 83 Linux
/dev/sda2 2613 3592 7871848 82 Linux swap / Solaris
/dev/sda3 3593 3971 3044317+ 83 Linux
/dev/sda4 3972 60801 456486972+ 83 Linux

now i want to delete all partitions except root partition (sda1) and make it's size bigger then create other partitions again.
i need best way to do
 
Old 05-25-2011, 02:01 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Download the GParted Live-CD.
Backup all your valuable data, and if necessary your /-partition, during resizing data may get lost.
Start from the GParted CD.
Delete partitions 2-4, resize partition 1 as wanted, recreate the other partitions.
Copy your data back.

Keep in mind that if your system uses UUIDs you have to adapt /etc/fstab to the new IDs.
 
1 members found this post helpful.
Old 05-26-2011, 01:00 AM   #3
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 179

Original Poster
Rep: Reputation: 0
Thank you for your response ,
this is my fstab file :

devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
/dev/disk/by-id/ata-ST9500420AS_5VJB5ZX2-part1 / ext3 defaults 0 0

do you think i get problem with this file after repartitioning ?

Best Regards
 
Old 05-26-2011, 04:59 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
I can't see that you have an entry for your other partitions in fstab, so I don't think that you will have problems.
 
Old 05-27-2011, 03:56 AM   #5
hesisaboury
Member
 
Registered: Dec 2010
Location: iran
Posts: 179

Original Poster
Rep: Reputation: 0
Thank you very much
OH by the way could u PLZ introduce me a good S/W for backup and restore???

Best Regards
 
Old 05-27-2011, 04:38 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
You can use either commandline tools, like cp, rsync, tar or dd, or you use Clonezilla, it will make an image of the partition.
You should find plenty of threads here regarding making backups.
 
  


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
Repartitioning in YaST without losing data gumb SUSE / openSUSE 22 12-29-2007 06:32 PM
Repartitioning and tarballing root filesystem Oholiab Slackware 3 12-20-2005 03:22 AM
Repartitioning without losing data Cdzin Slackware 4 01-30-2005 08:27 PM


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