Mounting a hard drive (beginner)How to use DD to clone a partition off a disk image?Manually cloning a Live...

Why do Russians almost not use verbs of possession akin to "have"?

How to ignore kerning of underbrace in math mode

Why most published works in medical imaging try reducing false positives?

Need to read my home electrical meter

How to attach cable mounting points to a bicycle frame?

Make 24 using exactly three 3s

Do I need full recovery mode when I have multiple daily backup?

Why would Ryanair allow me to book this journey through a third party, but not through their own website?

Why aren't space telescopes put in GEO?

What was the idiom for something that we take without a doubt?

Is it legal to have an abortion in another state or abroad?

Why did Jon Snow do this immoral act if he is so honorable?

Best material to absorb as much light as possible

Can my floppy disk still work without a shutter spring?

Can a person survive on blood in place of water?

How to respond to upset student?

Did this character show any indication of wanting to rule before S8E6?

Is it possible to remotely hack the GPS system and disable GPS service worldwide?

My players want to grind XP but we're using milestone advancement

NIntegrate doesn't evaluate

Of strange atmospheres - the survivable but unbreathable

How did NASA Langley end up with the first 737?

My employer faked my resume to acquire projects

What is a fully qualified name?



Mounting a hard drive (beginner)


How to use DD to clone a partition off a disk image?Manually cloning a Live USB Arch distro to a VMware virtual diskmdadm - RAID5 array size vs. actual disk size mismatchHow to mount sdb directly or using LVM partitions on sda?How to extend logical & extended partition with fdiskExtend partition using LVMAdd scound Linux OS dual with Centos 7Optimal LVM Setup to Keep Adding Space to Single Mountpoint(Complicated) RAID hard drive issueWrong fs type, bad option, bad superblock on /dev/sdX






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I'm trying to mount my two harddrives (sdb and sdc) on Ubuntu 18.04



    $ sudo fdisk -l  

Disk /dev/sda: 111.8 GiB, 120040980480 bytes, 234455040 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
Disklabel type: gpt
Disk identifier: 843403B2-BF09-43A4-8B53-A44D8FAEF693

Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 234452991 233402368 111.3G Linux filesystem


Disk /dev/sdb: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 9924BB77-E1D6-4E03-852F-454F360F6F41

Device Start End Sectors Size Type
/dev/sdb1 2048 5860532223 5860530176 2.7T Linux filesystem


Disk /dev/sdc: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 16696FCE-133A-47CC-8CDB-BD59002A6A24

$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
└─sda2 8:2 0 111.3G 0 part /
sdb 8:16 0 2.7T 0 disk
└─sdb1 8:17 0 2.7T 0 part
sdc 8:32 0 2.7T 0 disk


'sudo mount /dev/sdb1 /media' doesn't seem to work and gives me the error '/dev/sdb1 is not a block device.'. How do I mount it?










share|improve this question









New contributor



Hackerman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • You could start by creating a partition and putting a filesystem on them. What do you think you'd be able to do with the disks unless there's a filesystem on them?

    – Nasir Riley
    55 mins ago











  • ok I partitioned it (put it all on 1 partition, sdb1). When trying to mount I get '/dev/sdb1 is not a block device.' Ideas?

    – Hackerman
    43 mins ago











  • I just updated my question

    – Hackerman
    37 mins ago


















0















I'm trying to mount my two harddrives (sdb and sdc) on Ubuntu 18.04



    $ sudo fdisk -l  

Disk /dev/sda: 111.8 GiB, 120040980480 bytes, 234455040 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
Disklabel type: gpt
Disk identifier: 843403B2-BF09-43A4-8B53-A44D8FAEF693

Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 234452991 233402368 111.3G Linux filesystem


Disk /dev/sdb: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 9924BB77-E1D6-4E03-852F-454F360F6F41

Device Start End Sectors Size Type
/dev/sdb1 2048 5860532223 5860530176 2.7T Linux filesystem


Disk /dev/sdc: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 16696FCE-133A-47CC-8CDB-BD59002A6A24

$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
└─sda2 8:2 0 111.3G 0 part /
sdb 8:16 0 2.7T 0 disk
└─sdb1 8:17 0 2.7T 0 part
sdc 8:32 0 2.7T 0 disk


