LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-25-2003, 08:17 PM   #1
ChopSueyX
Member
 
Registered: Nov 2003
Location: Planet M$
Distribution: Slack....
Posts: 46

Rep: Reputation: 15
Unhappy mounting drives


lo, right in Mandrake im sure this was done for me but ive installed Slack 9.1 and i cant see any HDD or any other diskdrive tbh, in /dev or /mnt is this right? i know im meant to mount them but i dont really know how ive tried summat like mount /dev/cdrom /mnt/cdrom or along those lines and i jus dont get anything! PS i installed the ATARAID kernel as i couldnt see jus an ATA kernel does this matter? TIA
 
Old 11-25-2003, 08:25 PM   #2
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
If you can log into the machine, your partitions are mounted.
type in:

fdisk -l

df -h

and

cat /etc/fstab

as root, and post the output up here. Preferably in [code] [ /code] tags (without that on space before /)
 
Old 11-25-2003, 08:51 PM   #3
ChopSueyX
Member
 
Registered: Nov 2003
Location: Planet M$
Distribution: Slack....
Posts: 46

Original Poster
Rep: Reputation: 15
here u go:

Code:
/home/chopsueyx$ fdisk -l

Disk /dev/hdg: 4311 MB, 4311982080 bytes
255 heads, 63 sectors/track, 524 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdg1   *           1         522     4192933+   7  HPFS/NTFS
/dev/hdg2             523         524       16065    5  Extended
/dev/hdg5             523         524       16033+  14  Hidden FAT16 <32M

Disk /dev/hde: 123.5 GB, 123522416640 bytes
255 heads, 63 sectors/track, 15017 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hde1               1        2673    21470841    7  HPFS/NTFS
/dev/hde2   *        2674        3235     4514265   83  Linux
/dev/hde3            3236       15017    94638915    f  W95 Ext'd (LBA)
/dev/hde5            3236        3366     1052226   82  Linux swap
/dev/hde6            3367       15017    93586626   83  Linux
! /home/chopsueyx$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hde2             4.2G  2.6G  1.5G  64% /
! /home/chopsueyx$ cat /etc/fstab
/dev/hde2        /                ext3        defaults         1   1
/dev/cdrom       /mnt/cdrom       iso9660     noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
! /home/chopsueyx$
 
Old 11-25-2003, 10:21 PM   #4
AUSanders79
Member
 
Registered: Aug 2003
Location: Alabama
Distribution: Slack 10.1/FreeBSD 5.4
Posts: 37

Rep: Reputation: 15
So are you wanting to see your NTFS partition or Linux partition or what? I'm assuming your NTFS partitions, b/c one would assume you can obviously see your /dev/hde2 or "/" partition since you are running fdisk, df and cat.

If indeed you are wanting to view your NTFS partition, the prob is you don't have any mount statements in your fstab. I've got something like this in mine, ymmv btw.

Code:
/dev/hda1        /fatc            vfat        defaults         1   0
/dev/hdb1        /fatd            ntfs        defaults         1   0
This may or not be the right/best way, but works for me.
 
Old 11-26-2003, 06:26 AM   #5
ChopSueyX
Member
 
Registered: Nov 2003
Location: Planet M$
Distribution: Slack....
Posts: 46

Original Poster
Rep: Reputation: 15
i want to be able to see all my DiskDrives including CDROMS
 
Old 11-26-2003, 09:16 AM   #6
AUSanders79
Member
 
Registered: Aug 2003
Location: Alabama
Distribution: Slack 10.1/FreeBSD 5.4
Posts: 37

Rep: Reputation: 15
Quote:
Originally posted by ChopSueyX
i want to be able to see all my DiskDrives including CDROMS
ok, don't think that'll be too bad. Still use the above snippet I sent for your fstab and then, you see that part of your fstab that says:
Code:
/dev/cdrom       /mnt/cdrom       iso9660     noauto,owner,ro  0   0
That is a correct entry, just notice the noauto. That means it won't automatically boot at boottime or when a mount -a is given (see man fstab for more info). So how you mount your data CD is in a console just type mount /dev/cdrom. Now if you're in a GUI like KDE or Gnome, I think data CD's should mount automatically. Or at least I thought they used to. If not, just pop out to a terminal and do mount /dev/cdrom. Now to do any of this mounting, I also think you have to be root. Maybe someone can come in here and correct me on any of this if I'm wrong. Sorry I'm not 100% positive on all the answers, I'm not a guru yet. But maybe it'll be of some help.
 
Old 11-26-2003, 09:32 AM   #7
LinFreak!
Member
 
Registered: Jul 2003
Location: England
Distribution: slack9.1
Posts: 209

