LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-01-2015, 03:15 PM   #1
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Rep: Reputation: 15
Mount point mappings have me baffled


I am trying to configure a Raspberry Pi to run as a file server, have installed SAMBA and have attached a 1TB external hard drive, which appears to have 4 partitions. Using Xwindows, I thought I had the advertised share mapped to the 1TB partition. So I physically placed the Pi in its permanent home (where it is difficult to get its video signal to a monitor etc.), so help with command line tools is best for me.

My problem is the share is acting like it only has about 2GB of space. And I am not sure why the mount command does not show me the partition.

I have attached to this post some output which has me baffled.

Thanks
Jonathan
Attached Files
File Type: txt which_is_which.txt (2.7 KB, 30 views)
 
Old 05-01-2015, 03:32 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
sda4 is not mounted. What is the output of "mount -a"?

Also, you shouldn't be using ntfs unless you absolutely have to. If this RPi is going to act as a file server in a closet and the external drive is not going to be removed, then get ntfs off of there and replace it with a native Linux FS like ext4.

Your root file system is also completely full, where did all of your space go? Did you dump files into /media/PAR1TB without a drive mounted there? If that's the case, they'll be dumped onto your SD card instead.

Last edited by suicidaleggroll; 05-01-2015 at 03:34 PM.
 
1 members found this post helpful.
Old 05-02-2015, 07:29 PM   #3
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Mostly there

I straightened out the mess I made (you would have laughed or cried), and it now works (planning on keeping NTFS, as I have no other rig that can read EXT4 file systems).

Got the drive mounted with mount -a. But I cannot figure out how to get it to mount at boot time automatically - etc/mtab and etc/fstab look okay to me. Please see attached.

Many thanks

Jonathan
Attached Files
File Type: txt response.txt (3.0 KB, 16 views)
 
Old 05-02-2015, 09:14 PM   #4
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Rep: Reputation: 265Reputation: 265Reputation: 265
This is just a shot in the dark, but try adding "auto" to the options for the partition, so it looks like this:
Code:
/dev/sda4 /media/PAR1TB ntfs-3g rw,defaults,auto 0 0
 
Old 05-02-2015, 09:24 PM   #5
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,317
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
On this computer, I have two partitions on a external drive that I set to mount on boot using the "auto" option maples mentioned. Here are the relevant lines from my /etc/fstab (I used the UUIDs to identify the partitions):

Code:
UUID=1655a198-15a7-471f-9e99-e3fc9fd92ca0  /media/sdb1  ext3   rw,user,auto      0  1
UUID=7900ade7-de36-41e5-88b5-2d7aaa8adcd4  /media/sdb5  ext3   rw,user,auto       0  1
I've used similar configurations on other boxes.

Last edited by frankbell; 05-02-2015 at 09:26 PM.
 
Old 05-03-2015, 02:50 PM   #6
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Still does not mount at boot time

tried adding "user", removing "defaults", changing fschk parameter from 0 to 1, and then 1 to 2.

Same results - does not mount at boot time, "mount -a" is always successful.

attached some fdisk and parted output

I would also note that the entry in mtab seems to have no effect (and I only added an mtab entry because it was not being mounted from fstab)

Any thoughts?

Thanks
Jonathan
Attached Files
File Type: txt response2.txt (2.2 KB, 15 views)
 
Old 05-03-2015, 03:03 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,692

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Is the drive USB powered or does if have a separate power supply? At boot time there may not be enough current to spin up the the drive. Have you looked at the output of the dmesg command?
 
Old 05-03-2015, 05:00 PM   #8
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
separately powered. dmesg output attached

Drive is independently powered

dmesg output is attached. The line at 27.xxx is generated by "mount -a"
Attached Files
File Type: txt response3.txt (32.5 KB, 21 views)
 
Old 05-03-2015, 05:56 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,692

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Is the drive always powered on or do you turn it on when booting the Pi?
 
Old 05-04-2015, 12:04 AM   #10
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Always on
 
Old 05-04-2015, 06:13 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,692

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
It is possible the drive is going to sleep and not waking back up fast enough. Or does an immediate reboot not mount the drive either?
 
Old 05-04-2015, 05:57 PM   #12
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
I reboot

I restart with

sudo shutdown -r "now"

so I doubt the drive is going to sleep, and it is not getting remounted.
 
Old 05-04-2015, 08:13 PM   #13
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,317
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
What is the make/model of this external?
 
Old 05-04-2015, 08:33 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,692

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
The actual drive is a WDC WD10 EARS-00MVWB0. Since it has a separate power supply maybe a WDC My Book Essential.

Last edited by michaelk; 05-04-2015 at 08:36 PM.
 
Old 05-05-2015, 03:57 AM   #15
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
I salvaged the hard drive

... from a MyBook and stuck it in an enclosure
 
  


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
USB mount point is not shown in /dev entry point garryhk Linux - Software 3 12-12-2012 05:28 PM
puppy+grub saves ram installed mount point as HD install mount point agualust Linux - Newbie 0 04-10-2009 11:23 AM
mount NFS to mount point then share out the mount point ionic_slim Linux - Networking 2 04-20-2008 12:17 PM
CDROM won't mount, I'm baffled! Recirqie SUSE / openSUSE 8 01-10-2005 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:03 AM.

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