LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-26-2006, 12:55 PM   #1
rf_ccr
LQ Newbie
 
Registered: Sep 2006
Distribution: Ubuntu Edgy
Posts: 10

Rep: Reputation: 0
Terminal


Hello , I'm new to Ubuntu

can someone tell me what the command is for accessing the C:/ drive, LET ME EXPLAIN, IT's not what you think:

In the terminal to change directories u use the cd command

prompt:~$ cd [directory]

my question is I am trying to copy something to my C:/ drive but I don't have permission so I have to sudo chmod my c:/ drive permissions, but i don't know how to get the prompt to say:

prompt:C:/$

can anyone please help me?
 
Old 09-26-2006, 01:13 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
c:/ ? this is not windows, you can't explain things in a windows context as it means nothing... your prompt will never say what you want as it doesn't exist outside of windows.

btw have you ever really wonder wtf "C:" means??? total nonsense and yet windows users say linux os obscure...
 
Old 09-26-2006, 01:14 PM   #3
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Yes we can help you, but you really need to read some newbie guides on mounting partitions.

In linux, drives are not "lettered" a:, b:, c: etc so you can never get a C: prompt. In linux, everything is a file (even your mouse). So what you need to do is create a directory (or mount point) and then mount the proper partition on that mount point.

See this guide for help, specifically section 5.2.
 
Old 09-26-2006, 01:26 PM   #4
rf_ccr
LQ Newbie
 
Registered: Sep 2006
Distribution: Ubuntu Edgy
Posts: 10

Original Poster
Rep: Reputation: 0
re: terminal

thx to pljvaldez....


as for acid_kewpie's reply, I know very well what C:/ and i knew also that I could never get the prompt to say C:/$, that's obvious...i'm not that dumb... my windows hard drive has the label "C:/" and not "hda2" like some others are so that's why i said it that way. Anyways...thanks for stomping on my head when i'm already down... instead of giving me useful advice and yet linux users think they're so smart, but when someone new comes along with a genuine problem, they can't give any advice.....instead only smart remarks.



thx again to pljaldez
 
Old 09-26-2006, 01:35 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
rf_ccr, to find out the "hda2" type label, try running /sbin/fdisk -l (that's L, not 1). You might have to be root, but is should spit out something to you. Post the command output here and we can help you figure out which one you need to mount. It should look something like this
Code:
root@Aurelie:/home/nitto# fdisk -l

Disk /dev/hdh: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdh1 1 1175 9438156 83 Linux
/dev/hdh2 1176 9729 68710005 5 Extended
/dev/hdh5 1176 2480 10482381 83 Linux
/dev/hdh6 2481 4438 15727603+ 83 Linux
/dev/hdh7 4439 9529 40893426 83 Linux
/dev/hdh8 9530 9660 1052226 83 Linux
/dev/hdh9 9661 9729 554211 82 Linux swap / Solaris

Disk /dev/sda: 257 MB, 257425408 bytes
16 heads, 32 sectors/track, 982 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 982 251376 e W95 FAT16 (LBA)

Last edited by pljvaldez; 09-26-2006 at 01:37 PM.
 
Old 09-26-2006, 01:44 PM   #6
rf_ccr
LQ Newbie
 
Registered: Sep 2006
Distribution: Ubuntu Edgy
Posts: 10

Original Poster
Rep: Reputation: 0
re: terminal

here it is

rjf205@rjf205-laptop:/sbin$ sudo fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 654 5253223+ 12 Compaq diagnostics
/dev/hda2 * 655 8331 61665502+ 7 HPFS/NTFS
/dev/hda3 8332 9631 10442250 83 Linux
/dev/hda4 9632 9729 787185 82 Linux swap / Solaris
 
Old 09-26-2006, 01:55 PM   #7
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
So you do want /dev/hda2.

So the process should be for you to do the following
Code:
sudo mkdir /mnt/windows
sudo mount -t ntfs -o ro,umask=222 /dev/hda2 /mnt/windows
Then you can cd /mnt/windows and you should be able to see all of your windows drive. Note that you can't write to the partition, just read and copy files from it (linux can hose up an NTFS partition if you try to write to it). Anyway, when you're done just sudo umount /mnt/windows

Note also that you can use your file browser (like explorer on windows. I think ubuntu uses nautilis by default) to explore the drive when it's mounted also. You don't have to use the command line.

Last edited by pljvaldez; 09-26-2006 at 01:57 PM.
 
Old 09-26-2006, 02:02 PM   #8
rf_ccr
LQ Newbie
 
Registered: Sep 2006
Distribution: Ubuntu Edgy
Posts: 10

Original Poster
Rep: Reputation: 0
re: terminal

thx it worked.
 
Old 09-26-2006, 02:02 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by rf_ccr
thx to pljvaldez....


as for acid_kewpie's reply, I know very well what C:/ and i knew also that I could never get the prompt to say C:/$, that's obvious...i'm not that dumb... my windows hard drive has the label "C:/" and not "hda2" like some others are so that's why i said it that way. Anyways...thanks for stomping on my head when i'm already down... instead of giving me useful advice and yet linux users think they're so smart, but when someone new comes along with a genuine problem, they can't give any advice.....instead only smart remarks.



thx again to pljaldez
if it's so obvious why on earth did you say it in such an absolutely unavoidablly straight way? how can anyone seriously take "how can i make my prompt say "prompt:C:/$?" any other way???
 
Old 09-27-2006, 02:16 AM   #10
jon23d
Member
 
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie
btw have you ever really wonder wtf "C:" means??? total nonsense and yet windows users say linux os obscure...
Is it really nonsense though? Micorosft chose to not spread folders across drives/partitions. It doesn't seem that crazy to me, it's almost the same as /dev/hda, kind of...
 
Old 09-27-2006, 10:38 AM   #11
lordSaurontheGreat
Member
 
Registered: Sep 2006
Distribution: Gentoo, SuSE 10
Posts: 94

Rep: Reputation: 16
Quote:
Originally Posted by jon23d
Is it really nonsense though? Micorosft chose to not spread folders across drives/partitions. It doesn't seem that crazy to me, it's almost the same as /dev/hda, kind of...
No... not really.

The power of using mount points is evident when you have a lot of really small hard drives.

Some people I know build systems with a lot of 10GB hard drives. Then they mount them like so:

/dev/hda /boot
/dev/hdb /usr
/dev/hdc /root
/dev/hdd /home
/dev/hde /opt

And so on and so forth. /mnt and /media are really just for USB, floppies, and optical media in that mode of thinking. Of course, I have hard drives I mount under /mnt because they're not part of my linux system, but that's why Linux does it that way.

Can you do that in Windows?

No.

The closest equivalent in Windows I've EVER heard of is RAIDing your drives together. Not the best of options.
 
Old 09-27-2006, 09:18 PM   #12
jon23d
Member
 
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Rep: Reputation: 15
While I totally agree that the linux fs and mounting scheme is superior, I would like to play devil's advocate.

You can certainly spread, say:

'windows' -> c:\
'documents and settings' -> d:\
'program files' -> e:\
etc..

Is it as easy? No, but I have certainly set up systems with a similar schema in the past.
 
Old 09-28-2006, 09:55 AM   #13
lordSaurontheGreat
Member
 
Registered: Sep 2006
Distribution: Gentoo, SuSE 10
Posts: 94

Rep: Reputation: 16
My previous attempts to do that have always failed. Windows just hates moving from its default settings.

Good that you managed to make it work though.
 
  


Reply



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
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 10:34 AM
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM
pressing 'x' in gnome terminal starts new terminal instance Drwfan54 Ubuntu 3 09-26-2006 03:09 PM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 05:54 PM
Alternative terminal to konsole & gnome-terminal Adony Linux - Software 3 10-08-2004 03:59 AM

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

All times are GMT -5. The time now is 06:09 PM.

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