Rep: Reputation: 30
try this in your /etc/fstab:
Code:
/dev/hdg1       /mnt/win1    auto        noauto,user,rw    0   0
/dev/hdg2       /mnt/win2    auto        noauto,user,rw    0   0
/dev/hdg5       /mnt/win3    auto        noauto,user,rw    0   0
/dev/hde2       /            ext3        defaults          1   1
/dev/cdrom       /mnt/cdrom  iso9660     noauto,user,ro    0   0
/dev/fd0         /mnt/floppy auto        noauto,user       0   0
devpts          /dev/pts    devpts      gid=5,mode=620    0   0
proc            /proc       proc        defaults          0   0
and make sure you create the 3 new directories, open a terminal then issue:

Code:
$ su
<password>
# mkdir /mnt/win1
# mkdir /mnt/win2
# mkdir /mnt/win3
# exit
then try mounting them:

Code:
$ mount /mnt/win1
$ mount /mnt/win2
$ mount /mnt/win3
$ mount /mnt/cdrom
:~]

edit: sorry, I should learn to use code tags!!
edit2: try "man fstab"!

Last edited by LinFreak!; 11-26-2003 at 09:47 AM.
 
Old 11-26-2003, 10:36 AM   #8
ChopSueyX
Member
 
Registered: Nov 2003
Location: Planet M$
Distribution: Slack....
Posts: 46

Original Poster
Rep: Reputation: 15
right i can get into hdg2 and hdg5 but hdg1 says "You do not have enough permissions to read file:/mnt/hdg1"

right a bit more info for ya incase i might help

i have 2 HDD's

1: 120Gb on Primary ATA port as master
: 20Gb ish XP NTFS
: 5Gb ish Linux Ex3 for proggys and OS
: 1Gb ish i think of Linux swap
: rest as ReiserFS for my files

2:4Gb on Secondary ATA aslo master
: 4Gb NTFS for drive image backups of my XP disk
: 15Mb(Hidden) or sum crap for this Acronis OS selector (cos i always fuck up boot loaders an the like )

i have 3 CDRW

1: Sony CDRW on primary IDE as master
2: Sony CDRW on secondary IDE as master
3: Sony DVDRW on secondary IDE as slave

how would i mount them all i know its posible because when i had mandrake it did all this automatically for me


hope all this info helps

TIA
 
Old 11-26-2003, 11:12 AM   #9
AUSanders79
Member
 
Registered: Aug 2003
Location: Alabama
Distribution: Slack 10.1/FreeBSD 5.4
Posts: 37

Rep: Reputation: 15
Hmmmm, I see what you're saying. But now I'm out of answers. I just installed Slack for the first time on Monday, and although it's like a lot of other distro's out there, I'm not a pro on any of them either. Looks like I'm out of ideas esp since I've never dealt with ATA before. Sorry....
 
Old 11-26-2003, 11:21 AM   #10
ChopSueyX
Member
 
Registered: Nov 2003
Location: Planet M$
Distribution: Slack....
Posts: 46

Original Poster
Rep: Reputation: 15
also i think i installed the wrong kernal but im not sure if that matters lol i installed the ATA RAID kernel because i couldnt see a plain ATA kernel
 
Old 11-26-2003, 11:51 AM   #11
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Ok... /dev/cdrom is just a link, /dev/hd(a-h) refers to your IDE & your ATA devices, in your case starting with IDE. Your cdroms are:
Sony CDRW on primary IDE as master: /dev/hda
Nothing on Primary Slave: /dev/hdb
Sony CDRW on secondary IDE as master: /dev/hdc
Sony DVDRW on secondary IDE as slave: /dev/hdd
So make dirs (as root with 'su -'):
mkdir /mnt/cdrw1
mkdir /mnt/cdrw2
mkdir /mnt/dvdrw

& add entries to fstab:
/dev/hda /mnt/cdrw1 auto ro,user,noauto
/dev/hdc /mnt/cdrw2 auto ro,user,noauto
/dev/hdd /mnt/dvdrw auto ro,user,noauto

You don't need to put the zeroes at the end if you don't use them.
Filesystem type can only be 'auto' if you have a /etc/filesystems file. Here's what should be in one:
iso9660 udf vfat ext2 umsdos msdos
Filesystems are tried in this order.

For your hd partitions, first make the dirs (as root):
mkdir /mnt/win_c
mkdir /mnt/win_d
mkdir /mnt/reiserprogs
mkdir /mnt/acronis

Now for the fstab:
/dev/hdg1 /mnt/win_c ntfs ro,auto,umask=0
#add uid=[user]/gid=[group] to change ownership.
#'umask=0' sets liberal permissions. Search here on what number to put
#If you don't want this. Here's a uid/gid example in your 'D:\':
/dev/hde1 /mnt/win_d ntfs ro,auto,umask=0,uid=chopsuey,gid=users
/dev/hde6 /mnt/reiserprogs reiserfs defaults
/dev/hdg5 /mnt/acronis auto auto,umask=0
/dev/hde5 swap swap auto

