Find the answer to your Linux question:
Results 1 to 1 of 1
My second attempt. I created a partition again using cfdisk /dev/sda7 and have created a filesystem on the same using mke2fs -jv /dev/sda7 I realized that after making the file ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Posts
    1,272

    Setting Up LFS Erases Another Partition


    My second attempt.

    I created a partition again using cfdisk /dev/sda7 and have created a filesystem on the same using mke2fs -jv /dev/sda7

    I realized that after making the file system, the partition beside it was also formatted and it erased /dev/sda8

    This happened to me the first time I tried althought the difference is I am able to locate where the problem happens.

    cfdisk.jpg

    Code:
    jun@jun:/media/LFS/tools$ df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda4              80G   70G  5.7G  93% /
    udev                  1.5G  4.0K  1.5G   1% /dev
    tmpfs                 579M  848K  578M   1% /run
    none                  5.0M     0  5.0M   0% /run/lock
    none                  1.5G  128K  1.5G   1% /run/shm
    /dev/sda2              30G   14G   15G  48% /media/Storage (C)
    /dev/sda5              58G   24G   32G  43% /media/Storage (B)
    /dev/sda7             9.0G  149M  8.4G   2% /media/LFS
    /dev/sda8              21G  173M   20G   1% /media/36dcc83a-9e24-472b-b444-8f91ab2689e4
    jun@jun:/media/LFS/tools$
    
    jun@jun:~$ sudo fdisk -l
    
    Disk /dev/sda: 250.1 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0002443f
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *          63    61432559    30716248+   7  HPFS/NTFS/exFAT
    /dev/sda2        61433856   124614655    31590400   83  Linux
    /dev/sda3       294134146   488390655    97128255    5  Extended
    /dev/sda4       124614656   294133759    84759552   83  Linux
    /dev/sda5       294134148   417650687    61758270   83  Linux
    /dev/sda6       481994752   488390655     3197952   82  Linux swap / Solaris
    /dev/sda7       417650751   438365654    10357452   83  Linux
    /dev/sda8       438370304   481992703    21811200   83  Linux
    
    Partition table entries are not in disk order
    jun@jun:~$
    Aside from what outputs I have posted, is there anything else I need to post so as to help me understand what's happening?

    Thank you very much!

    regards,

    nujinini
    Last edited by nujinini; 06-26-2012 at 11:34 PM. Reason: Updated output
    nujinini
    Linux User #489667

Posting Permissions

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