'sudo mount /dev/sdb1 /media' doesn't seem to work and gives me the error '/dev/sdb1 is not a block device.'. How do I mount it?










share|improve this question









New contributor



Hackerman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • You could start by creating a partition and putting a filesystem on them. What do you think you'd be able to do with the disks unless there's a filesystem on them?

    – Nasir Riley
    55 mins ago











  • ok I partitioned it (put it all on 1 partition, sdb1). When trying to mount I get '/dev/sdb1 is not a block device.' Ideas?

    – Hackerman
    43 mins ago











  • I just updated my question

    – Hackerman
    37 mins ago














0












0








0








I'm trying to mount my two harddrives (sdb and sdc) on Ubuntu 18.04



    $ sudo fdisk -l  

Disk /dev/sda: 111.8 GiB, 120040980480 bytes, 234455040 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
Disklabel type: gpt
Disk identifier: 843403B2-BF09-43A4-8B53-A44D8FAEF693

Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 234452991 233402368 111.3G Linux filesystem


Disk /dev/sdb: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 9924BB77-E1D6-4E03-852F-454F360F6F41

Device Start End Sectors Size Type
/dev/sdb1 2048 5860532223 5860530176 2.7T Linux filesystem


Disk /dev/sdc: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 16696FCE-133A-47CC-8CDB-BD59002A6A24

$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
└─sda2 8:2 0 111.3G 0 part /
sdb 8:16 0 2.7T 0 disk
└─sdb1 8:17 0 2.7T 0 part
sdc 8:32 0 2.7T 0 disk


'sudo mount /dev/sdb1 /media' doesn't seem to work and gives me the error '/dev/sdb1 is not a block device.'. How do I mount it?










share|improve this question









New contributor



Hackerman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I'm trying to mount my two harddrives (sdb and sdc) on Ubuntu 18.04



    $ sudo fdisk -l  

Disk /dev/sda: 111.8 GiB, 120040980480 bytes, 234455040 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
Disklabel type: gpt
Disk identifier: 843403B2-BF09-43A4-8B53-A44D8FAEF693

Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 234452991 233402368 111.3G Linux filesystem


Disk /dev/sdb: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 9924BB77-E1D6-4E03-852F-454F360F6F41

Device Start End Sectors Size Type
/dev/sdb1 2048 5860532223 5860530176 2.7T Linux filesystem


Disk /dev/sdc: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 16696FCE-133A-47CC-8CDB-BD59002A6A24

$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
└─sda2 8:2 0 111.3G 0 part /
sdb 8:16 0 2.7T 0 disk
└─sdb1 8:17 0 2.7T 0 part
sdc 8:32 0 2.7T 0 disk


'sudo mount /dev/sdb1 /media' doesn't seem to work and gives me the error '/dev/sdb1 is not a block device.'. How do I mount it?







ubuntu mount partition






share|improve this question









New contributor



Hackerman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question









New contributor



Hackerman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question








edited 37 mins ago







Hackerman













New contributor



Hackerman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 1 hour ago









HackermanHackerman

12




12




New contributor



Hackerman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




Hackerman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • You could start by creating a partition and putting a filesystem on them. What do you think you'd be able to do with the disks unless there's a filesystem on them?

    – Nasir Riley
    55 mins ago











  • ok I partitioned it (put it all on 1 partition, sdb1). When trying to mount I get '/dev/sdb1 is not a block device.' Ideas?

    – Hackerman
    43 mins ago











  • I just updated my question

    – Hackerman
    37 mins ago



















  • You could start by creating a partition and putting a filesystem on them. What do you think you'd be able to do with the disks unless there's a filesystem on them?

    – Nasir Riley
    55 mins ago











  • ok I partitioned it (put it all on 1 partition, sdb1). When trying to mount I get '/dev/sdb1 is not a block device.' Ideas?

    – Hackerman
    43 mins ago











  • I just updated my question

    – Hackerman
    37 mins ago

















You could start by creating a partition and putting a filesystem on them. What do you think you'd be able to do with the disks unless there's a filesystem on them?

