Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
Hi all, Ok here goes. I'm a complete newbie to Linux and I need to run a script that will hopefully rebuild my WD my book live. I've been googleing ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2012
    Posts
    8

    Beginner looking for help...Please




    Hi all,

    Ok here goes. I'm a complete newbie to Linux and I need to run a script that will hopefully rebuild my WD my book live.
    I've been googleing all day and have managed to create a live CD on a USB stick and have rebooted my laptop and am now successfully running Fedora Linux on it.

    I have plugged the hard drive I want to run the script on into a USB port on my laptop and I have a script that I need to run on it. Please can somebody provide me with instructions on how to do this as I've come to a complete brick wall. Thanks !!!

    Cheers.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi and Welcome !

    I need to run a script that will hopefully rebuild my WD my book live.
    From where did you get this script? Could you post its contents or attach it here?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Mar 2012
    Posts
    8
    Hi devils casper,

    Thanks for the welcome and swift response the forum won't allow me to post it as it contains http in the script and I've not posted 15 time yet I'll attempt to PM you if that's ok

  4. #4
    Just Joined!
    Join Date
    Mar 2012
    Posts
    8
    Hi devils casper, I've PM'd you the details. Apologies to everyone if I've broken the rules, but I didn't want to clog the forum with 14 more useless posts just so I could post the link

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Quote Originally Posted by crozzer
    Hi devils casper,

    Thanks for the welcome and swift response the forum won't allow me to post it as it contains http in the script and I've not posted 15 time yet I'll attempt to PM you if that's ok
    My mistake !! I should have suggested you to PM me the Link in my first post.

    I am posting the same link here so that other members can also check that script.

    That script is just rewriting Partition Table and you can do that by executing a few commands only.
    Lets check your Hard disk first.

    Open Terminal/Konsole and execute this
    Code:
    sudo fdisk -l
    Post output here.

    * Its small L in fdisk -l.


    In case you want to execute Script only, do let me know. I will post instructions for that.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Just Joined!
    Join Date
    Mar 2012
    Posts
    8
    Hi, thanks for your help.

    I've opened the terminal and typed that command line but I get the following error:

    live user is not in the sudoers file

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Execute this
    Code:
    su -
    /sbin/fdisk -l
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Just Joined!
    Join Date
    Mar 2012
    Posts
    8
    Thanks again. Output was:

    Disk /dev/sda: 100.0 GB, 100030242816 bytes
    240 heads, 63 sectors/track, 12921 cylinders, total 195371568 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: 0x1af1305f

    Device Boot Start End Blocks Id System
    /dev/sda1 * 63 97690319 48845128+ 7 HPFS/NTFS/exFAT
    /dev/sda2 97690320 195365519 48837600 7 HPFS/NTFS/exFAT

    Disk /dev/sdb: 8088 MB, 8088715264 bytes
    5 heads, 32 sectors/track, 98739 cylinders, total 15798272 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: 0xd9ac4904

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 8064 15798271 7895104 c W95 FAT32 (LBA)

    Disk /dev/mapper/live-rw: 4294 MB, 4294967296 bytes
    255 heads, 63 sectors/track, 522 cylinders, total 8388608 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: 0x00000000

    Disk /dev/mapper/live-rw doesn't contain a valid partition table

    Disk /dev/mapper/live-osimg-min: 4294 MB, 4294967296 bytes
    255 heads, 63 sectors/track, 522 cylinders, total 8388608 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: 0x00000000

    Disk /dev/mapper/live-osimg-min doesn't contain a valid partition table

    WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


    Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
    255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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: 0x00000000

    Device Boot Start End Blocks Id System
    /dev/sdc1 1 3907029167 1953514583+ ee GPT
    [root@localhost ~]#

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Which Hard disk do you want to rebuild, 100GB or 2000GB?
    Hard Disk having size 2000GB has not been Partitioned correctly. You can recreate partition structure using Disk Management tool available in System Menu or command line tool, fdisk.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #10
    Just Joined!
    Join Date
    Mar 2012
    Posts
    8
    Hi again,

    It's the 2000GB drive I require rebuilding. It is the HD out of my NAS drive so I've taken it out of it's casing and disconnected it off the NAS motherboard. The script I sent to you via PM will apparently rebuild the drive, reload the NAS firmware
    so I can connect it back to the MB and it will retain the data I have on it and work again (hopefully). Does this make sense ?
    Thanks.

Page 1 of 2 1 2 LastLast

Posting Permissions

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