-   Linux - Newbie (
-   -   does anyone know how to change between different partitions under linux? (

kuertensun 06-03-2005 04:59 PM

does anyone know how to move between different partitions under linux?
Thanks for any help.

Komakino 06-03-2005 05:10 PM

You'll have to give us more to work with than that...what do you mean 'switch between different partitions'? What do you actually want to do?

masonm 06-03-2005 08:53 PM

If they're mounted, you move between them exactly the same as you would other directories. If they aren't mounted, well, mount them. (Just make sure nobody is watching)

kuertensun 06-04-2005 09:11 AM

Thanks,I want to get to a folder in another partition.
I think I haven't mounted them?but how to mount them?

Kendo1979 06-04-2005 10:15 AM

type 'mount /dev/hdxy' where x is the major number of your ide drive (assuming you're using ide drive) and y minor number of partition

kuertensun 06-04-2005 11:06 AM

thanks a lot.

kuertensun 06-06-2005 10:00 AM

Kendo1979 I have done what you told me to do.but it doesn't work.I just installed a debian base system on my computer right now.and I even don't know how to determine the major number of my hard drive and the minor number of the partition.I just have hard drive and I have two linux partition,one swap partition and a fat32 partition on my computer.
thank you.

Bluenoser 06-06-2005 10:37 AM

Hard drives (IDE devices in general, so could be cd drives too) in linux are named:

hda - primary master
hdb - primary slave
hdc - secondary master
hdd - secondary slave

So, if you only have 1 hard drive it'll be named hda and your fat32 partition is most likely the first partition, you'd want to mount /dev/hda1

kuertensun 06-06-2005 10:44 AM

thanx,I will try it.

kuertensun 06-07-2005 05:59 AM

I have mounted the partition and how to get to a folder called debian in that partition?I have tried cd /dev/hda1/debian but that seems to be wrong.
thank you!

michaelk 06-07-2005 07:04 AM

What linux distribution and version are you running You need to be logged in as root. If you are unsure of the exact partition then run this command
fdisk -l (that is a small L). This will list the partitions for all drives.

1. You need to create a directory to mount the filesystem. Some distributions use /media for mount removable media.

mkdir /mnt/drive

2. I assume you are trying to mount the FAT32 partiton.
mount -t vfat /dev/hda1 /mnt/drive

You can navigate via a file browser or in a console window using the cd command. In a console window:
cd /mnt/drive/debian

kuertensun 06-07-2005 08:29 AM

I am running debian and I just installed the basesystem I think it is woody.
I used fdisk -l to check the partitions on my drive but I found that the FAT32 partition is /dev/hda7,is it right?
and another partition called /dev/hda2 is win95 Ext'd (LBA)
what is it?
I have done what you told me to.but it doesn't work in the last step.when I typed cd /mnt/drive/debian, a message appeared said no such file or directory.I am not sure what is console window and what is file browser?
thank you.

michaelk 06-07-2005 10:23 AM

An extended partition in a nutshell is a container for the logical partitions.
Primary partitions are IDs 1-4 and logical partitions IDs >=5

Yes, ie if the output of fdisk indicates hda7 for the FAT32 partition and this is the one you want to mount. Does the directory debian exist on the mounted partition? Just trying accessing the FAT32 partition by
cd /mnt/drive
ls (to list the contents)

kuertensun 06-09-2005 07:09 AM

nothing was listed when I used the ls command in /mnt/drive
thank you.

michaelk 06-09-2005 11:04 AM

Then the partiton might not be mounted. Where there any error messages?

All times are GMT -5. The time now is 09:55 AM.