Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux.ubuntu > #197460

Mount external ext4 partition

From Mike Easter <MikeE@ster.invalid>
Newsgroups alt.os.linux.ubuntu
Subject Mount external ext4 partition
Date 2017-10-13 15:12 -0700
Message-ID <f4cs22Fg5lU1@mid.individual.net> (permalink)

Show all headers | View raw


----------------- before it worked -----------------

I have an IDE drive with an ext4 linux partition I removed from a dead 
computer.

I have a kit which allows me to power up the hdd and adapt the ide/pata 
data connection to USB.

Neither windows nor linux nor the computer's BIOS sees that usb hdd. 
The BIOS opportunity is when I use its boot options feature, which bios 
can see other USB devices including flash drives and an external usb hdd 
and an external usb optical as well as the internal SATA.

I didn't try using any other Windows utilities besides its file manager.

In linux, I can see the hdd with GPartEd and see its partitions.  I can 
also see the hdd with Gnome Disks, but disks does not provide me with 
the option to mount the partition I want, which is ext4.  In disks and 
gparted, the hdd is

sdc1 fat32 windows part
sdc2 extended (includes following)
   sdc5 ext4 (my target)
   sdc7 fat32
   sdc6 linux swap

In disks, I can graphically mount and unmount sdc1, but not any other parts.

Such as fdisk -l also shows my various parts.  I don't know much about 
this mounting business from the command line.  I created a directory 
named geode and tried to use it as a mount point:

ubuntu@ubuntu:~$ sudo mkdir geode
ubuntu@ubuntu:~$ sudo mount /dev/sdc2
mount: /dev/sdc2: can't find in /etc/fstab.
ubuntu@ubuntu:~$ sudo mount -t ext4 /dev/sdc2 geode
mount: /home/ubuntu/geode: /dev/sdc2 is not a valid block device.

----------------- end section it didn't work -----------------

Solved.

Aha!  One big advantage of creating a message to ask a question is that 
it causes one to go back over every step.  Doh!  I realized that I was 
using sdc2 as the device I wanted, but it should have been sdc5.  When I 
said:

sudo mount -t ext4 /dev/sdc5 geode

... it worked and when I open the directory geode, I can see the 
contents of the part. It also shows up in the file manager as geode.

This isn't a 'permanent' mounting situation; it is just temporary so 
that I can use a live Ub 17.10 beta2 to copy some directories and files 
from the old linux part to a hdd installed in the computer booting the 
live Ub 17.10.

For contrast with simplicity; I have another usb hdd which was powered 
down when I was having trouble with the above.  When I power it up, it 
also doesn't show in the file manager.  *BUT*  When I use gnome disks, 
it shows and it has the option to mount the drive graphically, which the 
above part didn't do.  After that drive is mounted, it shows in the file 
manager as expected.

-- 
Mike Easter

Back to alt.os.linux.ubuntu | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-13 15:12 -0700
  Re: Mount external ext4 partition Bit Twister <BitTwister@mouse-potato.com> - 2017-10-14 00:41 +0000
  Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 00:03 -0700
  Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 11:54 -0700
    Re: Mount external ext4 partition "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-14 15:03 -0400
      Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 12:54 -0700
        Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 13:17 -0700
          Re: Mount external ext4 partition Paul <nospam@needed.invalid> - 2017-10-14 16:37 -0400
            Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 14:08 -0700
            Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 14:28 -0700
              Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 15:09 -0700
              Re: Mount external ext4 partition "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-14 23:21 -0400
                Re: Mount external ext4 partition Marek Novotny <marek.novotny@marspolar.com> - 2017-10-14 22:22 -0500
                Re: Mount external ext4 partition "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-14 23:29 -0400
          Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 13:41 -0700
            Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 14:01 -0700
              Re: Mount external ext4 partition Mike Easter <MikeE@ster.invalid> - 2017-10-14 14:17 -0700
                Re: Mount external ext4 partition Paul <nospam@needed.invalid> - 2017-10-14 18:03 -0400
          Re: Mount external ext4 partition Mike Easter <MIkeE@ster.invalid> - 2017-10-15 18:55 +0000
            Re: Mount external ext4 partition Mike Easter <MIkeE@ster.invalid> - 2017-10-15 19:11 +0000
              Re: Mount external ext4 partition Paul <nospam@needed.invalid> - 2017-10-15 16:40 -0400
              Re: Mount external ext4 partition "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-15 18:31 -0400
        Re: Mount external ext4 partition "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-14 23:17 -0400
  Re: Mount external ext4 partition Big Bad Bob <BigBadBob-at-mrp3-dot-com@testing.local> - 2017-10-15 12:38 -0700
    Re: Mount external ext4 partition Paul <nospam@needed.invalid> - 2017-10-15 16:58 -0400

csiph-web