Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-12-2004, 11:58 PM
|
#1
|
Member
Registered: Mar 2004
Location: East Side Long Beach
Distribution: Red Hat 9
Posts: 32
Rep:
|
Mounting problems
I'm having mad probs with mounting, I've read all the man pages and the questions on this fourm, but have not solved my problem, I have worked on this all day now I come to the one place I hope to get a straight answer.
I have 3 hard drives hda1 is dual boot rh9/win2k no ntfs partitions.
my ftsab resembles this;
/dev/hdd1 fat32
/dev/hda1 fat32
/hda2 ext'd
/hda5 fat32
/hda6 Linux
/hda7 Linux
/hda8 Linux
/hdb1 fat32
I have tried all mount tips and instruction and nothing worked, out of all the fourms it seems that there must be a folder created before the mount takes place, the fstab file must be edited after it has been mounted temporarily, i'm wondering if this is true and what steps exactly do i need, to access these partitions.
sounds simple but for some reason it's not.
|
|
|
04-13-2004, 12:13 AM
|
#2
|
Member
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558
Rep:
|
The easiest way I know of to create mountpoints for my other partitions is as follows:
for my Windows XP C: Drive I did this:
Code:
(as root)
mkdir /mnt/WindowsXP
mount -t ntfs /dev/(windowsxp disk and partition number) /mnt/windowsXP
##for my machine I did this for my Windows XP partition:
mount -t ntfs /dev/hdb1 /mnt/windowsXP
This will add the line to your fstab to mount your WindowsXP partition.
My setup is this:
Code:
hdb1 = Windows XP (C:)
hdb2 = Fedora Core1 /boot
hdb3 = Fedora Core1 /
hdb5 = Fedora Core1 swap
hdc1 = Gentoo /
hdc2 = Gentoo swap
hdd1 = Arch-Linux /
hdd2 = Arch-Linux swap
You can do "df -T" to find out the filesystem types of all your mounted partitions.
I know this doesn't entirely answer your question but I hope it starts you in the right direction.
rberry88
Last edited by rberry88; 04-13-2004 at 12:14 AM.
|
|
|
04-13-2004, 01:11 AM
|
#3
|
Member
Registered: Mar 2004
Location: East Side Long Beach
Distribution: Red Hat 9
Posts: 32
Original Poster
Rep:
|
is this mkdir supposed to make this in the home dir of user?
or in the dir of /dev?
|
|
|
04-13-2004, 08:00 AM
|
#4
|
Member
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558
Rep:
|
When you do "mkdir /mnt/xxxxxxx" it will make the directory in /mnt
You can do it from anywhere because the /mnt tells your system to put it with the other mountpoints in the /mnt directory.
rberry88
|
|
|
04-13-2004, 08:06 AM
|
#5
|
Member
Registered: Jan 2004
Location: Lancaster, OH
Distribution: Gentoo
Posts: 393
Rep:
|
It matters not where the folder made. Mounting a partition is just directing all the contents of it into a folder an another filesystem. So to mount the windows drive you could even make a directory in /home/username/windows and call it whatever you want. I'm surprised that after reading all that stuff that you didn't find out that you needed to mount the partition into a folder. I mean, where else would it mount?
Also, just to clear some things up about the whole "C:" drive deal, that's only an alias for the drive that the windows OS uses, Linux just mounts the root partition at /, whereas Windows mounts it at \ and sets the alias "C:" to it as well. There's a little crash course in why there's no such thing as a "C:" drive in the actual workings of a computer's hardware. Now I'll be quiet and show you how to mount in in case the last person's post confused you. lol
(as root)
mkdir /mnt/windows # Again, it doesn't matter what you call the folder. Just make sure that you make it in a good place with an appropriate name.
mount /dev/hdb1 /mnt/windows # If you made it in /home/username/windows, replace /mnt/windows with the directory name
In the real world of computing outside of stupid microsoft, drives are read as hd0,0 type things (by the BIOS), and then translated and mounted by the operating system you use. Linux happens to make it very easy and use only a simple /.
|
|
|
04-13-2004, 08:53 AM
|
#6
|
Member
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558
Rep:
|
Pwnz3r is correct in that C: is only used by MS as a user-friendly way of drive naming. I guess I should have been a little more detailed in my explanation the first time.
Code:
after you do :
mkdir /mnt/windowsXP (or whatever you want to refer to your windows drive/partition as)
then you do this line to mount it and add it to your fstab file:
mount -t ntfs /dev/hdb1 /mnt/windowsXP
In my example I have my WindowsXP (C:) drive on hdb1 and I made a mount point/file for it named windowsXP in the first line.
In the second line of *my* example I told the system to mount my WindowsXP (C:) drive which is /dev/hdb1 (by Linux standards) to the mount point I created at /mnt/windowsXP. Where you see "ntfs" in my command line you would just change that to whatever filesystem type you are mounting (e.g. ntfs, fat32, ext2, ext3, reiserfs etc). Then you will need to add the line to your fstab file so when you reboot you can view the files in the directory (windows) without having to remount it again.
fstab entry for above:
Code:
/dev/hdb1 /mnt/windowsXP ntfs noauto,noatime 0 0
rberry88
Last edited by rberry88; 04-13-2004 at 09:01 AM.
|
|
|
04-13-2004, 11:41 AM
|
#7
|
Member
Registered: Mar 2004
Location: East Side Long Beach
Distribution: Red Hat 9
Posts: 32
Original Poster
Rep:
|
"I'm surprised that after reading all that stuff that you didn't find out that you needed to mount the partition into a folder. I mean, where else would it mount?"
I see you read my post and read that i understand what a mount si and what a mount does oviously if i read the man pages. The problem that i'm learning is that instructions are vauge in man pages, my problem was if and in what order was i to do this correctly, as with in DOS it's written in plain english even other man pages explain go to this dir and mkdir not just make a dir anywhere being a newbie where does it say that when you are using these mount commands it automatically will make it in mnt dir, i guess its one of the problems with newbies, anyway i appreciate the advise and will follow the instructions given.
|
|
|
04-13-2004, 02:02 PM
|
#8
|
Member
Registered: Mar 2004
Location: East Side Long Beach
Distribution: Red Hat 9
Posts: 32
Original Poster
Rep:
|
I've made the dir in /root/win2000 (which is of course home)
I've also tried these commands
mount /dev/hda1/root/win2000
/hda1/win2000
mount: can't find /dev/hda1/root/win2000 in /etc/fstab or /etc/mtab
am I doing something wrong I understood you can test the mount w/o editing the files.
please help,
|
|
|
04-13-2004, 02:19 PM
|
#9
|
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194
Rep:
|
Leave a space between device and mountpoint:
mount /dev/hda1 /root/win2000
|
|
|
04-13-2004, 02:22 PM
|
#10
|
Member
Registered: Mar 2004
Location: East Side Long Beach
Distribution: Red Hat 9
Posts: 32
Original Poster
Rep:
|
i did! I thought people would think that but check with your cusor.
|
|
|
04-13-2004, 02:40 PM
|
#11
|
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194
Rep:
|
Let me clarify:
Code:
mount /dev/hda1 /root/win2000
The error message you posted shows that the two were stuck together when the command was run.
|
|
|
04-13-2004, 02:53 PM
|
#12
|
Member
Registered: Mar 2004
Location: East Side Long Beach
Distribution: Red Hat 9
Posts: 32
Original Poster
Rep:
|
what a small yet simple mistake thankyou everyone especially the last post the error of my ways I am thankful. It has worked, I feel like such an idiot to have missed something so simple now I know that everything must be checked constantly and wording must be inspected.
I am that much closer to ditching microsoft,
My quest now continues,
|
|
|
04-13-2004, 03:20 PM
|
#13
|
Member
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558
Rep:
|
Keep going, don't stop now. You will soon be free of the dark side and have visions of happy penguins jumping before you.
lol
rberry88
|
|
|
All times are GMT -5. The time now is 04:48 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|