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?
 
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?
 
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
 
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.
 
Back
Top Bottom