Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 30
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
No birthdays today

Next birthdays
11/29 Sonic (58)
11/29 kamelryttarn (46)
11/30 arnsfelt (45)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: Computer Science
« Previous topic | Next topic »   

Mounting things in ubuntu

1 2 
Move Thread LAN_403
...
Fri May 12 2006, 07:15AM Print
... Registered Member #56 Joined: Thu Feb 09 2006, 05:02AM
Location: Southern Califorina, USA
Posts: 2445
Look down, I got it working the way I wanted it shades Turned out to be quite a task...

Ok, so I converted my desktop to ubuntu a while ago... All seems ok, but for the fact that I cant convince it to let me (as opposed to root) do anything with the second hard drive in the box mistrust

I have a 95gb partition which is currently mounted as /data2 (/data1 is a partition on the first hard drive, which has teh same 'problem'). The drive is located at /dev/hdb2, and right now I have the line
<file system> <mount point> <type> <options> <dump> <pass>
/dev/hdb2      /data2           vfat     users      0          0
in the /etc/fstab folder. Yes I did the mount -a after making changes.
But the drive still shows up as root under properties and they only way for me to do anything with it is to use sudo...
I tried mounting it in my /home/peter directory, tried mounting it manually, etc but it just wont give in.

How the hell do you guys make a shared directory?
Back to top
Dave Marshall
Fri May 12 2006, 12:06PM
Dave Marshall Registered Member #16 Joined: Thu Feb 02 2006, 02:22PM
Location: New Wilmington, PA
Posts: 554
Well, if you want to mount manually every time you reboot, its:

umount /dev/{devicehere}
mount -t vfat -o {yourusernamehere} /dev/{devicehere} /{whatever directory you mount it to}

Minus all the brackets of course.

That will allow whichever user name you enter to utilize the drive. If you want it set so it mounts it automatically when you reboot, you'll have to edit a configuration file. I'm not positive how to do that one, as I've never run into it.

Dave
Back to top
joshua_
Fri May 12 2006, 07:36PM
joshua_ Registered Member #61 Joined: Thu Feb 09 2006, 05:50AM
Location: Mountain View, CA
Posts: 43
Dave Marshall wrote ...

umount /dev/{devicehere}
mount -t vfat -o {yourusernamehere} /dev/{devicehere} /{whatever directory you mount it to}

Not quite... -o uid={yourusernamehere}

For reference, an entry in my fstab for my digital camera looks like this:

/dev/sda1 /mnt/image vfat user,uid=1000 0 0

I wasn't sure whether uid would resolve a name, so I just decided to use my numeric uid (find it with "id -u").

joshua
Back to top
...
Sat May 13 2006, 06:50AM
... Registered Member #56 Joined: Thu Feb 09 2006, 05:02AM
Location: Southern Califorina, USA
Posts: 2445
hmm, this is going somewhere...

I added the uid=1000 in the fstab file, and now I can get to the drive smile Unfortunately it is still stuck at 755 access; so no one else can angry

To get it to go to 777 I have tried
sudo chmod 777 /data2
and making a directory inside of the drive and trying to change its permissions... but no luck. It doesn't give any error message, but it stays 755.

So what gives?
Thanks!

---Edit:---
I found that if I use umask=0000 then I get full access to them smile

Ok, so here is the last problem....
How do I make a folder appear in more than on place?

I am setting up this harddrive with all of my songs/homework/other files which will go on a small intranet ftp server. I have it set up so each account has its own home directory at /data1/ftp/[user name], which is working great. But now I want to share the larger drive (/data2) in each of the home directories of the users, so it would be like
/data1/ftp/mom/data2
/data1/ftp/dad/data2
such that each user could have the /[user name] to put personal files, and have the shared ones in the /data2 drive (or directory on the drive)

It was so easy with slimftp, why cant proftp be the same cry

If there isn't some easy way to mount the drive in multiple places I am going to find a better ftp sever that is completely virtual; none of this requiring the ftp users/directories to have real accounts/directories on the server mistrust
Back to top
Steve Conner
Sat May 13 2006, 03:36PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
If you want the one drive to appear in several places, maybe symlinks will work. Same idea as shortcuts in Windows or aliases on the Mac.
Back to top
Hellmark
Sat May 13 2006, 10:06PM
Hellmark Registered Member #189 Joined: Thu Feb 16 2006, 07:43PM
Location: Winfield, Missouri, USA
Posts: 46
yeah symlinks will work, but only for direct access of the machine. If you do a network mount via samba or something, symlinks will not work, because the computer with it mounted will see the symlink and think it means on itself, rather than on the machine that actually has the share. FTP will work though, with most servers (also, sometimes, like if you have the ftp access to show that account's default directory as root for them they won't be able to access anything outside of it even via symlink.)
Back to top
...
Sun May 14 2006, 06:59AM
... Registered Member #56 Joined: Thu Feb 09 2006, 05:02AM
Location: Southern Califorina, USA
Posts: 2445
Ok, I am very close...

The symlinks didn't work because I was making an inter-block-device link. But
mount --bind /data/secondary/ftp /data/primary/FTP-shared/mike/data
(I changed the names of the drives around so I could remember what was going on, /data/secondary is the drive that has the files on it and /data/primary is the drive that the folder referring to the drive is on.

In an attempt to make if go on its own I tried adding...
/data/secondary/ftp /data/primary/FTP-shared/mike/data vfat umask=0000 0 0
to fstab but I get an error that it is not a block device angry
I also tried adding
/dev/hdb2 /data/primary/FTP-shared/mike/data vfat umask=0000 0 0
but that didn't work either.

So how would I make ubuntu do the mount on its own?

Thanks!
Back to top
Hellmark
Sun May 14 2006, 11:31PM
Hellmark Registered Member #189 Joined: Thu Feb 16 2006, 07:43PM
Location: Winfield, Missouri, USA
Posts: 46
Yeah, for unmounted drives, you have to use a different setup, and generally not doable over ftp
Back to top
...
Mon May 15 2006, 01:50AM
... Registered Member #56 Joined: Thu Feb 09 2006, 05:02AM
Location: Southern Califorina, USA
Posts: 2445
I made it work with the
mount --bind /data/secondary/ftp /data/primary/FTP-shared/mike/data
command, but I don't want to tye that 5 times each time reboot cheesey

There has to be like an autoexec.bat for linux?
Back to top
Steve Conner
Mon May 15 2006, 10:18AM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Yea, I think it's called .login or suchlike.
Back to top
1 2 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.