– Nasir Riley
55 mins ago





You could start by creating a partition and putting a filesystem on them. What do you think you'd be able to do with the disks unless there's a filesystem on them?

– Nasir Riley
55 mins ago













ok I partitioned it (put it all on 1 partition, sdb1). When trying to mount I get '/dev/sdb1 is not a block device.' Ideas?

– Hackerman
43 mins ago





ok I partitioned it (put it all on 1 partition, sdb1). When trying to mount I get '/dev/sdb1 is not a block device.' Ideas?

– Hackerman
43 mins ago













I just updated my question

– Hackerman
37 mins ago





I just updated my question

– Hackerman
37 mins ago










1 Answer
1






active

oldest

votes


















0














Welcome to the StackExchange!



First of all, you would need to format or add at least one partition to the newly added hard drives.



This can be accomplished by either using the terminal with fdisk type this to select the first hard drive you mentioned:



$ fdisk /dev/sdb



Type ‘n’ to create a new partition.



Specify where you would like the partition to end and start. You can set the number of MB of the partition instead of the end cylinder. For example: +1000M



Type ‘p’ to view the partition, and type ‘w’ to save the partition.



Run the command:



$ partprobe



This will allow your OS to detect the new partition table. If it still does not detect the partition table, you might need a reboot.



Then format the newly created partition with mke2fs this is used to create an ext2, ext3, or ext4 filesystem, usually in a disk partition. See the mke2fs(8) manual page for more details.



# mkfs.ext4 -L myHDD /dev/sdb1



Then create a directory to mount the partition to:



# mkdir -p /mnt/media



then mount(8) the newly created partition to the newly created directory:



# mount /dev/sdb1 /mnt/media



then run the command lsblk(8):



$ lsblk -f




NAME    FSTYPE   LABEL                UUID                          MOUNTPOINT
sda
└─sdb1 ext4 myHDD 56adc99b-a61e-46af-aab7-a6d07e504652 /mnt/media


