Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

External USB HDD
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
youlikeicecream
LXF regular


Joined: Fri Jun 03, 2005 12:40 pm
Posts: 721
Location: Oxford

PostPosted: Fri Jun 03, 2005 12:58 pm    Post subject: External USB HDD Reply with quote

HI, I am having a small problem. I am using a USB2 160GB LACIE External HDD, formatted as a primary FAT32 partition ... Whenever the Disk is connected, an Unmounted icon is placed on the desktop ... I can click on it and it mounts just fine. Unfortunately I cannot write to it. Checked the permissions and I should be able to write to it but it still denies me write access. Ideally I would like to just put the entry for this disk into my /etc/fstab file. And I have done so with a command as such :

/dev/sdb1 /mnt/LACIE vfat 0 0 (I think thats what I put) I have even tried it with fmask=775,dmask=775

but it still wont let me write. Also when I have mounted sdb1 to /mnt/LACIE the automated USB icon gets confused because it wants to mount the device sdb1 to /media/sdb1.

I am using Kubuntu (latest) with KDE 3.4

any help would be most appreciated

Mike Smith Smile
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
youlikeicecream
LXF regular


Joined: Fri Jun 03, 2005 12:40 pm
Posts: 721
Location: Oxford

PostPosted: Fri Jun 03, 2005 4:01 pm    Post subject: RE: External USB HDD Reply with quote

Can anyone help ?
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
towy71
Moderator


Joined: Wed Apr 06, 2005 3:11 pm
Posts: 4257
Location: wild West Wales

PostPosted: Fri Jun 03, 2005 4:42 pm    Post subject: RE: External USB HDD Reply with quote

my advice would be to let udev create the icon and then as root in a terminal type: umount /media/sdb1
then type mount -rw /media/sdb1
not pretty but I think it would work
ymmv
Dick
_________________
still looking for that door into summer
Back to top
View user's profile Send private message
youlikeicecream
LXF regular


Joined: Fri Jun 03, 2005 12:40 pm
Posts: 721
Location: Oxford

PostPosted: Fri Jun 03, 2005 6:28 pm    Post subject: RE: External USB HDD Reply with quote

thanks for the advice, but that would leave my user unable to write to the drive I would have thought? What I really wanted was for the drive to be mounted at boot as udev doesn't mount it at boot, you actually have to click on the icon to mount it. I wanted to store icons and piccies on the USB disk, and so it would be nice for it to mount at boot so that my icons and backgrounds are available when i log in.

Mike Smile
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
towy71
Moderator


Joined: Wed Apr 06, 2005 3:11 pm
Posts: 4257
Location: wild West Wales

PostPosted: Fri Jun 03, 2005 11:53 pm    Post subject: RE: External USB HDD Reply with quote

doh! There was I shooting my mouth off again, the /etc/fstab section should read:

/dev/hda1 /mnt/lacie vfat defaults 0 0

HTH
Dick
_________________
still looking for that door into summer
Back to top
View user's profile Send private message
skecs



Joined: Fri Apr 22, 2005 10:22 am
Posts: 76
Location: Bathurst, NSW Australia

PostPosted: Sat Jun 04, 2005 8:27 am    Post subject: RE: External USB HDD Reply with quote

towy71 -
"doh! There was I shooting my mouth off again, the /etc/fstab section should read:

/dev/hda1 /mnt/lacie vfat defaults 0 0"

Don't you mean:

/dev/sda1 /mnt/lacie vfat defaults 0 0 Confused
_________________
Regards from
Downunder!
.... _
... (0)>
... / /\
.. / / .)
.. V_/_
Linux Powered!
Back to top
View user's profile Send private message
towy71
Moderator


Joined: Wed Apr 06, 2005 3:11 pm
Posts: 4257
Location: wild West Wales

PostPosted: Sat Jun 04, 2005 8:30 am    Post subject: RE: External USB HDD Reply with quote

double doh Wink
nice sig skecs
_________________
still looking for that door into summer
Back to top
View user's profile Send private message
skecs



Joined: Fri Apr 22, 2005 10:22 am
Posts: 76
Location: Bathurst, NSW Australia

PostPosted: Sat Jun 04, 2005 8:56 am    Post subject: RE: External USB HDD Reply with quote

Ta - it's how I learnt to draw on computers!

There is a whole site of ASCII penguins at ASCII-Pinguine:

http://www.informatik.uni-freiburg.de/~diesch/asciipinguin.html
_________________
Regards from
Downunder!
.... _
... (0)>
... / /\
.. / / .)
.. V_/_
Linux Powered!
Back to top
View user's profile Send private message
wyliecoyoteuk
LXF regular


Joined: Sun Apr 10, 2005 11:41 pm
Posts: 3443
Location: Birmingham, UK

PostPosted: Sat Jun 04, 2005 9:33 am    Post subject: RE: External USB HDD Reply with quote

The best solution would be to write a script for udevd.

this link might help.

http://www.linuxformat.co.uk/index.php?name=PNphpBB2&file=viewtopic&t=61
_________________
The sig between the asterisks is so cool that only REALLY COOL people can even see it!

*************** ************
Back to top
View user's profile Send private message
youlikeicecream
LXF regular


Joined: Fri Jun 03, 2005 12:40 pm
Posts: 721
Location: Oxford

PostPosted: Sat Jun 04, 2005 10:12 am    Post subject: RE: External USB HDD Reply with quote

/dev/sda1 /mnt/lacie vfat defaults 0 0

is what I have tried before, i will see if that works this time and then if not will try ther udev thing

thanks
mike Smile
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
youlikeicecream
LXF regular


Joined: Fri Jun 03, 2005 12:40 pm
Posts: 721
Location: Oxford

PostPosted: Sat Jun 04, 2005 10:21 am    Post subject: RE: External USB HDD Reply with quote

ok, i tried that ... didn't mount at boot and as root i tried this ...

root@Kubuntu:/home/mike # mount /mnt/LACIE
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
youlikeicecream
LXF regular


Joined: Fri Jun 03, 2005 12:40 pm
Posts: 721
Location: Oxford

PostPosted: Sat Jun 04, 2005 10:23 am    Post subject: RE: External USB HDD Reply with quote

PS . it is sdb1, my ntfs SATA disk is sda1

mike Smile
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
youlikeicecream
LXF regular


Joined: Fri Jun 03, 2005 12:40 pm
Posts: 721
Location: Oxford

PostPosted: Sat Jun 04, 2005 10:27 am    Post subject: RE: External USB HDD Reply with quote

root@Kubuntu:/home/mike # mount -t vfat -rw /dev/sdb1 /mnt/LACIE
>>couldnt write to it as root.

root@Kubuntu:/home/mike # chmod 775 /mnt/LACIE
>>still couldnt write

am confused
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Nigel
LXF regular


Joined: Fri Apr 08, 2005 9:03 pm
Posts: 1141
Location: Gloucestershire, UK

PostPosted: Sat Jun 04, 2005 10:36 am    Post subject: RE: External USB HDD Reply with quote

shouldn't that be

mount -t vfat -o rw /dev/sdb1 /mnt/LACIE

???
at least, that's what is implied by the man page for mount under SuSE 9.2
_________________
Hope this helps,

Nigel.
Back to top
View user's profile Send private message
youlikeicecream
LXF regular


Joined: Fri Jun 03, 2005 12:40 pm
Posts: 721
Location: Oxford

PostPosted: Sat Jun 04, 2005 10:41 am    Post subject: RE: External USB HDD Reply with quote

yeah, thats it. But it allows only root to write to it. what do i need to do to get access for my user (also part of the 'root' group)
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast