Choose style:

Author Topic: Manually mounting and unmounting USB drives [SOLVED]  (Read 3343 times)

0 Members and 1 Guest are viewing this topic.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Manually mounting and unmounting USB drives [SOLVED]
« on: April 08, 2014, 04:01:42 am »
Hi eveyone,  I have a question about using the command line to mount and unmount a USB drive.  I have PCmanFM configured to auto-mount USB drives when they are plugged in.  It does this flawlessly.  Sometimes,  it is quicker to umount a drive from the command line.  I can umount but if I try to mount a drive, I receive the following output:
Code: [Select]
andy-AMILO-Li3710 andy # umount /dev/sdb1
andy-AMILO-Li3710 andy # mount /dev/sdb1
mount: can't find /dev/sdb1 in /etc/fstab or /etc/mtab
andy-AMILO-Li3710 andy #
I can manually mount the drive by using PCmanFM.  It just seems a very clumsy way to mount a drive.  What am I missing?  Many thanks.   ;D
« Last Edit: April 09, 2014, 06:41:15 am by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1753
  • Karma: 466
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Manually mounting and unmounting USB drives
« Reply #1 on: April 09, 2014, 03:17:41 am »
Hi,

actually you are missing quite a bit  ;D -- for starters you can open your terminal and read the "man" pages about the mount command and how to use it. To read the pages type the following into your terminal window:

Code: [Select]
man mount

and start reading about how to use the mount command. I would give you more information but am too short on time at the moment. Maybe someone else will help you further. But reading about how to use mount is definitely worth the effort. Also, you will probably need to be in "admin" mode to use mount (sudo mount ...).

Regards,

-- Slim   8)
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25473
  • Karma: 2803
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Manually mounting and unmounting USB drives
« Reply #2 on: April 09, 2014, 05:35:44 am »
What are your goals .. is whatever /dev/sdb1 is to be mounted automatically at each boot (therefore requiring an entry in fsstab) ?

What file system is on /dev/sdb1 ?

at what location in the file system directory tree would you like to mount it ?

and do you need any mount options applying ?

A normal manual mount command would be something like:-
sudo mount -t <filesystem type> /dev/sdb1 /media/mountpoint-directory -o <options>

The -t filesystem type may not be necessary if it's a EXT(n) filesystem
and -o won't be necessary if you're not specifying any mount options

So at the very least you're missing the mountpoint, so the system has no idea where in the file system tree you want it mounted (so it looks in fstab to see if you've defined the mountpoint there), but you may also be missing other necessary info such as filesystem type, and any mount options to define things like permission or is it a network device etc.

I'm willing to bet that's now about as clear as mud, eh?

As Slim.Fatz says, the man page is a good start
then maybe:
https://help.ubuntu.com/community/Mount/USB
and:
https://help.ubuntu.com/community/MountingWindowsPartitions
« Last Edit: April 09, 2014, 05:52:57 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Manually mounting and unmounting USB drives
« Reply #3 on: April 09, 2014, 06:28:26 am »
I've an external 500GB USB HD that got corrupted due to a dodgy cable.  I've reformatted it to ext4.  That took for ever to do as I kept getting error messages in both GParted and the Disks utility.  Eventually I got the disk erased and formatted ext4.  I'm still having problems with it though.  Clonezilla gets stuck at around 27% and overheats the CPU.  My main HD shows no errors.  I would have been surprised if did as its only 2 months old.  I tried setting it up in fstab  but when I tried to mount it, I got superblock errors.  I think there is more going on in that old external drive than first meet the eye!!  I think its time to retire it.  Many thanks for the pointers guys - very helpful indeed!!  :)     
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25473
  • Karma: 2803
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Manually mounting and unmounting USB drives [SOLVED]
« Reply #4 on: April 09, 2014, 07:50:48 am »
Yeah, that's not sounding good .. have you tried tghe drive on another PC, or attached it internally ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Manually mounting and unmounting USB drives [SOLVED]
« Reply #5 on: April 09, 2014, 08:05:17 am »
I haven't a spare PC and the wife would freak out if she saw me mucking around with her beloved Win7 machine.   ::)  I guess I could swap it out with the one in this lappie and try to install Peppermint or something heftier.!  I'll give that a go before deep-sixing it!!  :D
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25473
  • Karma: 2803
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Manually mounting and unmounting USB drives [SOLVED]
« Reply #6 on: April 09, 2014, 08:17:06 am »
OK, good luck :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec