LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-03-2005, 05:59 PM   #1
kuertensun
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 76

Rep: Reputation: 15
does anyone know how to move between different partitions under linux?


Thanks for any help.

Last edited by kuertensun; 06-04-2005 at 10:15 AM.
 
Old 06-03-2005, 06:10 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
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?
 
Old 06-03-2005, 09:53 PM   #3
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Solus
Posts: 2,254

Rep: Reputation: 47
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)
 
Old 06-04-2005, 10:11 AM   #4
kuertensun
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 76

Original Poster
Rep: Reputation: 15
Thanks,I want to get to a folder in another partition.
I think I haven't mounted them?but how to mount them?

Last edited by kuertensun; 06-04-2005 at 10:13 AM.
 
Old 06-04-2005, 11:15 AM   #5
Kendo1979
Member
 
Registered: Aug 2004
Location: Bandung, Indonesia
Distribution: Red Hat 9
Posts: 51

Rep: Reputation: 15
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
 
Old 06-04-2005, 12:06 PM   #6
kuertensun
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 76

Original Poster
Rep: Reputation: 15
thanks a lot.
 
Old 06-06-2005, 11:00 AM   #7
kuertensun
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 76

Original Poster
Rep: Reputation: 15
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.
 
Old 06-06-2005, 11:37 AM   #8
Bluenoser
Member
 
Registered: Jun 2004
Location: Nova Scotia, Canada
Distribution: Ubuntu 8.04 LTS
Posts: 138

Rep: Reputation: 15
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
 
Old 06-06-2005, 11:44 AM   #9
kuertensun
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 76

Original Poster
Rep: Reputation: 15
thanx,I will try it.
 
Old 06-07-2005, 06:59 AM   #10
kuertensun
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 76

Original Poster
Rep: Reputation: 15
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!
 
Old 06-07-2005, 08:04 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,931

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
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

Last edited by michaelk; 06-07-2005 at 08:07 AM.
 
Old 06-07-2005, 09:29 AM   #12
kuertensun
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 76

Original Poster
Rep: Reputation: 15
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.
 
Old 06-07-2005, 11:23 AM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,931

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
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)
 
Old 06-09-2005, 08:09 AM   #14
kuertensun
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 76

Original Poster
Rep: Reputation: 15
nothing was listed when I used the ls command in /mnt/drive
thank you.
 
Old 06-09-2005, 12:04 PM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,931

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Then the partiton might not be mounted. Where there any error messages?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to change what partitions /home is on without reinstalling? DraaX Slackware 8 02-21-2005 12:32 PM
Change Mandrake partition size on dual boot WITHOUT trashing the other partitions! Ygarl Linux - Software 4 03-25-2004 06:49 PM
Linux installed, linux partitions lost, computer scragged, need serious help. B4UTRUST Linux - Newbie 4 01-23-2004 11:21 AM
Win XP Install Overwrites MBR and Linux Rescue Fails to Recognize Linux Partitions carrlane Linux - Software 8 01-14-2004 08:49 AM
How to change partitions that are mounted from command line? Perception Linux - Software 1 10-19-2003 06:51 AM


All times are GMT -5. The time now is 04:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration