LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 07-26-2003, 03:46 PM   #1
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Rep: Reputation: 15
getting it to see all my drives


I have a problem, after I mount any of my drives (floppy, cdrom, hard drive) I cannot get a listing of the directory. I know there is something on hda1 and hda5 and the floppy and the cdrom but it will not list it. (in the case of the floppy and cdrom it will not even access the drive)
here is fstab:
# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda5 / ext3 defaults,errors=remount-ro 0 1
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,auto,showexec,umask=022 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,nooauto 0 0
#partitions found by knoppix
/dev/sda5 /mnt/sda5 ext3 noauto,users,exec 0 0
/dev/sda6 /mnt/sda6 ext3 noauto,users,exec 0 0
/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppix 0
/dev/hda5 /mnt/hda5 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppix 0
/dev/hda6 ext3 noauto,users,exec 0 0
/dev/hda7 ext3 noauto,users,exec 0 0
/dev/hda8 ext3 noauto,users,exec 0 0
swapon
/dev/sda6
I run knoppix installed on my drive which makes it debian.

Last edited by bmike1; 07-26-2003 at 06:17 PM.
 
Old 07-26-2003, 03:51 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Did you mount them?
# Managing drives
LNAG - Accessing my drives
Rute - Device Mounting
 
Old 07-26-2003, 06:08 PM   #3
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Original Poster
Rep: Reputation: 15
Okay.... that worked. How do you get it to auto mount or do I have to put 'mount /mnt/<drive>' for every drive into /etc/fstab... what about the floppy and cdrom (I just tried these and it didn't work for those drives).

Last edited by bmike1; 07-26-2003 at 06:09 PM.
 
Old 07-26-2003, 06:12 PM   #4
danny_kurniawan
Member
 
Registered: Jul 2003
Location: Surabaya - East Java, Indonesia
Distribution: Red Hat, Mandrake, Debian, Knoppix
Posts: 57

Rep: Reputation: 15
Change noauto to defaults for every partition you want to
 
Old 07-26-2003, 06:30 PM   #5
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Original Poster
Rep: Reputation: 15
What was that supposed to do? It did nothing that I could see.
 
Old 07-26-2003, 07:08 PM   #6
danny_kurniawan
Member
 
Registered: Jul 2003
Location: Surabaya - East Java, Indonesia
Distribution: Red Hat, Mandrake, Debian, Knoppix
Posts: 57

Rep: Reputation: 15
If you use, for example:

/dev/hda1 /mnt/hda1 vfat defaults,exec,umask=000,uid=knoppix,gid=knoppix 0 0

it will attempt to mount partitions at boot time rather than have it mounted manually, using uid and gid will set who will own the mounted partitions, since vfat doesn't have any user attributes, it will use default user root as the owner if you don't give uid/gid option. users option means that every user can mount them manually and claim that partition as their own, while the exec option gives the default executable (x) option for every file at the partition, this gives you a chance to run for example shell script from that partition directly, umask option will cause every time you create files on that partition, the file will have default attribute set, 000 means that it always create file with rwxrwxrwx permission set, but since vfat doesn't have any corresponding attribute set, this will cause the file created with the default attribute set.

hopefully this explains.
 
Old 07-26-2003, 07:40 PM   #7
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Original Poster
Rep: Reputation: 15
hda1, sda5, automounted with no problem.
hda5, hda6, hda7, and hda8 did not mount and when I attempted to it said 'can't find <drive> in /etc/fstab or /etc/mtab'.
 
Old 07-26-2003, 07:46 PM   #8
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Original Poster
Rep: Reputation: 15
here is fstab now:
# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda5 / ext3 defaults,errors=remount-ro 0 1
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,auto,showexec,umask=022 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,nooauto 0 0
/dev/sda5 /mnt/sda5 ext3 noauto,users,exec 0 0
/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppix 0
/dev/hda5 /mnt/hda5 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppix 0
/dev/hda6 ext3 noauto,users,exec 0 0
/dev/hda7 ext3 noauto,users,exec 0 0
/dev/hda8 ext3 noauto,users,exec 0 0
/dev/sda6 swap swap noauto 0 0
#partitions found by knoppix
/dev/sda5 /mnt/sda5 ext3 noauto,users,exec 0 0
/dev/sda6 /mnt/sda6 ext3 noauto,users,exec 0 0
/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppix 0
/dev/hda5 /mnt/hda5 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppix 0
/dev/hda6 ext3 noauto,users,exec 0 0
/dev/hda7 ext3 noauto,users,exec 0 0
/dev/hda8 ext3 noauto,users,exec 0 0
/dev/sda6 swap swap noauto 0 0
 
Old 07-26-2003, 08:59 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
look at the man pages on mount and fstab. This will help you figure the format of the /etc/fstab file and what all of the options mean.

The lines of hda6, hda7 and hda8 do not have mount points. This is why you are getting errors.

/dev/hda6 <mnt_point> ext3 noauto,users,exec 0 0
/dev/hda7 <mnt_point> ext3 noauto,users,exec 0 0
/dev/hda8 <mnt_point> ext3 noauto,users,exec 0 0

Change the swap line back to defaults. noauto means do not mount on boot.
/dev/sda6 swap swap defaults 0 0
 
Old 07-27-2003, 12:06 AM   #10
danny_kurniawan
Member
 
Registered: Jul 2003
Location: Surabaya - East Java, Indonesia
Distribution: Red Hat, Mandrake, Debian, Knoppix
Posts: 57

Rep: Reputation: 15
Ok... first of all, I see 2 /dev/hda5 here, the first one said it has ext3 format, while the second said it is vfat, which one is true? from what I see, it is the first one which is correct.

From your fstab file, it looks like you're having 1 primary partition (vfat) and 4 logical partition (hda5 = ext3 as /, hda6 ext3, hda7 ext3, and hda8 ext3) on your first IDE drive, and 2 logical partition (sda5 ext3, sda6 swap?), on your scsi drive, while this is look very confusing at first, since your fstab file have too many duplicate lines, try changing your fstab file into:

# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda5 / ext3 defaults,errors=remount-ro 0 1
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,auto,showexec,umask=022 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,nooauto 0 0
/dev/sda5 /mnt/sda5 ext3 noauto,users,exec 0 0
/dev/hda1 /mnt/hda1 vfat defaults,exec,umask=000,uid=knoppix,gid=knoppix 0
/dev/hda6 /mnt/hda6 ext3 defaults 0 0
/dev/hda7 /mnt/hda7 ext3 defaults 0 0
/dev/hda8 /mnt/hda8 ext3 defaults 0 0
/dev/sda6 swap swap defaults 0 0

if you're not sure about partition type, use fdisk to see it.
 
Old 07-27-2003, 01:32 AM   #11
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Original Poster
Rep: Reputation: 15
Michael,
Why do you want me to change /dev/hda5-8 defaults to noauto? I mean, don't we want them to mount at startup?
I'm not going to change /dev/sda6 noauto to defaults because free says that swap is working... that is unless you have a reason.
...................................................................................:confus ed: ..........................................................................................

Last edited by bmike1; 07-27-2003 at 01:52 AM.
 
Old 07-27-2003, 01:43 AM   #12
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Original Poster
Rep: Reputation: 15
Danny,
You are right. It did look confusing so upon your suggestion the second half that was commented out was erased.
~~~
# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda5 / ext3 defaults,errors=remount-ro 0 1
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,auto,showexec,umask=022 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,nooauto 0 0
/dev/sda5 /mnt/sda5 ext3 noauto,users,exec 0 0
/dev/hda1 /mnt/hda1 vfat defaults,exec,umask=000,uid=knoppix,gid=knoppix 0
/dev/hda6 /mnt/hda6 ext3 defaults 0 0
/dev/hda7 /mnt/hda7 ext3 defaults 0 0
/dev/hda8 /mnt/hda8 ext3 defaults 0 0
/dev/sda6 swap swap noauto 0 0
~~~
 
Old 07-27-2003, 01:55 AM   #13
danny_kurniawan
Member
 
Registered: Jul 2003
Location: Surabaya - East Java, Indonesia
Distribution: Red Hat, Mandrake, Debian, Knoppix
Posts: 57

Rep: Reputation: 15
Have you try to reboot the system to see if they're mounted at boot time?
 
Old 07-27-2003, 01:59 AM   #14
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Original Poster
Rep: Reputation: 15
I just tried rebooting but that wasn't the problem.

Last edited by bmike1; 07-27-2003 at 02:19 AM.
 
Old 07-27-2003, 05:32 AM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Quote:
Originally posted by bmike1
[B
/dev/hda1 /mnt/hda1 vfat defaults,exec,umask=000,uid=knoppix,gid=knoppix 0
/dev/hda6 /mnt/hda6 ext3 defaults 0 0
/dev/hda7 /mnt/hda7 ext3 defaults 0 0
/dev/hda8 /mnt/hda8 ext3 defaults 0 0
/dev/sda6 swap swap noauto 0 0
~~~ [/B]
What problems are you having know?

syntax for fstab

partition mnt_point filesystem options dump fsck

dump and fsck are the numbers at the end of the line. For non linux partitions it should be both 0

Stick another 0 at the end of line for /dev/hda1

For linux partitions non system it can be a 2

/dev/hda8 /mnt/hda8 ext3 defaults 0 2

Did you create the directory for hda6,hda7 and hda8? Use console command mkdir.
 
  


Reply



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
Adding additional drives/resizing drives in RAID arrays kheldar Linux - Hardware 1 10-19-2005 01:21 PM
Give user permission to mount/use cdrom drives or usb drives zwyrbla Linux - Newbie 2 08-23-2004 04:30 PM
External Drives (iPod and Pen Drives) dhbiker Slackware 13 04-08-2004 06:36 AM
Re: Mandrake 9.2 destroys LG cd drives...( but what obout Lite-On cd drives?) aweir14150 Mandriva 1 03-03-2004 07:52 PM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:07 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
Open Source Consulting | Domain Registration