LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices


Reply
  Search this Thread
Old 06-19-2015, 01:36 PM   #1
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Rep: Reputation: 169Reputation: 169
Mount trouble


I can not get sdc1 to mount.
And it is in fstab.

Code:
# mount /dev/sdc1
mount: can't find /dev/sdc1 in /etc/fstab or /etc/mtab
 
Old 06-19-2015, 02:46 PM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,491

Rep: Reputation: Disabled
Is it an external drive? If so it may have been given a different designation by the O/S at boot time.

Your message code says it is NOT in fstab or mtab. (Check the file.)

To mount it manually use, (sudo or switch to root)
Code:
mount /dev/sdc1 /mnt
you should then be able to see the contents with
Code:
ls /mnt
 
Old 06-19-2015, 09:13 PM   #3
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Thanks.

If my pen drive is already inserted b4 boot up, this script "breaks."

Why is that ?

It works fine if the pen drive is inserted after boot up.

Quote:
FILE=/mnt/sdb1/Toshiba_Backup
# Check if File does NOT exist
if test ! -e "$FILE"
then
thunar /mnt/sdc1/
else
echo "$FILE found."
thunar /mnt/sdb1/
fi
 
Old 06-19-2015, 09:56 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
The mount command is issued for the mountpoint, not for the device file.

If I want to mount /dev/sdc1, I have to have a mountpoint (usually) in /mount or /media to mount it to.

For example, I could do the following:

Code:
mkdir /media/ralph  <---must be issued as root
mount /dev/sdc1 /media/ralph  <---this may need to be issued as root depending on a lot of stuff I'm to sleepy to go into here.:)
cd /media/ralph
This article gives a good introduction: http://linuxconfig.org/howto-mount-usb-drive-in-linux

If it's a removable device that does not have a designated mountpoint, the current thing all the cool new distros are doing is to put it in /media/run/[username]. See this.

See man mount for more.

Last edited by frankbell; 06-19-2015 at 10:00 PM.
 
Old 06-19-2015, 11:17 PM   #5
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Thanks for the info.

But I see nothing tht would help fix the script. :-(

I will stick with the fast and stable Puppy.

Last edited by Fixit7; 06-19-2015 at 11:19 PM.
 
Old 06-20-2015, 05:27 AM   #6
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,491

Rep: Reputation: Disabled
Can't help with your script directly, but if you 'label' your pendrive or use its 'UUID', instead of its file descriptor, you should get consistent mounting.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Having mount trouble spaceballs Slackware 2 06-15-2009 04:57 AM
CD-ROM mount trouble kaito Linux - Hardware 3 02-07-2005 07:01 AM
mount trouble with DNS jmono Linux - Networking 3 06-08-2003 06:29 PM
NTFS mount trouble Redukt Linux - Hardware 13 02-17-2003 11:24 AM
NFS Mount Trouble irishb3 Linux - General 1 02-10-2003 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy

All times are GMT -5. The time now is 03:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration