Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
So, I plugged in two hard drives to my server. I started with two, an IDE and an SATA. Then I plugged in another SATA and an external SATA using ...
  1. #1
    Linux Newbie
    Join Date
    Feb 2005
    Location
    Lebanon, PA
    Posts
    110

    Question Find drives to mount from command prompt

    So, I plugged in two hard drives to my server. I started with two, an IDE and an SATA. Then I plugged in another SATA and an external SATA using a PCI controller card.

    I currently only have command prompt (Putty) access. How can I set the drives up to be usable. They were on another server that died.
    'Linux is like a swiss army knife. Yet it never gets that "I'm bloated and need suspenders" feeling.' - www.arkaoss.com

  2. #2
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,946
    Maybe This will help in answering your query.
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way
    AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
    Open CourseWare for Linux Geeks

  3. #3
    Just Joined! Leppie's Avatar
    Join Date
    Feb 2010
    Posts
    72
    to find drives/partitions from the command line, you can use either fdisk or blkid. blkid provides more information on the partitions whereas fdisk provides more information on the drives.
    fdisk:
    Code:
    $ sudo fdisk -l
    Disk /dev/sda: 250.1 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x279d1037
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        1275    10240000   27  Unknown
    /dev/sda2   *        1275       15839   116984832    7  HPFS/NTFS
    /dev/sda3           15840       17675    14747670   83  Linux
    /dev/sda4           17676       30401   102221595    5  Extended
    /dev/sda5           25299       27122    14651248+  83  Linux
    /dev/sda6           30147       30401     2048256   82  Linux swap / Solaris
    /dev/sda7           27123       30146    24290248+  83  Linux
    /dev/sda8           17676       25298    61231684+  83  Linux
    blkid:
    Code:
    $ sudo blkid -c /dev/null
    /dev/sda1: LABEL="PQSERVICE" UUID="EAEE-EB49" TYPE="vfat" 
    /dev/sda2: UUID="1E5A005C5A003357" LABEL="windoze" TYPE="ntfs" 
    /dev/sda3: UUID="8ea595e4-9e86-49b0-9d29-133ba1c85d27" TYPE="jfs" 
    /dev/sda5: UUID="9acf0277-dbcc-46a3-9643-20f25ad99f0d" TYPE="jfs" 
    /dev/sda6: UUID="bbf1557c-e29e-4d9b-b522-067fef494b3c" TYPE="swap" 
    /dev/sda7: UUID="9ce1ca52-d0b3-4314-85ee-f09eaa4dc721" TYPE="xfs" 
    /dev/sda8: UUID="04245038-d146-48cc-aee5-79be1bf32094" TYPE="xfs

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Execute fdisk -l to check all available partitions and df -h for all mounted partitions.
    Code:
    fdisk -l
    df -h
    Mount and use partitions accordingly.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux Newbie
    Join Date
    Feb 2005
    Location
    Lebanon, PA
    Posts
    110
    I did log into Ubuntu when I got home, and Disk Utility sees the drive, it just doesn't recognize the partition. Perhaps since it was set up on another linux box?

    I don't want to wipe it, I want to get at the data. What can I do?
    'Linux is like a swiss army knife. Yet it never gets that "I'm bloated and need suspenders" feeling.' - www.arkaoss.com

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    We have to check the output of following commands.
    Code:
    sudo fdisk -l
    df -h
    Post the output here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Linux Newbie
    Join Date
    Feb 2005
    Location
    Lebanon, PA
    Posts
    110
    Updates, or more info:
    Boot drive: 120Gb IDE
    Media drive: 500Gb SATA

    Additional:
    160Gb SATA (Media on old server)
    1Tb eSATA (backup drive)

    For the time being, I'm going to try the 160Gb using 'Ext IFS for windows' on a SATA to USB adapter on my XP box, just to get some files going.

    I do have the 1Tb eSATA plugged in, and did the fdisk:
    mark@fileServer:~$ sudo fdisk -l

    Disk /dev/sda: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x014f014f

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 14219 114214086 83 Linux
    /dev/sda2 14220 14593 3004155 5 Extended
    /dev/sda5 14220 14593 3004123+ 82 Linux swap / Solaris

    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xfd004d81

    Device Boot Start End Blocks Id System
    /dev/sdb2 * 2 60801 488376000 5 Extended
    /dev/sdb5 2 60801 488375968+ 7 HPFS/NTFS
    mark@fileServer:~$

    mark@fileServer:~$ df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda1 108G 3.5G 99G 4% /
    udev 502M 244K 501M 1% /dev
    none 502M 164K 501M 1% /dev/shm
    none 502M 100K 502M 1% /var/run
    none 502M 0 502M 0% /var/lock
    none 502M 0 502M 0% /lib/init/rw
    /dev/sdb5 466G 305G 162G 66% /storage
    mark@fileServer:~$


    So... right now it's not seeing the 1Tb. (The 160 SATA is off the system for the moment.)

    So, I guess right now the thing is, is my PCI SATA controller recognized by my box? How do I find that out, and if not, how do I load it.

    I betcha gonna ask who makes the card. I want to say Roswell, but that may be in another system. (I've been buying Roswell cards lately, they seem decent.)
    'Linux is like a swiss army knife. Yet it never gets that "I'm bloated and need suspenders" feeling.' - www.arkaoss.com

  8. #8
    Linux Newbie
    Join Date
    Feb 2005
    Location
    Lebanon, PA
    Posts
    110
    Some info on the 160GB SATA.

    I tried mounting it on XP w/ ext2ifs... and it mounted... sorta. Ran and got this:
    C:\>mountdiag l:
    The volume has an Ext2/Ext3 file system, but the Ext2 IFS 1.11 software did not
    mount it because there is at least one incompat feature flag set. The Ext2
    IFS software does not implement:
    * needs_recovery *
    Here we have an Ext3 file system which has transactions left in its journal.
    A
    pure Ext2 driver must not access such a volume which is in that state (to
    prevent data loss!).
    You may solve it by mounting it on Linux (which has a kernel with Ext3
    support). Be sure that you cleanly dismount it, before you shutdown Linux.
    After that the Ext2 IFS software should be able to access the volume.

    So...
    I'll have to put it back on the Linux box.

    Two questions,
    Can I use the SATA to USB adapter? (Linux should pick that up, right?)

    How do I fix that drive? (Could have been why the older system crashed in first place.)

    I will probably just pull the data off and dump it to the 500Gb.
    'Linux is like a swiss army knife. Yet it never gets that "I'm bloated and need suspenders" feeling.' - www.arkaoss.com

  9. #9
    Linux Newbie
    Join Date
    Feb 2005
    Location
    Lebanon, PA
    Posts
    110
    Now I have this drive USB'd to the linux box:
    Disk /dev/sdc: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x941cd9f0

    Device Boot Start End Blocks Id System
    /dev/sdc1 1 19457 156288321 83 Linux

    mark@fileServer:~$ df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda1 108G 3.5G 99G 4% /
    udev 502M 264K 501M 1% /dev
    none 502M 1.1M 501M 1% /dev/shm
    none 502M 124K 502M 1% /var/run
    none 502M 0 502M 0% /var/lock
    none 502M 0 502M 0% /lib/init/rw
    /dev/sdb5 466G 305G 162G 66% /storage


    So, linux sees it... just can't read it.
    Disk Utility says Unknown or Unused on the partition.
    'Linux is like a swiss army knife. Yet it never gets that "I'm bloated and need suspenders" feeling.' - www.arkaoss.com

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    What is the filesystem of /dev/sdb5 filesystem? Post the output of fdisk -l command here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

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
  •  
...