Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell display driver drivers email error ethernet excel firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook 2007 outlook express partition password problem router slow software sound trojan usb video virus vista windows windows xp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
Solved: mounting partitions


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
AvvY's Avatar
Computer Specs
Senior Member with 1,912 posts.
 
Join Date: Oct 2004
Location: Melbourne, Australia
Experience: "Ah, what the hell is that?"
22-Apr-2005, 05:11 AM #1
Solved: mounting partitions
Ok so I am using suse 9.1 and I want to mount some partitions.
This is my current list of partitions:


what I want to do is mount /dev/hdb2 .

i have figured out how to open run terminals, so im just after the needed commands to achieve this.

i have looked on the net, but none of the guides i have found have worked. could you guys give me a hand? id also like to mount the NTFS partitions if possible - although i dont know if it would have any effect in suse 9.1 - i know it would be read only if anything.

Late,
__________________
BurgerWithTheLot.com Productions "Where creativity and talent meet."
tsunam's Avatar
Senior Member with 1,246 posts.
 
Join Date: Sep 2003
Experience: Linux~su
22-Apr-2005, 05:13 AM #2
mount -t vfat /dev/hdb2 /mount/windows (course the mount point has to exist beforehand)

for a ntfs

mount -t ntfs (device) (mountpoint)

if you want to mount them at will you will want to add entries for both to your /etc/fstab file. The format is in the file. in the options you will want to put noauto if you don't want to have them automatically mounted.

Edit: ntfs assumes you have the filesystem info for mounting the ntfs. If you don't then a way will have to be done for it. Of which there are two.
__________________
Gentoo Developer, and 64bit os user

"In feeding Mother Nature, you are fed in return" - Tsunam (2005). Concerning water conservation, and raising water tables.

Last edited by tsunam : 22-Apr-2005 05:26 AM.
mushka's Avatar
Member with 50 posts.
 
Join Date: Sep 2004
Experience: much to learn
22-Apr-2005, 05:17 AM #3
reply
Quote:
Originally Posted by bigavvystyle
Ok so I am using suse 9.1 and I want to mount some partitions.
This is my current list of partitions:


what I want to do is mount /dev/hdb2 .

i have figured out how to open run terminals, so im just after the needed commands to achieve this.

i have looked on the net, but none of the guides i have found have worked. could you guys give me a hand? id also like to mount the NTFS partitions if possible - although i dont know if it would have any effect in suse 9.1 - i know it would be read only if anything.

Late,



as root:
create a mountpoint (unless always you want to use /mnt), I'll call it
FAT32 here.
mkdir /FAT32


set permissions (should be automatic, but to be sure)
chmod 755 /FAT32


mount the partition: (/dev/whatever is the device, e.g. /dev/sda4
(SCSI-ZIP, primary partition 4 -- that's the default for preformatted
ones)
mount -tvfat /dev/hdb2 /FAT32


If you want to make it more permanent (or let users do the mount or ...)
just edit /etc/fstab, add a line:


/dev/hdb2r /FAT32 vfat noauto,user 0 0

Device mountpoint | don't mount at | (parallel) fsck order
| boot, users may | (at boot), 0 = don't
| mount it |
Filesystem-type dump-frequency


(Dump is a backup-program)
(for more info, see man fstab)


Then any user can mount the drive with
mount FAT32
or mount /dev/whatever



I Think that should work
give it a try
AvvY's Avatar
Computer Specs
Senior Member with 1,912 posts.
 
Join Date: Oct 2004
Location: Melbourne, Australia
Experience: "Ah, what the hell is that?"
22-Apr-2005, 05:45 AM #4
thanx guys, i successfully mounted the fat32 partition. but when i go into the mount point folder i created and mounted to - /backups - it doesnt show anything there. but if i open a program like a media player to access music files, i can see the dir's inside and access the files. whats up with that?

Late,
__________________
BurgerWithTheLot.com Productions "Where creativity and talent meet."
mushka's Avatar
Member with 50 posts.
 
Join Date: Sep 2004
Experience: much to learn
22-Apr-2005, 08:31 AM #5
did you allow users to mount the partition? (/etc/fstab)
are you using a user account to try to access it or are you trying to browse it as root?
AvvY's Avatar
Computer Specs
Senior Member with 1,912 posts.
 
Join Date: Oct 2004
Location: Melbourne, Australia
Experience: "Ah, what the hell is that?"
22-Apr-2005, 08:39 AM #6
Oh, i think i have figured it out, i had a look and found this site:
http://www.tuxfiles.org/linuxhelp/fstab.html

which explains the options i needed to add.

Thanx

Late,
AvvY's Avatar
Computer Specs
Senior Member with 1,912 posts.
 
Join Date: Oct 2004
Location: Melbourne, Australia
Experience: "Ah, what the hell is that?"
22-Apr-2005, 08:54 AM #7
Ok, I have a couple of problems still. I tried the following:
mount -t vfat /dev/hdb2 /backups auto,rw,user,exec,sync 0 0

i rebooted, and it mounted auto, but the permissions show as:
/dev/hdb2 on /backups type vfat (rw,noexec,nosuid,nodev)

any ideas?

Late,
tsunam's Avatar
Senior Member with 1,246 posts.
 
Join Date: Sep 2003
Experience: Linux~su
22-Apr-2005, 04:11 PM #8
okie is the moutn -t etc in your fstab? if so O_O

After you add it to your fstab all you need to do is mount /dev/hdb2, it'll automatically mount it the way you want it to.
AvvY's Avatar
Computer Specs
Senior Member with 1,912 posts.
 
Join Date: Oct 2004
Location: Melbourne, Australia
Experience: "Ah, what the hell is that?"
22-Apr-2005, 07:58 PM #9
im not 100% sure i understand what that means...

Late,
AvvY's Avatar
Computer Specs
Senior Member with 1,912 posts.
 
Join Date: Oct 2004
Location: Melbourne, Australia
Experience: "Ah, what the hell is that?"
23-Apr-2005, 06:05 AM #10
It's alright, I installed Ubuntu and manually edited the etc/ftab file so now it works fine. I now understand a number of the console commands so I can log in as root to move things around,

Thanx for your help.

Late,
AvvY's Avatar
Computer Specs
Senior Member with 1,912 posts.
 
Join Date: Oct 2004
Location: Melbourne, Australia
Experience: "Ah, what the hell is that?"
24-Apr-2005, 06:26 AM #11
Ok, I need some help with a couple of other mounting questions too - hence posting it back in this thread, although I couldn't mark it unsolved.

Quote:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdb1 / ext3 defaults,errors=remount-ro 0 1
/dev/sda6 none swap sw 0 0
/dev/hdd /media/cdrom0 udf,iso9660 ro,user,noauto 0 0
/dev/hdc /media/cdrom1 udf,iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
/dev/sdb /media/usb0 auto rw,user,noauto 0 0
/dev/hdb2 /backups vfat rw,user,auto 0 0
That is my current fstab config. one thing i realised, is that i dont have a swap partition. i have a partition for it, it just isnt mounted - had problems during the install doing it. i have 1024mb ram, and havent had any problems as a result. i feel confident editing this file myself, i just cant figure out how to find the relevant "/dev/.../" lines for the relent device. where within Ubuntu would i be able to find that info?

Late,
__________________
BurgerWithTheLot.com Productions "Where creativity and talent meet."
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:02 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.