The whole fstab probably should look like this:
Code:
/dev/hde2 / ext3 defaults 1   1
#/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro
#The other partitions:
/dev/hdg1 /mnt/win_c ntfs ro,auto,umask=0
/dev/hde1 /mnt/win_d ntfs ro,auto,umask=0
/dev/hde6 /mnt/reiserprogs reiserfs defaults
/dev/hdg5 /mnt/acronis auto auto,umask=0
#The optical devices:
/dev/hda /mnt/cdrw1 auto ro,user,noauto
/dev/hdc /mnt/cdrw2 auto ro,user,noauto
/dev/hdd /mnt/dvdrw auto ro,user,noauto
#The floppy. Note the 'user' instead of 'owner'. This lets regular users mount.
/dev/fd0 /mnt/floppy auto noauto,user
#The rest. I added the swap.
/dev/hde5 swap swap defaults
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
 
Old 11-26-2003, 04:02 PM   #12
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
It's good that it says you can't mout, hdg1. Linux doesn't work very well with NTFS. 2.6 adds a lot of NTFS support, but writing is still experimental.
 
Old 11-26-2003, 04:08 PM   #13
Kjetil4455
Member
 
Registered: Jul 2003
Location: Norway/Drammen
Distribution: Slackware~
Posts: 250

Rep: Reputation: 30
yo, im kinda lazy, so i wont read it all. but anyways. lets say your ntfs patition is /dev/hdb1 then you go like this

mkdir /mnt/X
mount /dev/hdb1 -t ntfs /mnt/X
 
Old 11-26-2003, 04:09 PM   #14
Kjetil4455
Member
 
Registered: Jul 2003
Location: Norway/Drammen
Distribution: Slackware~
Posts: 250

Rep: Reputation: 30
cdrom;

mkdir /mnt/cdrom
mount /dev/cdrom -t iso9660 /mnt/cdrom
 
Old 11-28-2003, 09:33 PM   #15
ChopSueyX
Member
 
Registered: Nov 2003
Location: Planet M$
Distribution: Slack....
Posts: 46

Original Poster
Rep: Reputation: 15
Unhappy

right this is what i have then sry about the delay been v.busy. im not sure what details u actually need so ill jus put the details that were 1st asked for
Code:
/home/chopsueyx$ fdisk -l

Disk /dev/hdg: 4311 MB, 4311982080 bytes
255 heads, 63 sectors/track, 524 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdg1   *           1         522     4192933+   7  HPFS/NTFS
/dev/hdg2             523         524       16065    5  Extended
/dev/hdg5             523         524       16033+  14  Hidden FAT16 <32M

Disk /dev/hde: 123.5 GB, 123522416640 bytes
255 heads, 63 sectors/track, 15017 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hde1               1        2673    21470841    7  HPFS/NTFS
/dev/hde2   *        2674        3235     4514265   83  Linux
/dev/hde3            3236       15017    94638915    f  W95 Ext'd (LBA)
/dev/hde5            3236        3366     1052226   82  Linux swap
/dev/hde6            3367       15017    93586626   83  Linux
! /home/chopsueyx$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hde2             4.2G  2.6G  1.5G  64% /
! /home/chopsueyx$ cat /etc/fstab
#The optical devices:
/dev/hda         /mnt/cdrw1   auto        ro,user,noauto    0   0
/dev/hdc         /mnt/cdrw2   auto        ro,user,noauto    0   0
/dev/hdd         /mnt/dvdrw   auto        ro,user,noauto    0   0

# HDD's and all Partitions:
/dev/hde1        /mnt/win_c   ntfs        ro,auto,umask=0   0   0
/dev/hde2        /            ext3        defaults          1   1
/dev/hde5        swap         swap        defaults
/dev/hde6        /mnt/rfs     reiserfs    defaults          0   0
/dev/hdg1        /mnt/win_d   ntfs        ro,auto,umask=0   0   0
/dev/hdg5        /mnt/acronis auto        auto,umask=0      0   0

# floppy:
/dev/fd0         /mnt/floppy  auto        noauto,user       0   0

devpts           /dev/pts     devpts      gid=5,mode=620    0   0
proc             /proc        proc        defaults          0   0
! /home/chopsueyx$
do i hav to restart? or still neeed to mount them manually?
 
  


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
Mounting Drives anjum Linux - Software 3 07-29-2005 12:12 AM
Help in Mounting my cd drives coderasm Linux - Newbie 3 12-06-2004 05:52 AM
mounting my drives mark alan Fedora 7 12-05-2004 08:52 PM
Mounting Drives BlandoCal Linux - Hardware 49 09-14-2003 06:03 PM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM


All times are GMT -5. The time now is 05:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration