| Author |
Message |
fixit
Joined: 16 Mar 2013 Posts: 30
|
Posted: Tue 26 Mar 2013, 13:25 Post subject:
How to change drive from root to sda1, from the console? |
|
How can I change drives ?
I want to go from the root to sda1 which is another partition on the same drive.
Thanks.
|
|
Back to top
|
|
 |
ally

Joined: 19 May 2012 Posts: 352 Location: lincoln
|
Posted: Tue 26 Mar 2013, 13:32 Post subject:
|
|
I think what you are asking will be found in /mnt/sda1 etc.
|
|
Back to top
|
|
 |
6502coder
Joined: 23 Mar 2009 Posts: 29
|
Posted: Tue 26 Mar 2013, 14:24 Post subject:
Re: Change drive |
|
| fixit wrote: | How can I change drives ?
I want to go from the root to sda1 which is another partition on the same drive.
|
It sounds like you are used to Microsoft DOS. In Linux, you don't "change drives." You just cd directly to where you want to be. So assuming sda1 is already mounted, you just
cd /mnt/sda1
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9853 Location: Arizona USA
|
Posted: Tue 26 Mar 2013, 16:32 Post subject:
|
|
Or click on the sda1 icon in the lower left of your desktop.
|
|
Back to top
|
|
 |
fixit
Joined: 16 Mar 2013 Posts: 30
|
Posted: Tue 26 Mar 2013, 17:18 Post subject:
|
|
| ally wrote: | I think what you are asking will be found in /mnt/sda1 etc.
 |
That did not work.
Andy
|
|
Back to top
|
|
 |
fixit
Joined: 16 Mar 2013 Posts: 30
|
Posted: Tue 26 Mar 2013, 17:19 Post subject:
|
|
Flash,
I want to change directories from the console.
Andy
|
|
Back to top
|
|
 |
R-S-H
Joined: 18 Feb 2013 Posts: 287
|
Posted: Tue 26 Mar 2013, 17:31 Post subject:
|
|
- run the console
- type 'dir' into the console and press enter
If 'dir' shows a directory Startup (plus some more) then you are in /root
- type 'cd Startup' into the console and press enter
- type 'dir' into the console --> should now show its (Startup) content
If you want to change to another drive/directory
- type /mnt/your-hd/your-directory/your-sub-directories/etc/pp
Example (change to /mnt/sda1/data)
- type 'cd /mnt/sda1/data' into the console and press enter (sda1 has to be mounted first)
_________________ Freiheit für Mollath - JETZT !!!
Free Mr. Mollath !!!
Send the People responsible to The Hague International Court for trial !!!
|
|
Back to top
|
|
 |
|