or you could use a GUI like gparted which basically does all of the above with a couple of mouse clicks if you're not comfortable using the terminal.






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    Hackerman is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f520772%2fmounting-a-hard-drive-beginner%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Welcome to the StackExchange!



    First of all, you would need to format or add at least one partition to the newly added hard drives.



    This can be accomplished by either using the terminal with fdisk type this to select the first hard drive you mentioned:



    $ fdisk /dev/sdb



    Type ‘n’ to create a new partition.



    Specify where you would like the partition to end and start. You can set the number of MB of the partition instead of the end cylinder. For example: +1000M



    Type ‘p’ to view the partition, and type ‘w’ to save the partition.



    Run the command:



    $ partprobe



    This will allow your OS to detect the new partition table. If it still does not detect the partition table, you might need a reboot.



    Then format the newly created partition with mke2fs this is used to create an ext2, ext3, or ext4 filesystem, usually in a disk partition. See the mke2fs(8) manual page for more details.



    # mkfs.ext4 -L myHDD /dev/sdb1



    Then create a directory to mount the partition to:



    # mkdir -p /mnt/media



    then mount(8) the newly created partition to the newly created directory:



    # mount /dev/sdb1 /mnt/media



    then run the command lsblk(8):



    $ lsblk -f




    NAME    FSTYPE   LABEL                UUID                          MOUNTPOINT
    sda
    └─sdb1 ext4 myHDD 56adc99b-a61e-46af-aab7-a6d07e504652 /mnt/media


    or you could use a GUI like gparted which basically does all of the above with a couple of mouse clicks if you're not comfortable using the terminal.






    share|improve this answer




























      0














      Welcome to the StackExchange!



      First of all, you would need to format or add at least one partition to the newly added hard drives.



      This can be accomplished by either using the terminal with fdisk type this to select the first hard drive you mentioned:



      $ fdisk /dev/sdb



      Type ‘n’ to create a new partition.



      Specify where you would like the partition to end and start. You can set the number of MB of the partition instead of the end cylinder. For example: +1000M



      Type ‘p’ to view the partition, and type ‘w’ to save the partition.



      Run the command:



      $ partprobe



      This will allow your OS to detect the new partition table. If it still does not detect the partition table, you might need a reboot.



      Then format the newly created partition with mke2fs this is used to create an ext2, ext3, or ext4 filesystem, usually in a disk partition. See the mke2fs(8) manual page for more details.



      # mkfs.ext4 -L myHDD /dev/sdb1



      Then create a directory to mount the partition to:



      # mkdir -p /mnt/media



      then mount(8) the newly created partition to the newly created directory:



      # mount /dev/sdb1 /mnt/media



      then run the command lsblk(8):



      $ lsblk -f




      NAME    FSTYPE   LABEL                UUID                          MOUNTPOINT
      sda
      └─sdb1 ext4 myHDD 56adc99b-a61e-46af-aab7-a6d07e504652 /mnt/media


      or you could use a GUI like gparted which basically does all of the above with a couple of mouse clicks if you're not comfortable using the terminal.






      share|improve this answer


























        0












        0








        0







        Welcome to the StackExchange!



        First of all, you would need to format or add at least one partition to the newly added hard drives.



        This can be accomplished by either using the terminal with fdisk type this to select the first hard drive you mentioned:



        $ fdisk /dev/sdb



        Type ‘n’ to create a new partition.



        Specify where you would like the partition to end and start. You can set the number of MB of the partition instead of the end cylinder. For example: +1000M



        Type ‘p’ to view the partition, and type ‘w’ to save the partition.



        Run the command:



        $ partprobe



        This will allow your OS to detect the new partition table. If it still does not detect the partition table, you might need a reboot.



        Then format the newly created partition with mke2fs this is used to create an ext2, ext3, or ext4 filesystem, usually in a disk partition. See the mke2fs(8) manual page for more details.



        # mkfs.ext4 -L myHDD /dev/sdb1



        Then create a directory to mount the partition to:



        # mkdir -p /mnt/media



        then mount(8) the newly created partition to the newly created directory:



        # mount /dev/sdb1 /mnt/media



        then run the command lsblk(8):



        $ lsblk -f




        NAME    FSTYPE   LABEL                UUID                          MOUNTPOINT
        sda
        └─sdb1 ext4 myHDD 56adc99b-a61e-46af-aab7-a6d07e504652 /mnt/media


        or you could use a GUI like gparted which basically does all of the above with a couple of mouse clicks if you're not comfortable using the terminal.






        share|improve this answer













        Welcome to the StackExchange!



        First of all, you would need to format or add at least one partition to the newly added hard drives.



        This can be accomplished by either using the terminal with fdisk type this to select the first hard drive you mentioned:



        $ fdisk /dev/sdb



        Type ‘n’ to create a new partition.



        Specify where you would like the partition to end and start. You can set the number of MB of the partition instead of the end cylinder. For example: +1000M



        Type ‘p’ to view the partition, and type ‘w’ to save the partition.



        Run the command:



        $ partprobe



        This will allow your OS to detect the new partition table. If it still does not detect the partition table, you might need a reboot.



        Then format the newly created partition with mke2fs this is used to create an ext2, ext3, or ext4 filesystem, usually in a disk partition. See the mke2fs(8) manual page for more details.



        # mkfs.ext4 -L myHDD /dev/sdb1



        Then create a directory to mount the partition to:



        # mkdir -p /mnt/media



        then mount(8) the newly created partition to the newly created directory:



        # mount /dev/sdb1 /mnt/media



        then run the command lsblk(8):



        $ lsblk -f




        NAME    FSTYPE   LABEL                UUID                          MOUNTPOINT
        sda
        └─sdb1 ext4 myHDD 56adc99b-a61e-46af-aab7-a6d07e504652 /mnt/media


        or you could use a GUI like gparted which basically does all of the above with a couple of mouse clicks if you're not comfortable using the terminal.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 10 mins ago









        Donald L WilsonDonald L Wilson

        134




        134






















            Hackerman is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            Hackerman is a new contributor. Be nice, and check out our Code of Conduct.













            Hackerman is a new contributor. Be nice, and check out our Code of Conduct.












            Hackerman is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f520772%2fmounting-a-hard-drive-beginner%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

            Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

            Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...