Find the answer to your Linux question:
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.
  1. #1
    Just 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

  2. #2
    Linux Engineer spencerf's Avatar
    Join Date
    Jan 2005
    Location
    Syracuse, NY
    Posts
    1,144

    Thumbs up

    are you just trying to partition?

    if so

    Code:
    fdisk /dev/hda?
    then to create filesystems
    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

  3. #3
    Just 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

  4. $spacer_open
    $spacer_close
  5. #4
    Just 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

  6. #5
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    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

  7. #6
    Just Joined!
    Join Date
    Mar 2006
    Posts
    6

    partition

    thanks for info on qtparted.
    what do I delete firdt then how to resize please.

    alex

  8. #7
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    Assuming this is your partition lineup, taken from your other thread.
    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 logical partition inside the extended partition, if there is one.
    Delete the extended partition /dev/hda4
    Delete hda3, then hda1
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •