Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: gpart help?

  1. #1
    Junior Member registered user
    Join Date
    Apr 2005
    Posts
    23

    gpart help?

    I am attempting to run gpart via Knoppix 3.7 and honestly have no idea what I am actually doing.

    I have gone to the RUN COMMAND line and said gpart -c /dev/hda1, but this just opens up a Terminal window that is blank and says FINISHED at the top. Doesn't seem like it is doing anything.

    I have 1 80gb hard drive that has a C and D drive on it (2 partitions I guess)....is there a gpart tutorial anywhere? Or can anyone lend some gpart knowledge? I have looked through the man gpart, but hasn't really enlightened me as of yet

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    We really need to know what you're trying to do with gpart.

    For example, since you use gpart in order to check a partition table (and re-write it),

    gpart /dev/hda

    would seem a better choice.

    http://www.stud.uni-hannover.de/user/76201/gpart/

    has the author's description, but, essentially, you run gpart /dev/hda to check the partitions. If the check is consistent, use gpart gpart -W /dev/hda /dev/hda

  3. #3
    Junior Member registered user
    Join Date
    Apr 2005
    Posts
    23
    thanks for the reply....i apologize for the double post....

    I have a hard drive that seems to have been wiped out or crashed....when I boot it up, all I get is OPERATING SYSTEM NOT FOUND. More than anything, I am just trying to recover the data that is on the hard drive, and then probably replace the hard drive. Harry Kuhman suggested that I run gpart to see if we can recover the partition table, since when I boot up Knoppix, it doesn't seem to be picking up my hard drive.

    I just tried gpart /dev/hda

    and I get:

    *** Fatal error: open(/dev/hda): Permission denied.

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    Try

    sudo gpart /dev/hda

  5. #5
    Junior Member registered user
    Join Date
    Apr 2005
    Posts
    23
    When I run that WITHOUT clicking the Terminal Window option, it does nothing. When I do check that option, I get:

    *** Fatal error: open(/dev/hda): No such device or address.

  6. #6
    Junior Member registered user
    Join Date
    Apr 2005
    Posts
    23
    Also, if I run....

    sudo gpart /dev/hdc (which I tried since it was the C drive?), I get:

    *** Fatal error: cannot get sector size on dev(/dev/hdc).

  7. #7
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Quote Originally Posted by OpenIntro
    Also, if I run.... sudo gpart /dev/hdc (which I tried since it was the C drive?)....
    No, it's not the C drive. It's not even the C drive under XP. it's both C and D Partitions under XP, but that's not the same as saying which drive it is (I have D F and G partitions on my second drive, for example) It's the first drive, and Linux refers to the first drive on a normal IDE interface as hda. It refers to the partitions on hda as hda1, hda2, hda5 (the first logical partition in an extended partition) and so on. So what you want to be scanning with gpart is hda. If you can't run gpart against it you might want to consider the chance that the drive just isn't working. But I would test that theory with some software other than Knoppix before I sent the hard drive to someone and told them to overcharge me to extract data from it. You might even want to run gpart on another computer to see how it normally works.

  8. #8
    Junior Member registered user
    Join Date
    Apr 2005
    Posts
    23
    So it's not that I'm doing something wrong with what I am typing? Or do I have to set something up first? The first time, I got permission denied. I have listened when I power up and it sounds like the disks are spinning normally....

  9. #9
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Quote Originally Posted by OpenIntro
    So it's not that I'm doing something wrong with what I am typing? Or do I have to set something up first? The first time, I got permission denied. I have listened when I power up and it sounds like the disks are spinning normally....
    I don't know what's happening for you. The very first time I actually ran gpart was just now, I opened a shell and typed:
    sudo gpart /dev/hda
    and it made a correct evaluation of a hard disk I have as the first disk on my primary IDE controler. It also was able to do the same with a hard disk that I have as the secondary on my second IDE controler with sudo gpart /dev/hdd. It is also very handy to do a sudo gpart -v /dev/hda, which will dump out what is in the current partition table. This may go a long way in helping understand what happened.

  10. #10
    Junior Member registered user
    Join Date
    Apr 2005
    Posts
    23
    still says....

    *** Fatal error: open(/dev/hda): No such device or address.

    crapppppppppppppppppppppppppppppppppppppppppppppp. ...

Page 1 of 2 12 LastLast

Similar Threads

  1. Attempting to save files from HD, but gpart not reading HD
    By bunkeroo26 in forum MS Windows & New to Linux
    Replies: 2
    Last Post: 06-04-2007, 11:54 AM
  2. gpart utility: Can't access USB Hard Drive
    By ktas in forum Hardware & Booting
    Replies: 12
    Last Post: 09-08-2005, 12:01 AM
  3. Trying to fixi FAT32 drive with gpart
    By Albretch in forum Hardware & Booting
    Replies: 0
    Last Post: 12-23-2004, 10:49 AM
  4. I need help using gpart
    By Baraboo in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 07-09-2004, 02:06 PM
  5. messed up partitiontable -help with gpart
    By jackren in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 05-21-2004, 12:21 PM

Posting Permissions

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


Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit picture

Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit

$99.99



Crucial Ballistix Max RGB 32GB (2x16GB) RAM DDR4 4400MHz BLM2K16G44C19U4BL Mint picture

Crucial Ballistix Max RGB 32GB (2x16GB) RAM DDR4 4400MHz BLM2K16G44C19U4BL Mint

$249.00



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$21.68



Kingston FURY Beast 64GB (2x32GB) DDR4-3200 DIMM 288-Pin Non-ECC KF432C16BBK2/64 picture

Kingston FURY Beast 64GB (2x32GB) DDR4-3200 DIMM 288-Pin Non-ECC KF432C16BBK2/64

$370.00



RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED picture

RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED

$445.00



Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC picture

Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC

$29.99



Samsung 8GB DDR4 SO-DIMM PC4-3200AA 260-Pin RAM M471A1G44BB0-CWE Module picture

Samsung 8GB DDR4 SO-DIMM PC4-3200AA 260-Pin RAM M471A1G44BB0-CWE Module

$29.25



DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix picture

DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix

$30.00



Corsair Vengeance RGB Pro 32GB (2x16GB) DDR4-3600 PC4-28800 DIMM C18 picture

Corsair Vengeance RGB Pro 32GB (2x16GB) DDR4-3600 PC4-28800 DIMM C18

$135.00



(Lot Of 10)  8GB DDR4 RAM 1Rx8 SODIMM Laptop Memory Mix Speed Mix Brand picture

(Lot Of 10) 8GB DDR4 RAM 1Rx8 SODIMM Laptop Memory Mix Speed Mix Brand

$299.99