Results 1 to 7 of 7
this what I ran
dd if=/dev/hda3 of=/dev/hda1 ; fdisk e2fsck -f /dev/hda1 resice2fs /dev/hda1
and this was the result
result was thisoot@ubuntu:~# dd if=/dev/hda3 of=/dev/hda1 ; fdisk
e2fsck -f /dev/hda1 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-31-2006 #1Just Joined!
- Join Date
- Mar 2006
- Posts
- 6
incorrect line at at command line for partition
this what I ran
dd if=/dev/hda3 of=/dev/hda1 ; fdisk e2fsck -f /dev/hda1 resice2fs /dev/hda1
and this was the result
result was thisoot@ubuntu:~# dd if=/dev/hda3 of=/dev/hda1 ; fdisk
e2fsck -f /dev/hda1 resice2fs /dev/hda1
31599855+0 records in
31599855+0 records out
16179125760 bytes transferred in 1992.444252 seconds
(8120240 bytes/sec)
fdisk: invalid option -- f
Usage: fdisk [-b SSZ] [-u] DISK Change partition
table
fdisk -l [-b SSZ] [-u] DISK List partition
table(s)
fdisk -s PARTITION Give partition
size(s) in blocks
fdisk -v Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder)
units
-b 2048: (for certain MO disks) use 2048-byte sectors
root@ubuntu:~#
please help with correct line
thanks
alex
- 03-31-2006 #2
are you just trying to partition?
if so
then to create filesystemsCode:fdisk /dev/hda?
Code:Filesystem Creation Command ext2 mke2fs ext3 mke2fs -j reiserfs mkreiserfs xfs mkfs.xfs jfs mkfs.jfs
All right, brain. You don't like me and I don't like you, but let's just do this and I can get back to killing you with beer. All New Users Read This!!! If you have a grub problem please look at GRUB MANUAL
- 03-31-2006 #3Just Joined!
- Join Date
- Mar 2006
- Posts
- 6
partition
i am resieing hda3 so takes the whole hard drive
I am sorrey but I do not understand your post fully I was hopeing just to correct the line at command prompt?
alex
- 03-31-2006 #4Just Joined!
- Join Date
- Mar 2006
- Posts
- 6
lets keep it simple
I want to resize hda3 so it fills the whole disk
seems I did it wrong first time
here is disk layout PLEASE keep it simple just a few lines will be ok
isk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 2690 21607393+ 83 Linux
/dev/hda2 2691 2809 955867+ 82 Linux swap / Solaris
/dev/hda3 2810 4776 15799927+ 83 Linux
/dev/hda4 4777 4864 706860 5 Extended
/dev/hda5 4777 4864 706828+ 82 Linux swap / Solaris
- 03-31-2006 #5
To my knowledge, fdisk can not resize partitions.
you have to delete the partitions, then make one large partition.
Qtparted can resize partitions without destroying the data on the partition.
Access qtparted from a livecd such as Knoppix or Mepis.How to know if you are a geek.
when you respond to "get a life!" with "what's the URL?"
- Birger
New users read The FAQ
- 03-31-2006 #6Just Joined!
- Join Date
- Mar 2006
- Posts
- 6
partition
thanks for info on qtparted.
what do I delete firdt then how to resize please.
alex
- 04-01-2006 #7
Assuming this is your partition lineup, taken from your other thread.
Delete the logical partition inside the extended partition, if there is one.Code:isk /dev/hda: 40.0 GB, 40007761920 bytes 255 heads, 63 sectors/track, 4864 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda3 2810 4776 15799927+ 83 Linux /dev/hda4 4777 4864 706860 5 Extended
Delete the extended partition /dev/hda4
Delete hda3, then hda1How to know if you are a geek.
when you respond to "get a life!" with "what's the URL?"
- Birger
New users read The FAQ


Reply With Quote
