How to change drive from root to sda1, from the console?

Booting, installing, newbie
Post Reply
Message
Author
fixit

How to change drive from root to sda1, from the console?

#1 Post by fixit »

How can I change drives ?

I want to go from the root to sda1 which is another partition on the same drive.

Thanks.

User avatar
ally
Posts: 1957
Joined: Sat 19 May 2012, 19:29
Location: lincoln, uk
Contact:

#2 Post by ally »

I think what you are asking will be found in /mnt/sda1 etc.

:)

User avatar
6502coder
Posts: 677
Joined: Mon 23 Mar 2009, 18:07
Location: Western United States

Re: Change drive

#3 Post by 6502coder »

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

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#4 Post by Flash »

Or click on the sda1 icon in the lower left of your desktop.

fixit

#5 Post by fixit »

ally wrote:I think what you are asking will be found in /mnt/sda1 etc.

:)
That did not work.

Andy

fixit

#6 Post by fixit »

Flash,

I want to change directories from the console.

Andy

R-S-H
Posts: 487
Joined: Mon 18 Feb 2013, 12:47

#7 Post by R-S-H »

- 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)
[b][url=http://lazy-puppy.weebly.com]LazY Puppy Home
The new LazY Puppy Information Centre[/url][/b]

Post Reply