LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-23-2003, 12:56 PM   #1
jarod_123
LQ Newbie
 
Registered: Sep 2003
Posts: 29

Rep: Reputation: 15
Lightbulb Partitioning


I need to partition my /dev/hda. I just have one drive that has all my data in ext3. its /dev/hda2. I would like to resize it so I can have separate partitions for my /home /var, /tmp, /usr, /opt directories.

It looks like this

Device Boot Start End Blocks Id System
/dev/hda1 * 1 255 2048256 83 Linux
/dev/hda2 256 4959 37784880 83 Linux
/dev/hda3 4960 4997 305235 82 Linux swap

My question is what should I do? I am afraid that I might write over some of my data when I try to resize my /dev/hda2. because I don't where the data is written between start and end.

can anyone help me?
 
Old 09-23-2003, 03:27 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
I can't really help with regard to the actual partitioning as all of mine tends to be done prior to the install.

One thing I will say though, and back me up here, is to back up everything. That way, if it does go titsup you won't lose anything. It may even be that you'll need to do a fresh install - but that is just an opinion and has no basis in anything resembling experience or whatever.

Good luck.
 
Old 09-23-2003, 03:39 PM   #3
jarod_123
LQ Newbie
 
Registered: Sep 2003
Posts: 29

Original Poster
Rep: Reputation: 15
I agree

I do already have a back up. I'm just wondering if it was possible do partition the drive. Its already being used, so I imagine I have to use parted to resize it to make it smaller( but I don't know what sector to start at with because I don't know where the data is written to. unless there is a utility which lets me know what has data and what doesn't). then I have to fdisk whats left over for my directories that I want a partition for.

I'm curious to know if anyone has done this.
 
Old 09-23-2003, 04:17 PM   #4
codec
Member
 
Registered: Sep 2003
Location: mad.es.eu
Distribution: ubuntu 5.04 knoppix Slack91/10 freebsd51 vector4 redhat9
Posts: 304

Rep: Reputation: 30
I still donsn't know what are you going to do...... well, I remember that Mandrake 9.1 first CD has partition utility which can resize partitions. But there are some limitations. You can take a look and try.

Last edited by codec; 09-23-2003 at 04:19 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partitioning... Ophidian Slackware - Installation 2 09-04-2005 05:12 PM
Partitioning regorbro Linux - General 5 12-05-2004 02:07 PM
Partitioning Help Redwolf_Eddy Linux - Newbie 4 04-19-2004 01:55 PM
Need help with partitioning snatale1 Linux - Newbie 2 08-16-2003 02:38 PM
partitioning TravisB Linux - General 7 07-31-2002 07:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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