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 02-08-2007, 01:07 PM   #1
cornbread
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Rep: Reputation: 0
removal and rearranging partitions question...


I am pretty new to linux and hooked and when i decided to try it i gave myself two partitions being a previous windows power user I gave myself 260 GB on the first part of my HDD and 57GB on my linux partition. I am running suse 10.2.

I want to remove my 260GB first partition and move my suse partition to be the beginning and the whole drive then I'm going to install vmware for my windows stuff.

TIA for the help!!!
 
Old 02-08-2007, 02:53 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,577
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
I didn't quite get that. You're going make Suse the entire drive then try to install VMWare? It won't work. VMWare is itself an OS (Linux) based. You install virtual machines on the VMWare base not the other way around. That is to say you can install Suse on top of VMWare but not VMWare on top of Suse.

You could still have Suse and VMWare on different partitions possibly. Since VMWare expects to run the show it may not play well with a grub configuration like that. Haven't done it myself.
 
Old 02-08-2007, 03:08 PM   #3
cornbread
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Original Poster
Rep: Reputation: 0
not a server just a workstation

I am just going to run a vmware workstation inside suse same partition. I have it running on a laptop I'm not going to run an esx server. My main issue is the repartitioning all the rest is just details that don't matter. I like my suse install. i just want to make it the whole disk without losing my suse partition... basically a a resize.
 
Old 02-08-2007, 03:58 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,577
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
Well rather than "resizing" what you can do is just break the other partition into separate mounts that you mount on top of your Suse root filesystem. That way you don't even disturb the Suse except by updating /etc/fstab to make them mount automatically.

e.g. Say you currently have suse with
/
/boot

You could either delete the other partition completely then make multiple partitions (extended) or better yet just put that other partition into Logical Volume Manager (LVM) as a Physical Volume (PV) then you can break it into Logical Volumes (LVs) as you need to. That is to say it is there waiting for you to allocate it for specific purposes rather than just putting it all out in the world.
Of course you could just make it all one big mount say by mounting it as /beaucoupspace. You would then just install everything you want into that new filesystem.
 
Old 02-10-2007, 06:35 AM   #5
cornbread
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Original Poster
Rep: Reputation: 0
hmm...

lol that sounds good except I'm a newb at linux and I don't even know where things install or how to install them in other areas so I figured I'd just try to make it free space. Most of my data goes in my home dir which is all out of one partition so I basically want a basic point in the direction of how I would go about removing all of the old partition which is mounted /windows/c it is automatically mounted in my fstab and just add it all to my linux partition which is all one partition. thanks for your help!
 
Old 02-10-2007, 10:47 AM   #6
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,577
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
Bascially I was suggesting you use fdisk (or similar utility) to convert the windows partition to a Linux partition. You would then be able to use mkfs on the new Linux partition to make it into a filesystem.

To use all of that new partition as /home you could:
mv /home /home.old
mkdir /home
mount <partition device> /home
cp -pR /home.old/* /home
ls -lR /home

If the ls -lR /home shows it has all the contents you had in /home.old you can rm -rf /home.old.

You'd want to add /home to /etc/fstab to it automatically remounts on boot.

For each of the commands I listed above you can type "man <commnad>" for more detail.

As noted in my prior post the above approach would leave your original Suse installation alone.
 
Old 02-10-2007, 11:02 AM   #7
Phrenchax
LQ Newbie
 
Registered: Jun 2006
Location: Glens Falls, NY
Distribution: Debian Etch
Posts: 19

Rep: Reputation: 0
For partitioning I would suggest gparted. You can download an iso and burn a live CD. It should be able to handle re-sizing partitions quite easily...
Good luck!
 
Old 02-11-2007, 07:46 PM   #8
cornbread
LQ Newbie
 
Registered: Jan 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Ok I tried gparted but it had an x11 failure every boot... so i used yast 2 and it worked I can't resize my smaller partition but I made a new partition and I said to mount it as /home

Now my user account won't open at all....

I get "could not start kstartupconfig" all of my user files are gone.

I tried to create a different user but same thing happens...
 
Old 02-11-2007, 09:04 PM   #9
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,577
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
If you just mounted it as home instead of doing the mv and cp steps I listed above it means you mounted the new filesystem on TOP of the existing /home.

The good news is that means you didn't lose anything.

Login as root.

Type "df -h /home" and note the device you see (e.g. /dev/hdb1) so you'll know what to mount when done.

Type "umount /home" to unmount the new filesystem.

Type "df -h /home" again to insure it now shows /home as part of / rather than a separate filesystem.

Type "mv /home /home.old"

Type "mkdir /home"

Type "mount <device> /home" where device is the the one you saw in the first df -h above.

Type "cp -pR /home.old/* /home" - This will copy all the files from your old home directory to the new one. The p flag will tell it to keep the same permissions, times, ownership and groups. The R flag is recursive.

At some point after you've verified all the files in /home are the ones that were in /home.old you can do "rm -rf /home.old". No hurry on that - just something to do to free up the space that was there.
 
  


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
Question on creating more partitions than default ones, i.e. /home,/root partitions casmac SUSE / openSUSE 1 12-20-2006 06:02 PM
[SOLVED] Synatpic Question - removal MBA Whore Linux - Software 3 08-24-2006 12:51 PM
Rearranging Partitions norain Linux - Software 3 08-02-2006 04:37 PM
Rearranging partitions ernesto_cgf Linux - Software 3 06-12-2006 01:30 PM
boot manager removal question liz242628 Linux - General 4 06-11-2002 02:38 PM


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