mount device

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sassy2009
    New Member
    • Oct 2009
    • 15

    mount device

    Hi all,

    im trying to mount a SATA drive. I have a drive already connected to the system as /dev/sda1. The second drive that i have connected now should be /dev/sdb if im not wrong. I havent formatted this drive so it shows up on the desktop as mass storage. So i wanted to format this drive to EXT2.I tried the "sudo fdisk dev/sdb". It says unable to open dev/sdb. I tried with GPARTED and formatting the sdb and it works. Why cant i format this drive with fdisk command???
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    If you're writing that exactly as you're typing it, then you're missing the leading slash / for the 'absolute' path name (path from the root dir). The computer things you're doing the 'relative' path name and is looking in the current directory for a folder named dev/sdb - which is why it cannot open it.

    I would recommend using gparted as the fdisk wikipedia page suggests it over many of fdisks limitations.

    Comment

    • Nepomuk
      Recognized Expert Specialist
      • Aug 2007
      • 3111

      #3
      A small addition: if you're looking for a command line tool that has the power of gparted, try
      Code:
      parted /dev/sdb
      It has the same backend as gparted.

      Greetings,
      Nepomuk

      Comment

      • sassy2009
        New Member
        • Oct 2009
        • 15

        #4
        mount device

        Thanks for your reply guys.

        sudo mount -t ext2 /dev/sdb1 /mnt

        and this worked.

        Comment

        Working...