LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-11-2004, 10:25 AM   #1
fractal_chaos
Member
 
Registered: Aug 2003
Location: long island, ny
Distribution: RH, SuSE, FC
Posts: 59

Rep: Reputation: 15
Question re-partitioning a logical partition


i want to re-partition a logical partition into two smaller logical partitions. here is my current partition table:

<snip>
# /sbin/fdisk -l

Disk /dev/sda: 1254.9 GB, 1254995722240 bytes
255 heads, 63 sectors/track, 152577 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 10 80293+ 83 Linux
/dev/sda2 11 760 6024375 83 Linux
/dev/sda3 761 1015 2048287+ 82 Linux swap
/dev/sda4 1016 152577 1217421765 5 Extended
/dev/sda5 1016 127449 1015581073+ 83 Linux
/dev/sda6 127450 152449 200812468+ 83 Linux
/dev/sda7 152450 152577 1028128+ 83 Linux

Disk /dev/sdb: 1254.9 GB, 1254995722240 bytes
255 heads, 63 sectors/track, 152577 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 152577 1225574721 83 Linux
</snip>

<snip>
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 5.7G 4.7G 707M 88% /
/dev/sda1 76M 36M 37M 50% /boot
/dev/sda5 954G 33M 905G 1% /data1
/dev/sdb1 1.2T 4.6G 1.1T 1% /data2
/dev/sda6 189G 34M 179G 1% /home
none 1009M 0 1009M 0% /dev/shm
/dev/sda7 989M 289M 650M 31% /var
</snip>

i want to divide /dev/sda6 (/home) into two smaller partitions.

i used fdisk to delete /dev/sda6. when i did this, /dev/sda7 became /dev/sda6 and the two new paritions i made were /dev/sda7 and /dev/sda8. i then updated my fstab to relfect these parition changes. when i reboot, there are fsck crashes and i am exited into Ctrl-D filesystem check mode. i have recently used fdisk and changed the partitions back to the way they were (see above) and replaced fstab with the orignal configuration. things are back to normal, but i still want to repartition /dev/sda6 into two smaller logical drives.

what is the best way to do this? did i miss something?

THANKS in advance
 
Old 02-12-2004, 11:08 AM   #2
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Sounds like you created partitions but didn't format them, and then tried to mount them.

Create the partitions, then use:
mke2fs -j /dev/sda7
mke2fs -j /dev/sda8

to create ext3 filesystems on each drive. omit the -j to get ext2 systems. Then modify fstab and it should be peachy.

--Rounan
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Primary or Logical partition ? infernal Linux - Software 7 10-28-2015 09:50 AM
Linux on a logical partition? raid517 Linux - Hardware 7 09-26-2003 07:37 AM
Mounting a logical partition... J_Bone Linux - Newbie 11 08-17-2003 07:35 PM
Partitioning - Primary and Logical partitions quietguy47 Linux - General 2 07-06-2003 10:32 AM
Mount logical partition Rex_chaos Linux - General 3 03-13-2002 02:21 PM

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

All times are GMT -5. The time now is 03:12 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
Open Source Consulting | Domain Registration