LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-11-2005, 10:25 PM   #1
Kingrames
Member
 
Registered: Feb 2005
Distribution: Ubuntu (Breezy Badger)
Posts: 32

Rep: Reputation: 15
Angry I can't get ubuntu to work with my external hard drive!


this was working FLAWLESSLY before installing BB.

I could access info on my external, one hundred and sixty gigabyte hard drive, without ANY PROBLEMS.

now, I get new errors every time I try to do something.

this just completely blew my mind.

kingrames@kingrames:/media$ cd sda1
bash: cd: sda1: Permission denied
kingrames@kingrames:/media$ sudo cd sda1
sudo: cd: command not found

WHAT the HELL is wrong with this?

I have tried everything to get this damn drive to work. I can't chmod ANYTHING because it's a read-only drive.

I can't view anything because I don't have the permissions.

How, HOW am I supposed to access this drive? what is the POINT of locking out the user from hardware by default?


especially something as important as an external drive!

and I already did sudo chmod -R 777 /media/onesixtygig
and sudo umount -r /dev/sda1
and sudo chmod a+rx /media/onesixtygig
(this one ticks me off the most - every single file on the hard drive is listed along with an error message saying that I can't change the file permissions due to it being read-only)

double-clicking on the link to onesixtygig on my desktop returns the error message "You don't have the permissions to view these fles."

atttempting to unmount it says "Unable to Eject Media - umount: only root can unmount /dev/sda1 from /media/sda1
eject: unmount of `/media/sda1' failed
"

I'm just about to snap - can anyone tell me what I'm doing wrong?
 
Old 11-12-2005, 01:02 AM   #2
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
What does your /etc/fstab look like? Post it here
Code:
cat /etc/fstab
What filesystem does your external hard drive have?
Code:
sudo fdisk -l
 
Old 11-13-2005, 10:54 PM   #3
Kingrames
Member
 
Registered: Feb 2005
Distribution: Ubuntu (Breezy Badger)
Posts: 32

Original Poster
Rep: Reputation: 15
kingrames@kingrames:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / reiserfs notail 0 1
/dev/hda3 /media/hda3 ntfs defaults 0 0
/dev/sda1 /media/sda1 ntfs defaults 0 0
/dev/hda2 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0


kingrames@kingrames:~$ sudo fdisk -l
Password:

Disk /dev/hda: 30.7 GB, 30758289408 bytes
16 heads, 63 sectors/track, 59598 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 13874 6992118 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/hda2 13874 15436 787185 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/hda3 * 15436 59591 22254183 7 HPFS/NTFS
Partition 3 does not end on cylinder boundary.

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 19457 156288321 7 HPFS/NTFS

-----
Hope this helps.
 
Old 11-13-2005, 11:16 PM   #4
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Can you try changing this line in your /etc/fstab

Code:
/dev/sda1 /media/sda1 ntfs defaults 0 0
to read like this instead?

Code:
/dev/sda1 /media/sda1 ntfs nls=utf8,umask=0222 0 0
Then type this in the terminal
Code:
sudo mount -a
Any difference?
 
Old 11-13-2005, 11:22 PM   #5
Kingrames
Member
 
Registered: Feb 2005
Distribution: Ubuntu (Breezy Badger)
Posts: 32

Original Poster
Rep: Reputation: 15
no, no difference.
 
Old 11-14-2005, 12:04 AM   #6
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Quote:
Originally posted by Kingrames
no, no difference.
Theoretically
Code:
sudo mount -a
should remount your partitions. Maybe try rebooting?
 
Old 11-14-2005, 09:11 PM   #7
Kingrames
Member
 
Registered: Feb 2005
Distribution: Ubuntu (Breezy Badger)
Posts: 32

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by aysiu
Theoretically
Code:
sudo mount -a
should remount your partitions. Maybe try rebooting?
SWEET!

oh thank you guys. this is wonderful.

now, just to make sure I get something out of this:

what did that command do that I changed in my /etc/fstab file?

was it just a clarification of what my usb drive really was? Was linux trying to use an outdated or obslete driver?
 
Old 11-14-2005, 10:35 PM   #8
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
To be perfectly honest, I don't know. I just copied that off
http://www.ubuntuguide.org/#automountntfs

If you want to understand more the nitty-gritty of /etc/fstab, I highly recommend
http://www.tuxfiles.org/linuxhelp/fstab.html
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux, Windows and a external hard drive.. how to make this work. spfdz Linux - Hardware 5 09-04-2009 04:31 AM
Problems getting external USB hard drive to work pwaring Debian 4 11-24-2008 08:15 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
Please Help - Trash doesn't work on external hard drive perrond Ubuntu 1 08-17-2005 08:03 AM
XS Drive II external USB hard drive/card reader max74 Linux - Hardware 7 10-21-2003 10:41 PM

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

All times are GMT -5. The time now is 04:12 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