|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
automount new partition user-writableHello all,
So, this is something fun and different....for some time I've been wanting to get something to back up both my work computer and my home computers, 2/3 of which are Linux (I keep the 3rd for my wife, I swear I hardly use it!). Anyway, today at lunch I bought a Maxtor 1TB One Touch external USB drive. Got it back to my desk, plugged in the AC adapter and USB cables, everything popped up with no problem. So far, so good. So, I was eager to go ahead and get my back up of my home directory done. So I started up PyBackPack, selected everything I needed, selected "show details", and started the backup. Eventually it got to a line where it said "Starting rdiff-backup". However, when I did a ps on my system, rdiff-backup was not running, and there didn't seem to be anything happening on my dest. directory on my ext. drive. I stopped and started a few more times (what's that definition of insanity again?), but, of course, got the same result. Did some digging, found out that my ext. drive was formatted NTFS. Now I know that Linux has come a long way with dealing with NTFS partitions, but I wondered if that was the reason my back up wasn't happening. So I unmounted my drive, ran gparted, shrunk my NTFS partiion (because I figured it'd be handy to have for my Windows comp at home), and created a new ext partition. Everything worked fine, I unplugged my drive and plugged it back in. Both partitions automounted under /media, and the now smaller NTFS drive works as before. The problem I'm having, though, is that my ext drive does not seem to be writable by non-root users. Can someone shed some light on this? Does something have to go in fstab for this partition (there's nothing for the other partition that just works)? Thanks! Brian -- Brian Johnson "And I will be even more undignified than this, and will be humble in my own sight." (2 Samuel 6:22) _______________________________________________ Dulug mailing list Dulug@... https://lists.dulug.duke.edu/mailman/listinfo/dulug |
|
|
Re: automount new partition user-writableOn Tue, 28 Apr 2009, Brian Johnson wrote: > Hello all, > > So, this is something fun and different....for some time I've been wanting to get something to back up both my work > computer and my home computers, 2/3 of which are Linux (I keep the 3rd for my wife, I swear I hardly use it!). Anyway, > today at lunch I bought a Maxtor 1TB One Touch external USB drive. Got it back to my desk, plugged in the AC adapter and > USB cables, everything popped up with no problem. So far, so good. > > So, I was eager to go ahead and get my back up of my home directory done. So I started up PyBackPack, selected everything > I needed, selected "show details", and started the backup. Eventually it got to a line where it said "Starting > rdiff-backup". However, when I did a ps on my system, rdiff-backup was not running, and there didn't seem to be anything > happening on my dest. directory on my ext. drive. I stopped and started a few more times (what's that definition of > insanity again?), but, of course, got the same result. Did some digging, found out that my ext. drive was formatted NTFS. > Now I know that Linux has come a long way with dealing with NTFS partitions, but I wondered if that was the reason my > back up wasn't happening. So I unmounted my drive, ran gparted, shrunk my NTFS partiion (because I figured it'd be handy > to have for my Windows comp at home), and created a new ext partition. Everything worked fine, I unplugged my drive and > plugged it back in. Both partitions automounted under /media, and the now smaller NTFS drive works as before. The problem > I'm having, though, is that my ext drive does not seem to be writable by non-root users. Can someone shed some light on > this? Does something have to go in fstab for this partition (there's nothing for the other partition that just works)? > Thanks! it's writable by whomever owns the paths. so in your ext3 partition just make a directory named 'brian' and chown the dir mbjohn.mbjohn and then do your backups. and might I recommend you take a look at duplicity for encrypting your backups? :) -sv _______________________________________________ Dulug mailing list Dulug@... https://lists.dulug.duke.edu/mailman/listinfo/dulug |
|
|
Re: automount new partition user-writableThanks Seth for the quick response. After I read it, I had to smack myself; couldn't believe I missed something that should've been so obvious. I was so obsessed with the whole automount thing that I just didn't think of creating a directory that had me as owner.
And, thanks for the duplicity recommendation; I'll definitely give it a go when I get the chance to run my backups. I assume it stands on its own and isn't used in conjunction with PyBackPack or other backup packages? Brian On Tue, Apr 28, 2009 at 4:53 PM, Seth Vidal <skvidal@...> wrote:
-- Brian Johnson "And I will be even more undignified than this, and will be humble in my own sight." (2 Samuel 6:22) _______________________________________________ Dulug mailing list Dulug@... https://lists.dulug.duke.edu/mailman/listinfo/dulug |
|
|
Re: automount new partition user-writableSeth Vidal wrote:
> and might I recommend you take a look at duplicity for encrypting your > backups? :) Thanks, I hadn't heard of this project before and just got a new, hackable NAS (D-Link DNS-321) for backup and archiving. -- Andrew Todd at@... _______________________________________________ Dulug mailing list Dulug@... https://lists.dulug.duke.edu/mailman/listinfo/dulug |
|
|
Re: automount new partition user-writableAlternatively, if you are doing rsyncs and not packaged archives, I'd
recommend using dm-crypt for full drive encryption. I've been using it on internal and external/USB drives for over a year now with no trouble. Starting with Fedora 10, you can set your hard drive to be automatically encrypted during the installation process. I originally used TrueCrypt for cross-platform compatibility, but thanks to Free OTFE [1] encrypted partitions can be mounted on Windows too! Michael Ansel [1] http://www.freeotfe.org/ On Tue, Apr 28, 2009 at 8:57 PM, Andrew Todd <at@...> wrote: > Seth Vidal wrote: > > and might I recommend you take a look at duplicity for encrypting your >> backups? :) > > Thanks, I hadn't heard of this project before and just got a new, > hackable NAS (D-Link DNS-321) for backup and archiving. > > -- > Andrew Todd > at@... > > _______________________________________________ > Dulug mailing list > Dulug@... > https://lists.dulug.duke.edu/mailman/listinfo/dulug > _______________________________________________ Dulug mailing list Dulug@... https://lists.dulug.duke.edu/mailman/listinfo/dulug |
|
|
Re: automount new partition user-writable-Build and install fuse (http://fuse.sourceforge.net/) -Build and install ntfs-3g (http://www.ntfs-3g.org/) -Set suid bit on ntfs-3g binary. -Create the directory that the drive will be mounted to and give it proper permissions. -Create an fstab entry similar to this: /dev/sda1 /mnt/windows ntfs-3g locale=en_US.utf8,user,users,noauto 0 0 (http://forum.ntfs-3g.org/viewtopic.php?f=3&t=884) -Now for the scary part that I don't like. Since this is a dynamic device udev picks it up every time you plug it in and gives it either default "block" or "drive" permissions. You end up having to hack around with something like 50-udev.rules and setting the permissions more forgiving. I think the user that wants to mount the drive has to have write access to it and by default only root has write access to devices. If that doesn't make since, look at the file and it will be apparent that devices are coming in as root.root 600 and they need to be at least root.x 660. -Do it all again when a kernel update is rolled out! :) Needless to say, this is a pretty painful process but if you ever have to do it, thats how I pull it off for one of my users. Dustin Minnich Nicholas IT 613-8148 Michael Ansel wrote: Alternatively, if you are doing rsyncs and not packaged archives, I'd recommend using dm-crypt for full drive encryption. I've been using it on internal and external/USB drives for over a year now with no trouble. Starting with Fedora 10, you can set your hard drive to be automatically encrypted during the installation process. I originally used TrueCrypt for cross-platform compatibility, but thanks to Free OTFE [1] encrypted partitions can be mounted on Windows too! Michael Ansel [1] http://www.freeotfe.org/ On Tue, Apr 28, 2009 at 8:57 PM, Andrew Todd at@... wrote: _______________________________________________ Dulug mailing list Dulug@... https://lists.dulug.duke.edu/mailman/listinfo/dulug |
|
|
Re: automount new partition user-writableOn Tue, 28 Apr 2009, Brian Johnson wrote: > Thanks Seth for the quick response. After I read it, I had to smack myself; couldn't believe I missed something that > should've been so obvious. I was so obsessed with the whole automount thing that I just didn't think of creating a > directory that had me as owner. > > And, thanks for the duplicity recommendation; I'll definitely give it a go when I get the chance to run my backups. I > assume it stands on its own and isn't used in conjunction with PyBackPack or other backup packages? duplicity runs by itself - but I thought there was some plan to have it work with pybackpack, too. only one way to find out :) -sv _______________________________________________ Dulug mailing list Dulug@... https://lists.dulug.duke.edu/mailman/listinfo/dulug |
| Free embeddable forum powered by Nabble | Forum Help |