disk partition help - Help

This is a discussion on disk partition help - Help ; I installed debian woody over mandrake 9.1, I have a 40GB hard drive but df -ah shows: Filesystem Size Used Avail Use% Mounted on /dev/hda1 3.4G 2.9G 320M 91% / proc 0 0 0 - /proc devpts 0 0 0 ...

+ Reply to Thread
Results 1 to 12 of 12

Thread: disk partition help

  1. disk partition help

    I installed debian woody over mandrake 9.1, I have a 40GB hard drive but
    df -ah shows:

    Filesystem Size Used Avail Use% Mounted on
    /dev/hda1 3.4G 2.9G 320M 91% /
    proc 0 0 0 - /proc
    devpts 0 0 0 - /dev/pts
    usbdevfs 0 0 0 - /proc/bus/usb


    gpart -v -v /dev/hda shows:


    dev(/dev/hda) mss(512) chs(4865/255/63)(LBA) #s(78156225) size(38162mb)
    Primary partition(1)
    type: 131(0x83)(Linux ext2 filesystem)
    size: 3498mb #s(7164920) s(63-7164982)
    chs: (0/1/1)-(445/254/56)d (0/1/1)-(445/254/56)r
    hex: 00 01 01 00 83 FE 78 BD 3F 00 00 00 F8 53 6D 00

    Primary partition(2)
    type: 131(0x83)(Linux ext2 filesystem) (BOOT)
    size: 34663mb #s(70991235) s(7164990-78156224)
    chs: (446/0/1)-(1023/254/63)d (446/0/1)-(4864/254/63)r
    hex: 80 00 41 BE 83 FE FF FF 3E 54 6D 00 83 3D 3B 04

    Primary partition(3)
    type: 000(0x00)(unused)
    size: 0mb #s(0) s(0-0)
    chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
    hex: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    Primary partition(4)
    type: 000(0x00)(unused)
    size: 0mb #s(0) s(0-0)
    chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
    hex: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


    Begin scan...
    Possible partition(Linux ext2), size(3498mb), offset(0mb)
    type: 131(0x83)(Linux ext2 filesystem)
    size: 3498mb #s(7164920) s(63-7164982)
    chs: (0/1/1)-(445/254/56)d (0/1/1)-(445/254/56)r
    hex: 00 01 01 00 83 FE 78 BD 3F 00 00 00 F8 53 6D 00

    Possible extended partition at offset(3498mb)
    Possible partition(Linux swap), size(243mb), offset(3498mb)
    type: 130(0x82)(Linux swap or Solaris/x86)
    size: 243mb #s(497952) s(7165053-7663004)
    chs: (446/1/1)-(476/254/63)d (446/1/1)-(476/254/63)r
    hex: 00 01 41 BE 82 FE 7F DC 7D 54 6D 00 20 99 07 00

    Possible partition(Linux ext2), size(34420mb), offset(3741mb)
    type: 131(0x83)(Linux ext2 filesystem)
    size: 34420mb #s(70493152) s(7663068-78156219)
    chs: (477/1/1)-(1023/254/63)d (477/1/1)-(4864/254/58)r
    hex: 00 01 41 DD 83 FE FF FF DC ED 74 00 E0 A3 33 04

    End scan.

    Checking partitions...
    Partition(Linux ext2 filesystem): primary
    type: 131(0x83)(Linux ext2 filesystem)
    size: 3498mb #s(7164920) s(63-7164982)
    chs: (0/1/1)-(445/254/56)d (0/1/1)-(445/254/56)r
    hex: 00 01 01 00 83 FE 78 BD 3F 00 00 00 F8 53 6D 00

    Partition(Linux swap or Solaris/x86): logical
    type: 130(0x82)(Linux swap or Solaris/x86)
    size: 243mb #s(497952) s(7165053-7663004)
    chs: (446/1/1)-(476/254/63)d (446/1/1)-(476/254/63)r
    hex: 00 01 41 BE 82 FE 7F DC 7D 54 6D 00 20 99 07 00

    Partition(Linux ext2 filesystem): logical
    type: 131(0x83)(Linux ext2 filesystem)
    size: 34420mb #s(70493152) s(7663068-78156219)
    chs: (477/1/1)-(1023/254/63)d (477/1/1)-(4864/254/58)r
    hex: 00 01 41 DD 83 FE FF FF DC ED 74 00 E0 A3 33 04

    Ok.

    Guessed primary partition table:
    Primary partition(1)
    type: 131(0x83)(Linux ext2 filesystem)
    size: 3498mb #s(7164920) s(63-7164982)
    chs: (0/1/1)-(445/254/56)d (0/1/1)-(445/254/56)r
    hex: 00 01 01 00 83 FE 78 BD 3F 00 00 00 F8 53 6D 00

    Primary partition(2)
    type: 015(0x0F)(Extended DOS, LBA)
    size: 34663mb #s(70991235) s(7164990-78156224)
    chs: (446/0/1)-(1023/254/63)d (446/0/1)-(4864/254/63)r
    hex: 00 00 41 BE 0F FE FF FF 3E 54 6D 00 83 3D 3B 04

    Primary partition(3)
    type: 000(0x00)(unused)
    size: 0mb #s(0) s(0-0)
    chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
    hex: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    Primary partition(4)
    type: 000(0x00)(unused)
    size: 0mb #s(0) s(0-0)
    chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r
    hex: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00






    Well I know that dos was never on this disk.
    so I change that and write the partition table to disk:




    gpart -W /dev/hda /dev/hda

    Begin scan...
    Possible partition(Linux ext2), size(3498mb), offset(0mb)
    Possible extended partition at offset(3498mb)
    Possible partition(Linux swap), size(243mb), offset(3498mb)
    Possible partition(Linux ext2), size(34420mb), offset(3741mb)
    End scan.

    Checking partitions...
    Partition(Linux ext2 filesystem): primary
    Partition(Linux swap or Solaris/x86): logical
    Partition(Linux ext2 filesystem): logical
    Ok.

    Guessed primary partition table:
    Primary partition(1)
    type: 131(0x83)(Linux ext2 filesystem)
    size: 3498mb #s(7164920) s(63-7164982)
    chs: (0/1/1)-(445/254/56)d (0/1/1)-(445/254/56)r

    Primary partition(2)
    type: 015(0x0F)(Extended DOS, LBA)
    size: 34663mb #s(70991235) s(7164990-78156224)
    chs: (446/0/1)-(1023/254/63)d (446/0/1)-(4864/254/63)r

    Primary partition(3)
    type: 000(0x00)(unused)
    size: 0mb #s(0) s(0-0)
    chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

    Primary partition(4)
    type: 000(0x00)(unused)
    size: 0mb #s(0) s(0-0)
    chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

    Edit this table (y,n) : y

    Edit which partition (1..4, q to quit) : 2

    Warning: entered values will not be checked; enter at your own risk!
    1 - Absolute start sector ( 7164990)
    2 - Absolute sector count ( 70991235)
    3 - Partition type ( 15)(Extended DOS, LBA)

    Edit which value (1..3, q to quit) : 3
    Enter value for 3 : 131

    Warning: entered values will not be checked; enter at your own risk!
    1 - Absolute start sector ( 7164990)
    2 - Absolute sector count ( 70991235)
    3 - Partition type ( 131)(Linux ext2 filesystem)

    Edit which value (1..3, q to quit) : q
    Primary partition(1)
    type: 131(0x83)(Linux ext2 filesystem)
    size: 3498mb #s(7164920) s(63-7164982)
    chs: (0/1/1)-(445/254/56)d (0/1/1)-(445/254/56)r

    Primary partition(2)
    type: 131(0x83)(Linux ext2 filesystem)
    size: 34663mb #s(70991235) s(7164990-78156224)
    chs: (446/0/1)-(1023/254/63)d (446/0/1)-(4864/254/63)r

    Primary partition(3)
    type: 000(0x00)(unused)
    size: 0mb #s(0) s(0-0)
    chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

    Primary partition(4)
    type: 000(0x00)(unused)
    size: 0mb #s(0) s(0-0)
    chs: (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

    Edit which partition (1..4, q to quit) :
    Activate which partition (1..4, q to quit) : 2
    Write this partition table (y,n) : y


    ** Error: rereading partition table: Device or resource busy.

    * Warning: partition table written, you should reboot now.

    rebooting changes nothing. The partition is still lost.
    hell I'm lost. Any Ideas?

    Joe







  2. Re: disk partition help

    "joemansh(USENEWS)+\"NOSPAM\"" <"joemansh(USENEWS)+\"NOSPAM\""@interl.net> wrote in message news:<3fb06801_2@newsfeed.slurp.net>...
    > I installed debian woody over mandrake 9.1, I have a 40GB hard drive but
    > [snip]


    Well, one idea would be to try another disk partition tool. I like cfdisk myself.

  3. Re: disk partition help

    On Tue, 11 Nov 2003 23:37:19 -0600, "joemansh(USENEWS)+\"NOSPAM\"" <"joemansh(USENEWS)+\"NOSPAM\""@interl.net> wrote:

    > rebooting changes nothing. The partition is still lost.
    > hell I'm lost. Any Ideas


    .... i'm lost too ... what are you trying to do?
    ..
    --
    /// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
    \\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
    If clear thinking created sparks, we could safely store
    dynamite in James Watt's office. - Wayne Shannon, KRON-TV

  4. Re: disk partition help

    mjt wrote:
    > On Tue, 11 Nov 2003 23:37:19 -0600, "joemansh(USENEWS)+\"NOSPAM\""
    > <"joemansh(USENEWS)+\"NOSPAM\""@interl.net> wrote:
    >
    >
    >> rebooting changes nothing. The partition is still lost. hell I'm
    >> lost. Any Ideas

    >
    >
    > ... i'm lost too ... what are you trying to do? .

    I'm trying to recover my lost disk space. I can only access 3GB of 30GB.
    My first partition is 91% filled.

    I tried cfdisk today:

    cfdisk 2.11n

    Disk Drive: /dev/hda
    Size: 40020664320 bytes
    Heads: 255 Sectors per Track: 63 Cylinders: 4865

    Name Flags Part Type FS Type [Label] Size (MB)
    -----------------------------------------------------------------------------
    hda1 Primary Linux ext2
    3668.48*
    Pri/Log Free Space 0.01*
    hda2 Boot Primary Linux 36347.52








    [Bootable] [ Delete ] [ Help ] [Maximize] [ Print ]
    [ Quit ] [ Type ] [ Units ] [ Write ]

    It shows a hda2 with 36GB but the curser keys don't work.
    It also shows hda2 as bootable and hda1 as not yet I boot from hda1.

    Joe


  5. Re: disk partition help

    On Wed, 12 Nov 2003 20:06:10 -0600, "joemansh(USENEWS)+\"NOSPAM\"" <"joemansh(USENEWS)+\"NOSPAM\""@interl.net> wrote:

    > It shows a hda2 with 36GB but the curser keys don't work.
    > It also shows hda2 as bootable and hda1 as not yet I boot from hda1


    .... so, why dont you just mount the partition? you never
    said whether you tried that? what are the results when
    you try to mount it?
    # mkdir /mnt/mand
    # mount /dev/hda2 /mnt/mand
    ..
    --
    /// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
    \\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
    Everyone talks about apathy, but no one does anything about it.

  6. Re: disk partition help

    mjt wrote:
    >
    > ... so, why dont you just mount the partition? you never
    > said whether you tried that? what are the results when
    > you try to mount it?
    > # mkdir /mnt/mand
    > # mount /dev/hda2 /mnt/mand
    > .


    mount -t ext2 /dev/hda2 /mnt/mand
    mount: wrong fs type, bad option, bad superblock on /dev/hda2,
    or too many mounted file systems


    also I've tried:
    fdisk /dev/hda

    The number of cylinders for this disk is set to 4865.
    There is nothing wrong with that, but this is larger than 1024,
    and could in certain setups cause problems with:
    1) software that runs at boot time (e.g., old versions of LILO)
    2) booting and partitioning software from other OSs
    (e.g., DOS FDISK, OS/2 FDISK)


    p

    Disk /dev/hda: 255 heads, 63 sectors, 4865 cylinders
    Units = cylinders of 16065 * 512 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 1 446 3582460 83 Linux
    Partition 1 does not end on cylinder boundary:
    phys=(445, 254, 56) should be (445, 254, 63)
    /dev/hda2 * 447 4865 35495617+ 83 Linux

    v
    Partition 1 does not end on cylinder boundary:
    phys=(445, 254, 56) should be (445, 254, 63)
    69 unallocated sectors


    parted
    GNU Parted 1.4.24
    Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
    This program is free software, covered by the GNU General Public License.

    This program is distributed in the hope that it will be useful, but WITHOUT ANY
    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    PARTICULAR PURPOSE. See the GNU General Public License for more details.

    Using /dev/hda
    Warning: Unable to align partition properly. This probably means that another
    partitioning tool generated an incorrect partition table, because it didn't have
    the correct BIOS geometry. It is safe to ignore,but ignoring may cause
    (fixable) problems with some boot loaders.
    Ignore Cancel ? i
    (parted) print
    Disk geometry for /dev/hda: 0.000-38166.679 megabytes
    Disk label type: msdos
    Minor Start End Type Filesystem Flags
    1 0.031 3498.526 primary ext2
    2 3498.530 38162.219 primary boot

    so parted doesn't even know what the file system is.

    if I can't find a way to fix this then I'm going to delete the hda2 partition
    this weekend and replace it. (though I'd like to recover my lost files)

    Joe


  7. Re: disk partition help

    "joemansh(USENEWS)+\"NOSPAM\"" <"joemansh(USENEWS)+\"NOSPAM\""@interl.net> wrote in message news:<3fb2cdda_3@newsfeed.slurp.net>...
    > mjt wrote:
    > >
    > > ... so, why dont you just mount the partition? you never
    > > said whether you tried that? what are the results when
    > > you try to mount it?
    > > # mkdir /mnt/mand
    > > # mount /dev/hda2 /mnt/mand
    > > .

    >
    > mount -t ext2 /dev/hda2 /mnt/mand
    > mount: wrong fs type, bad option, bad superblock on /dev/hda2,
    > or too many mounted file systems
    >
    >
    > also I've tried:
    > fdisk /dev/hda
    >
    > The number of cylinders for this disk is set to 4865.
    > There is nothing wrong with that, but this is larger than 1024,
    > and could in certain setups cause problems with:
    > 1) software that runs at boot time (e.g., old versions of LILO)
    > 2) booting and partitioning software from other OSs
    > (e.g., DOS FDISK, OS/2 FDISK)
    >
    >
    > p
    >
    > Disk /dev/hda: 255 heads, 63 sectors, 4865 cylinders
    > Units = cylinders of 16065 * 512 bytes
    >
    > Device Boot Start End Blocks Id System
    > /dev/hda1 1 446 3582460 83 Linux
    > Partition 1 does not end on cylinder boundary:
    > phys=(445, 254, 56) should be (445, 254, 63)
    > /dev/hda2 * 447 4865 35495617+ 83 Linux
    >
    > v
    > Partition 1 does not end on cylinder boundary:
    > phys=(445, 254, 56) should be (445, 254, 63)
    > 69 unallocated sectors
    >
    >
    > parted
    > GNU Parted 1.4.24
    > Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
    > This program is free software, covered by the GNU General Public License.
    >
    > This program is distributed in the hope that it will be useful, but WITHOUT ANY
    > WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    > PARTICULAR PURPOSE. See the GNU General Public License for more details.
    >
    > Using /dev/hda
    > Warning: Unable to align partition properly. This probably means that another
    > partitioning tool generated an incorrect partition table, because it didn't have
    > the correct BIOS geometry. It is safe to ignore,but ignoring may cause
    > (fixable) problems with some boot loaders.
    > Ignore Cancel ? i
    > (parted) print
    > Disk geometry for /dev/hda: 0.000-38166.679 megabytes
    > Disk label type: msdos
    > Minor Start End Type Filesystem Flags
    > 1 0.031 3498.526 primary ext2
    > 2 3498.530 38162.219 primary boot
    >
    > so parted doesn't even know what the file system is.
    >
    > if I can't find a way to fix this then I'm going to delete the hda2 partition
    > this weekend and replace it. (though I'd like to recover my lost files)
    >
    > Joe


    It the filesystem hasn't been created, then it won't show.

    What happens if you use mkfs to make an ext2 filesystem on that partition?

  8. Re: disk partition help

    On 14 Nov 2003 07:10:04 -0800, comeand@kissmyfatarse.com (Mattias Honrendgard) wrote:

    > It the filesystem hasn't been created, then it won't show


    ....the orig post shows it to be an ext2
    ..
    --
    /// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
    \\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
    "The climate of Bombay is such that its inhabitants have to live
    elsewhere."

  9. Re: disk partition help

    Hi, It's easy, visit http://www.ptdd.com and download Partition Table
    Doctor to help you

  10. Re: disk partition help

    Mattias Honrendgard wrote:
    >
    > What happens if you use mkfs to make an ext2 filesystem on that partition?




    (parted) mkfs 2 ext2

    q

    mount -t ext2 /dev/hda2 /mnt/mand

    df -ah
    Filesystem Size Used Avail Use% Mounted on
    /dev/hda1 3.4G 2.9G 355M 90% /
    proc 0 0 0 - /proc
    devpts 0 0 0 - /dev/pts
    usbdevfs 0 0 0 - /proc/bus/usb
    /dev/hda2 33G 52k 31G 1% /mnt/mand

    cd /mnt/mand

    ls
    lost+found

    Thanks,
    good news; the partition is accessible.
    bad news; it's empty.


    Joe


    PS, will I have to remount this partition every time I reboot?


  11. Re: disk partition help

    owlbird wrote:
    > Hi, It's easy, visit http://www.ptdd.com and download Partition Table
    > Doctor to help you


    I bet you don't subscribe to this group. I bet you don't even know what
    linux is. I bet your a software salesman, and you search google for
    recent USEnews postings that might be relevant then reply.

    and I bit.


  12. Re: disk partition help

    On 16 Nov 2003 01:38:39 -0800, support@ptdd.com (owlbird) wrote:

    > Hi, It's easy, visit http://www.ptdd.com and download Partition Table


    .... hope the product works better than the website
    ..
    --
    /// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
    \\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
    The scum also rises. - Dr. Hunter S. Thompson

+ Reply to Thread