Results 1 to 3 of 3

Thread: how to read contents of sdb1

  1. #1
    Join Date
    Sep 2021

    how to read contents of sdb1

    I have two harddrives installed and am trying to read the contents of my sdb1 harddrive. I have unbuntu installed on sda
    This is what happens when I try to mount sdb1

    sudo mkdir /mnt/sdb1 (cannot create directory file exists)
    sudo mount /dev/sdb1 /mnt/sdb1 (already mounted on /mnt/sdb1)

    Since the drive is already mounted, I then type ls and press enter (to display the directories on the sdb1 drive)
    but this is the directory list for what is on the first drive - bin, boot, cdrom, dev, dir1, etc, hdd, home, home.orig, lib, lib32, lib64..............................


  2. #2
    Join Date
    Jul 2010
    ozarks, Arkansas, USA
    Xubuntu 20.04 Focal Fossa

    Re: how to read contents of sdb1

    ford12; Hello - Welcome to the Forum

    As you say:
    Since the drive is already mounted, I then type ls and press enter
    then I do expect "ls" to direct to sda as that, I think, is your PWD (present working directory).

    Explicitly -
    what results with sdb1 mounted from terminal commands:
    sudo fdisk -lu
    ls -al /mnt/sdb1
    code tag tutorial:

    whereas I can also anticipate that access to the file system on sdb1 will have to be changed to "you".

    stupid computer
    can not read minds
    THE current(cy) in Documentation:

    Happy ubuntu'n !

  3. #3
    Join Date
    Jun 2010
    London, England
    Ubuntu Development Release

    Re: how to read contents of sdb1

    Is sdb1 the label of this second drive? Normally sdb1 would indicate the first partition on sdb. I assume that sdb1 is the label. You have mounted the drive in /mnt/.

    Open the terminal and change directory like this

    cd /mnt/sdb1
    now run the ls command.

    For information purposes: when we access a partition using the file manager it gets mounted at /media/.

    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


Posting Permissions

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