Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I am just starting off my exploration of linux but have already gotten myself confused. I am trying to merge 2 existing partitions (on the same HDD) into one ...
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    3

    [SOLVED] understanding fdisk

    Hi,
    I am just starting off my exploration of linux but have already gotten myself confused. I am trying to merge 2 existing partitions (on the same HDD) into one partition. I thought that df -h was supposed to show the available disks but it shows 2 eventhough I only have one HDD.

    Filesystem size Used Available Use% Mounted on
    /dev/root 3.0M 3.0M 0 100% /
    /dev/discs/disc0/part1 26.9G 128.2M 25.4G 0% /tmp/mnt/disc0_1
    /dev/discs/disc0/part2 26.9G 5.7G 19.8G 22% /tmp/mnt/disc0_2



    both of the /dev/discs/disc0 are the same hdd but they are listed here as 2 diferent drives... fdisk, which i think shows partitions shows the 2 different partions...


    fdisk -l
    Device Boot Start End Blocks Id System
    /dev/ide/host0/bus0/target0/lun0/part1 1 3570 28675993+ 83 Linux
    /dev/ide/host0/bus0/target0/lun0/part2 3571 7140 28676025 83 Linux

    Basically what is going on here? How can i delete the 2 partitions on the same /dev/ide/host0.... into one partition since the system seems to think its 2 differnt drives?
    Thanks in advance guys

  2. #2
    Just Joined!
    Join Date
    Apr 2009
    Posts
    3
    Ok so i managed to remove the 2 partitions and create 1 merged partition listed as /dev/ide/host0/bus0/target0/lun0/part1 . I also run umount to remove the 2 mounts but when i try to mount the single partition it doesnt seem to work.. i run mount /dev/ide/host0/bus0/target0/lun0/part1 /tmp/mnt/disc but then when i run df, it doesnt show up (only the inbuilt root dir).. what am i doing wrong conceptually.. I think my problem might just be not understanding correctly what is going on...
    mount /dev/ide/host0/bus0/target0/lun0/part1 /tmp/mnt/disc
    give
    Mountng ...... failed : Invalid argument..
    What argument am i forgetting? I thought that no no options on mount command should work fine?? Am I supposed to set a filesystem on it or something?

  3. #3
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    Hello and welcome,
    Did you forget to format the new partition before trying to mount it?
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  4. #4
    Just Joined!
    Join Date
    Apr 2009
    Posts
    3
    I thought i had but maybe i was trying to format the wrong thing or it didnt complete properly because i reformatted using mkfs.ext3 and remounted and it worked!! I feel stupid for having such a simple mistake that i thought i had covered already! Thanks Mike!

Posting Permissions

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