LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-12-2009, 01:58 PM   #1
tysonmax20042003
Member
 
Registered: Dec 2008
Location: Barrie, Ontario, Canada
Distribution: Ubuntu 10.04
Posts: 55

Rep: Reputation: 15
partition, drive and admin rights?


I was wondering if anyone can help me with a problem, I had a windows and a ubuntu 8.10 partition and the linux did not work so I made a new partition because the ubuntu cd would not alow me to copy so my new partition would not alow me ether. i did not have admin rights and can you copy windows files to linux. thanks.
 
Old 01-12-2009, 03:13 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
Please break down your problems a little clearer, we cannot see or use your machine you know! Also, this is not a crackers forum, so if you should not have been doing what you were doing, you should see your system admin.
 
Old 01-13-2009, 04:00 PM   #3
tysonmax20042003
Member
 
Registered: Dec 2008
Location: Barrie, Ontario, Canada
Distribution: Ubuntu 10.04
Posts: 55

Original Poster
Rep: Reputation: 15
I am the admin but i was wondering how to get info from one drive to another.
 
Old 01-15-2009, 08:28 AM   #4
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
typically you would mount a windows partition using whatever flavour of linux you have, then share what you need to share.
 
Old 01-15-2009, 02:07 PM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,147

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
First, you need to understand that Linux system have a single "file system," with physical devices (drives, USP, network, memory, processes) all in what Windows calls "folders." So, your question about "copying" really amounts to "How can I copy a file from one folder to another folder?" Sounds simple, eh? Well, it is actually that simple once you've located the folders and files.

The "permissions" problem is, mostly, an artifact of the Ubuntu policy of installing with the root (i.e., "Administrator" in Windows-speak) account disabled so, if you need root privileges to run a command, you need to precede the command with a sudo.

First, go to the System application menu item, and select the "Terminal" item. (What follows is best done from the command line.)

If you want to access some files on your NTSF drive, you need to make that drive's contents a "folder" in the Ubuntu file system. Assuming that you'd want to have your NTFS files "available" every time you boot Ubuntu, and that you'd also want to be able to write to your NTFS drive partitions from Ubuntu, the easiest thing to do is make entries in the /etc/fstab file to tell Ubuntu the name of the partition's folder and how you want to access it. First, though, you'll need to do some housekeeping:

Enter the command sudo apt-get install ntfs-3g to make sure that the driver needed to access your NTFS drives is installed.
When that finishes, type in ls -l /dev/disk/by-uuid to see the UUID of the partitions on your drives. (You'll need the UUID for the next step. Here's a copy of the output of that command on my laptop, with the kind of line for which you should look highlighted in red:
Code:
$ ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 2009-01-15 07:13 17841f9e-fa3a-4850-aa52-0e6d0ba242e3 ->../../sda5
lrwxrwxrwx 1 root root 10 2009-01-15 07:13 22b2553f-6199-4b82-b20c-6ad7c7b6688f ->../../sda6
lrwxrwxrwx 1 root root 10 2009-01-15 07:13 2C88743C8874071C -> ../../sda2
lrwxrwxrwx 1 root root 10 2009-01-15 07:13 342D7D7923AC4107 -> ../../sda1
lrwxrwxrwx 1 root root 10 2009-01-15 07:13 92ff1a1e-9e16-4828-953e-fbdfde536452 ->../../sdb1
(Typically, sda is your first hard drive, and sdb your second drive.) The UUIDs of NTFS partitions are (again, usually) shorter than Linux UUIDs. Note that the number after the sd[ab] is the partition number, which should also be a clue about which UUID is which.

Once you've identified the partition(s) you want to attach to you file system, you need to create a place where they can be attached. Conventionally, those "places" are created as "sub-folders" of the /mnt folder, although you can, in fact, put the attachment place almost anywhere you want to put it.

For now, let's assume you want to be conventional, and make a place in the /mnt directory for the partition to go.

Enter the command sudo mkdir /mnt/xp (The "xp" is just a suggestion. You can, of course, use anything you want to use.)

Now you need to modify the /etc/fstab file to tell Ubuntu how to attach the XP partition.

Enter the command sudo gedit /etc/fstab & to open the file in the editor. (The "&" at the end of the command tells Linux to not wait for the editor to finish before it processes the next command from the terminal.) Go to the bottom of the fstab file and enter a line like this, where the part you need to change is, again, highlighted in red. (Note that you can select the UUID from the output in the terminal window, copy it to the clipboard, and paste it into the file.)
Code:
UUID=342D7D7923AC4107   /mnt/xp                ntfs-3g rw,defaults     0 0
Save the changed file but don't yet close the editor. It's prudent to check that things work before burning the bridge we crossed, eh?

Click in the terminal window and enter the command sudo mount /mnt/xp If that works, OK, if not you should get an error message telling you what's wrong, and you can go back to the editor and fix the problem. (That's why I suggested you leave it open.)

If the mount worked, verify that the NTFS file system is readable by listing its "top" level contents with a ls /mnt/xp command (without the "sudo" prefix to verify that you can read the XP C: drive without "root" privileges. You could also try a cp /mnt/xp/<some file name> /tmp to check that you can do the copy you asked about.

If all that works, you're done so you can close the gedit and terminal windows.

Note that there's really no reason to copy the files from the XP drive to the Ubuntu drive since, with the setup I described, you can use both drive from Ubuntu. If you're interested, there are XP (and Vista) drivers available (for free) that will let you access your Ubuntu drives from XP. They just attach the Ubuntu file system with a Windows "drive letter." Of course, only the actual files in the file system will be available from Windows since the "non-file" entries need the Ubuntu kernel running to exist.
 
  


Reply

Tags
admin, drive, linux, partition, rights, ubuntu, windows


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
wlassistant says I don't have admin rights hrp2171 Ubuntu 0 12-06-2006 11:20 AM
Admin rights in wine Helskov Linux - Software 0 05-31-2006 03:54 PM
Cedege and Admin Rights soulxcavtor Linux - Software 2 05-19-2006 12:00 AM
Cedega and Admin Rights soulxcavtor Linux - Newbie 1 05-18-2006 06:09 PM
Local Admin Rights on XP mankey Linux - Networking 4 08-25-2003 10:04 PM


All times are GMT -5. The time now is 08:05 AM.

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