LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-27-2009, 02:01 PM   #1
pLatonet
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Need partition tips


I have a sata disk of 250 gb on my laptop.

my partitions in sequence:
2gb swap partition (openSUSE) | 20 gb ext3 (openSUSE) | 40gb ext3 (openSUSE home) |15gb ext3 (Kubuntu) | 740 mb linux-swap (Kubuntu) | 127 gb Media in fat32 | 40 gb ntfs (WinXP)

I want to delete openSUSE, all my files that i want to keep are on the kubuntu partition and Media FAT32 partition.
I'm now wondering if i just can delete the partitions of openSUSE and move kubuntu partition to the beginning of my disk and extend my kubuntu partition? Because i once moved a partition and my mbr was deleted.
 
Old 09-27-2009, 02:18 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
Before anyone can give you any specific useful advice, you will need to post your partition information from the "fdisk -l" command, if you use Kubuntu I believe you will need to preface it with "sudo". Post this output here so someone can give you advice. Need to know size of partitions and where they are located on the drive.
 
Old 09-27-2009, 02:46 PM   #3
pLatonet
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
Before anyone can give you any specific useful advice, you will need to post your partition information from the "fdisk -l" command, if you use Kubuntu I believe you will need to preface it with "sudo". Post this output here so someone can give you advice. Need to know size of partitions and where they are located on the drive.
output of fdisk -l
Device Boot Start End Blocks Id System
/dev/sda1 1 9827 78935346 f W95 Ext'd (LBA)
/dev/sda2 9828 25257 123941475 b W95 FAT32
/dev/sda3 * 25258 30401 41319180 7 HPFS/NTFS
/dev/sda5 1 262 2104452 82 Linux swap / Solaris
/dev/sda6 263 2873 20972826 83 Linux
/dev/sda7 2874 7810 39656421 83 Linux
/dev/sda8 7811 9737 15478596 83 Linux
/dev/sda9 9738 9827 722893+ 82 Linux swap / Solaris

i have attached a printscreen of gparted, it's more clear with the gui of gparted
Attached Thumbnails
Click image for larger version

Name:	partitions.png
Views:	14
Size:	61.1 KB
ID:	1610  

Last edited by pLatonet; 09-27-2009 at 03:47 PM.
 
Old 09-29-2009, 05:14 PM   #4
gzunk
Member
 
Registered: Sep 2006
Posts: 89

Rep: Reputation: 20
To be honest, moving partitions around like this gives me the heebee jeebees. I may be a luddite but I've never trusted software that claims to move partitions on disk without screwing something up.

I would buy a cheap external USB drive, plug it in and then I'd boot from a Linux CD.

Then I would clone the internal hard disk to the USB drive (dd if=/dev/sda of=/dev/sdb bs=<something appropriate for your memory>).

Then I'd repartition the existing hard drive the way I wanted it re-partitioned, missing out all the junk that I wanted removing. I would make sure that the partitions that I didn't want extending were *exactly* the same size as before. Just in a different location. I would create partitions I wanted extended the size I wanted them to be (as long as they were larger...)

Then I would copy the partitions back over from the USB drive to the internal drive (dd if=/dev/sda(x) of=/dev/sda(y) bs=<something apppropriate for your memory>)

Then I'd use resize2fs to resize the partitions that I wanted to be bigger.

Finally, I would re-install GRUB (again from the bootable CD), making sure that GRUB knew where the root partition was *now*.

Then I'd cross my fingers and pray and boot from the Internal hard disk. But I'd still know that I had a complete backup of the system on the USB disk if I had completely screwed up somewhere.

Hope that helps!

Last edited by gzunk; 09-29-2009 at 05:17 PM.
 
Old 10-01-2009, 03:26 AM   #5
RMRostron
LQ Newbie
 
Registered: Aug 2009
Location: England
Distribution: Mandriva
Posts: 8

Rep: Reputation: 0
I use Mandriva and have had no problems with shrinking and editing partitions using the mandriva graphical partition editor, and that includes Windows partitions too.
Having said that, you should always back up the system when performing major surgery. But then again, you should already have it all backed up from your daily/weekly backup scheduler, don't you ?

Last edited by RMRostron; 10-01-2009 at 03:36 AM.
 
  


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
Need tips on using Ethernet to power WiFi network, and tips on setting up WiFi crabpot8 Linux - Networking 2 08-24-2009 06:42 PM
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 10:46 AM
LXer: Tips and tricks: Why is my system unable to reboot after converting my ext3 partition to a diskdump partition. How can I fix this ? LXer Syndicated Linux News 0 07-23-2007 06:46 PM
I need tips. kalleanka Programming 2 07-19-2006 08:41 AM
partition tips for a noob dr_zayus69 Linux - Newbie 3 12-03-2004 09:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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