LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 12-31-2012, 12:18 PM   #1
Dougski
LQ Newbie
 
Registered: Dec 2012
Location: East Lothian
Distribution: Debian for Pi
Posts: 24

Rep: Reputation: Disabled
Cannot get Iomega external hard drive to mount with Raspberry Pi, running Debian.


Hi there. Sorry, but I'm an absolute beginner with Linux. Never used it before in my life. I'm trying to mount a 230Gb Iomega external hard drive to my Raspberry Pi (running Debian for Pi, with LXDE) via a USB. I have a guide to the Pi, and it's told me to use:
sudo fdisk -l
to get a list of disks in the USB. I have no trouble finding it, but when I try to mount it (after making a mount point and changing which users can find it) with the command:
sudo mount /dev/sda1 /media/externaldrive -o=rw
it gives me an error message that says:
mount: optmap.c:199: mnt_optmap_get_entry: Assertion 'namelen' failed.
I really need help with this. As I said, I've never used Linux before, and I don't understand what the error message is telling me. Any help is really appreciated.
Thanks!

P.S. The LXDE will not automatically find or mount the hard drive for me!
 
Old 12-31-2012, 12:35 PM   #2
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.1 64bit-Gnome 3.10 on ASUS U52F
Posts: 1,308

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
Is this a self powered hard drive? You know RaspberryPi uses very little power, Just enough to power the board. So if you want to run other devices with it these devices must have their own power supply or they must use very little power.

Just for practice the excersice try to mount a regular small flash drive, perhaps 1 GB flash drive and see it the commands you are issuing are correct. The Pi should handle a small device like that.

Good luck to you!

Last edited by TroN-0074; 12-31-2012 at 12:36 PM.
 
1 members found this post helpful.
Old 12-31-2012, 12:49 PM   #3
Dougski
LQ Newbie
 
Registered: Dec 2012
Location: East Lothian
Distribution: Debian for Pi
Posts: 24

Original Poster
Rep: Reputation: Disabled
Sorry if I wasn't clear. I'm struggling to get the Pi to mount any USB devices, and yes, the hard drive is self-powered. I have managed to mount one pendrive, but I really need the large storage provided by the hard drive. Thanks for the reply!
 
Old 12-31-2012, 01:16 PM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,611
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Hi

Dougski
try
Code:
sudo mount /dev/sda1 /media/externaldrive -o rw
If it mounts ok but not on reboot you will have to make a change in /etc/fstab file, then it will mount when booted

Last edited by spiky0011; 12-31-2012 at 01:23 PM.
 
1 members found this post helpful.
Old 12-31-2012, 01:33 PM   #5
Dougski
LQ Newbie
 
Registered: Dec 2012
Location: East Lothian
Distribution: Debian for Pi
Posts: 24

Original Poster
Rep: Reputation: Disabled
Ok, thanks spiky0011, entered that, and it warned me that:
mount: warning: /media/externaldrive seems to be mounted read-only
any ideas?
Also, I'm a beginner at Linux, so I'm unsure about the second part of your reply, could you explain?
Thanks very much!

Also, when I entered the LXDE, it didn't show the external hard drive as being connected.
Any other ideas?

Last edited by Dougski; 12-31-2012 at 01:36 PM. Reason: More info
 
Old 12-31-2012, 01:37 PM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,611
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
ok do you need to write to it?

The /etc/fstab file mounts devices on boot so if it dosn't mount when you reboot we need to edit that file.
 
1 members found this post helpful.
Old 12-31-2012, 01:40 PM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,611
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Whats the output of
Code:
sudo blkid
 
Old 12-31-2012, 01:40 PM   #8
Dougski
LQ Newbie
 
Registered: Dec 2012
Location: East Lothian
Distribution: Debian for Pi
Posts: 24

Original Poster
Rep: Reputation: Disabled
Yes, it would be ideal if I could write to it. How do I access the /etc/fstab file, or do I just need to reboot. If it's just a reboot job how do I do that, just sudo halt -p?
or is there another way?

Thanks for the help, by the way!

ok, i entered the new code you gave me and it gave:
/dev/mmcblk0p1: SEC_TYPE="msdos" UUID="A1B1-918F" TYPE="vfat"
and
/dev/mmcblk0p2: UUID="10b4c001-2137-4418-b29e-57b7d15a6cbc" TYPE="ext4

does that help?
it means nothing to me!

Last edited by Dougski; 12-31-2012 at 01:46 PM. Reason: new post
 
Old 12-31-2012, 01:42 PM   #9
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,611
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
ok run
Code:
sudo blkid
post output

to reboot try
Code:
sudo /sbin/reboot
 
Old 12-31-2012, 01:47 PM   #10
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,611
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
Also can you post the /etc/fstab file.

not sure what txt editors you have on that you could try vim /etc/fstab or gedit /etc/fstab

Last edited by spiky0011; 12-31-2012 at 01:48 PM.
 
Old 12-31-2012, 01:48 PM   #11
Dougski
LQ Newbie
 
Registered: Dec 2012
Location: East Lothian
Distribution: Debian for Pi
Posts: 24

Original Poster
Rep: Reputation: Disabled
sudo blkid gave:
/dev/mmcblk0p1: SEC_TYPE="msdos" UUID="A1B1-918F" TYPE="vfat"
and
/dev/mmcblk0p2: UUID="10b4c001-2137-4418-b29e-57b7d15a6cbc" TYPE="ext4
 
Old 12-31-2012, 01:50 PM   #12
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,611
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
ok try
Code:
sudo fdisk -l
 
Old 12-31-2012, 01:51 PM   #13
Dougski
LQ Newbie
 
Registered: Dec 2012
Location: East Lothian
Distribution: Debian for Pi
Posts: 24

Original Poster
Rep: Reputation: Disabled
ok, i've rebooted, so give me a sec and i'll check if it's loaded the drive.
 
Old 12-31-2012, 01:55 PM   #14
Dougski
LQ Newbie
 
Registered: Dec 2012
Location: East Lothian
Distribution: Debian for Pi
Posts: 24

Original Poster
Rep: Reputation: Disabled
ok, i've rebooted, and the Pi has recognised the drive, which is a first, but when I try to load it in LXDE, it says:
Error mounting: mount: /dev/sda1 is not a valid block device


and when I entered:
sudo fdisk -l
the result gave me no results, apart from the SD card and another device (I don't know what it is, but I know its not the hard drive.

sorry!

Any other ideas?



I also tried to get the file like you suggested, but it told me the vim & gedit were commands not found


I should also add that till I get the Pi running, I'm keeping it offline, so I'm posting on my Windows laptop.

Last edited by Dougski; 12-31-2012 at 01:57 PM.
 
Old 12-31-2012, 01:58 PM   #15
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,611
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
ok whats the output of mount
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] mount Iomega external hard drive on debian squeeze, how to use mount command Foxbat1155 Linux - Hardware 15 02-21-2012 04:55 PM
udev rules to mount external hard drive at mount point akamikeym Gentoo 3 03-31-2010 01:12 PM
External hard drive, how do I mount it? trainee Slackware 12 08-19-2009 11:38 AM
Problem formatting/mounting an OLD Iomega external hard drive. akuthia Linux - Newbie 6 03-05-2009 07:03 PM
unable to copy to external hard-drive running 2.4.20-2m version of debian londonandrew Linux - Hardware 1 03-31-2006 03:50 PM


All times are GMT -5. The time now is 12:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration