LinuxQuestions.org
Visit Jeremy's Blog.
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 11-24-2004, 03:06 PM   #1
Edaph
LQ Newbie
 
Registered: May 2004
Posts: 6

Rep: Reputation: 0
Advanced(?) disk partitioning


Note: The same post has been posted on Gentoo Forums few days back.

Is it possible to split one primary partition in two (or more) partitions, without destroying the data on the entire hd? What I'd like to do is split the root (/dev/hda1) partition in two and have a separate /boot partition. All the data on /home (/dev/hda3) and /stuff (/dev/hda5) should be left intact, but the contents of the root (and swap) partition are useless so destroying them won't do any harm. /home I guess should be moved on the extended partition... Can this be achieved by merely modifying the partition table, or would it require moving the data around as well?

Here's my current partitioning scheme (all filesystems are reiserfs):

Code:
Disk /dev/hda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        2490    20000893+  83  Linux
/dev/hda2            2491        2552      498015   82  Linux swap
/dev/hda3            2553        5043    20008957+  83  Linux
/dev/hda4            5044       30515   204603840    5  Extended
/dev/hda5            5044       30515   204603808+  83  Linux

Mount points:
/dev/hda1    /
/dev/hda2   swap
/dev/hda3   /home
/dev/hda5   /stuff
 
Old 11-29-2004, 01:40 PM   #2
lopette
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Debian
Posts: 66

Rep: Reputation: 15
not too hard :-)

run fdisk /dev/hda, and remove hda1.

then create your boot partition, as /dev/hda1, as small as you'd like it to be (25MB maybe?)

create another partition (will have to be a secondary), which will be called /dev/hda6. use it as your root partition

press "w" and [enter] to save and exit, that's it
 
  


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
disk re-partitioning..... yanger Linux - General 2 08-29-2005 11:21 PM
Hard disk partitioning Michael Davont Fedora - Installation 3 01-15-2005 09:26 AM
Disk partitioning sveint AIX 6 05-08-2004 04:01 PM
disk partitioning gamenutt Linux - General 1 03-11-2002 04:28 AM
Disk Partitioning hank@$3800 Linux - General 2 12-31-2001 08:54 AM


All times are GMT -5. The time now is 11:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration