Go Back   Computer Forums > General Computing > Software and Operating Systems
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 03-27-2006, 04:40 PM   #1
In Runtime
 
Join Date: Feb 2005
Posts: 110
Default Linux commands

How would one change drives in the linux console
__________________

__________________
What version of DOS does UNIX run?
TOWT is offline   Reply With Quote
Old 03-27-2006, 05:23 PM   #2
Fully Optimized
 
^Mike^'s Avatar
 
Join Date: Oct 2005
Posts: 2,958
Send a message via ICQ to ^Mike^ Send a message via AIM to ^Mike^ Send a message via MSN to ^Mike^ Send a message via Yahoo to ^Mike^
Default Re: Linux commands

You could always right click on the drive in GUI and click "open in terminal". What type of drive are you trying to change?
__________________

^Mike^ is offline   Reply With Quote
Old 03-28-2006, 08:35 AM   #3
In Runtime
 
Join Date: Feb 2005
Posts: 110
Default Re: Linux commands

an example would be

from hda0 to hda1

or hda0 to hdb0
__________________
What version of DOS does UNIX run?
TOWT is offline   Reply With Quote
Old 03-28-2006, 03:51 PM   #4
Daemon Poster
 
RewtGuy's Avatar
 
Join Date: Dec 2004
Posts: 595
Send a message via AIM to RewtGuy
Default Re: Linux commands

you talking about hot swapping like removing the drive and putting another one in? Or moving data? There isn't a hda0 or hdb0, but hda1 to hda2 would just be changing the partition as it's still hard drive a. can you explain more indepth what you're trying to do?
__________________
Windows: A thirty-two bit extension and GUI shell to a sixteen bit patch to an eight bit operating system originally coded for a four bit microprocessor and sold by a two-bit company that can't stand one bit of competition.
RewtGuy is offline   Reply With Quote
Old 03-29-2006, 08:32 AM   #5
In Runtime
 
Join Date: Feb 2005
Posts: 110
Default Re: Linux commands

what i mean is the linux equlivilant of "c:/"
if your current drive is a:/
how would you change drives or partitions in the termanal of linux
__________________
What version of DOS does UNIX run?
TOWT is offline   Reply With Quote
Old 03-29-2006, 04:02 PM   #6
Daemon Poster
 
RewtGuy's Avatar
 
Join Date: Dec 2004
Posts: 595
Send a message via AIM to RewtGuy
Default Re: Linux commands

cd /to/directory

in linux you mount your drives to a directory. the drives being /dev/hda or /dev/hdb with a number following depending on partitions.

Same thing with cd roms and floppies, you mount them to a directory for example
mkdir /cdrom
mount /dev/cdrom /cdrom
cd cdrom && ls -al

do that to see what's on your cd rom.


To make this more clear. On Windows you have your hard drive C: and then other drives (could be multiple hard drives or cd roms) and when you open them you're at the root directory. In linux that'd be /. But in linux, you can have seperate partitions or drives being different /directories. For example, /dev/hda1 could be / and /dev/hdb1 could be /home. /dev/cdrom could be /cdrom or whatnot. It just depends on where you mount it.

Check your /etc/fstab to see where things are mounted then just cd /path/to/directory to get to that drive. If it's not in your fstab you'll have to mount it manually.
__________________

__________________
Windows: A thirty-two bit extension and GUI shell to a sixteen bit patch to an eight bit operating system originally coded for a four bit microprocessor and sold by a two-bit company that can't stand one bit of competition.
RewtGuy is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 03:25 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0