LinuxQuestions.org
Visit Jeremy's Blog.
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 05-16-2006, 10:36 AM   #1
whitshade
Member
 
Registered: Sep 2003
Location: New Hampshire
Distribution: Xubuntu 16.04
Posts: 100
Blog Entries: 1

Rep: Reputation: 21
Unhappy /etc/fstab issues


Hey,

I have recently installed on an 80 gig hard drive, Win98SE, RH 8.0 and Slack 9.1. Here's how it looks in fdisk:

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 2433 19543041 b W95 FAT32
/dev/hda2 2434 5966 28378822+ 83 Linux
/dev/hda3 5967 9499 28378822+ 83 Linux
/dev/hda4 9500 9729 1847475 5 Extended
/dev/hda5 9500 9512 104391 83 Linux
/dev/hda6 9513 9729 1743021 82 Linux swap

Win98 (it's for games, okay!?) is on the first partition. Slack is on /dev/hda2. RH is on /dev/hda3 and /dev/hda5 serves as the RH boot partition. Here's my issue. In RH everything is fine. I can read the FAT32 partition ust fine. The fstab shows everything it should. But here's what the Slackware fdtab looks like:

/dev/hda2 / ext3 defaults 1 1
/dev/hda1 /mnt/win98 vfat defaults 1 0
/dev/hdb1 /mnt/hd vfat defaults 1 0
/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

/dev/hdb1 is an old 4 gig drive I use for backup and to move files around. I have Slack 7.1 on another hard drive (20 gig) with Win98 and the fstab looks ust like this, except that swap is listed (on that drive there's no problem with Slack being able to see Windoze). I guess my question is could something keep Slack from seeing the Windoze partition? I installed Win98 first, then RH, then Slack.
Any input would be appreciated. Note that I have created directories in /mnt for ./win98 and ./hd.

Thanks.
 
Old 05-16-2006, 11:23 AM   #2
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Quote:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 2433 19543041 b W95 FAT32
/dev/hda2 2434 5966 28378822+ 83 Linux
/dev/hda3 5967 9499 28378822+ 83 Linux
/dev/hda4 9500 9729 1847475 5 Extended
/dev/hda5 9500 9512 104391 83 Linux
/dev/hda6 9513 9729 1743021 82 Linux swap
is this the complete output of 'fdisk -l' It doesn't look like you have a /dev/hdb1 on your system. Can you not see /dev/hda1 either? You should be able to read vfat just fine with the 'defaults' option but try adding these options for testing purposes 'defaults,users,umask=000' this will give rwx permissions to the drive. If you want ro access for user.users only, change umask to 'umask=227' Also, do an 'ls -l /mnt' prior to mounting, and then again after mounting. Make sure the user you want to give access has the right permissions to access the folders both times.

post back if you are still having problems.

regards,
...drkstr
 
Old 05-16-2006, 04:52 PM   #3
whitshade
Member
 
Registered: Sep 2003
Location: New Hampshire
Distribution: Xubuntu 16.04
Posts: 100

Original Poster
Blog Entries: 1

Rep: Reputation: 21
Thanks, drkstr. I'll try your suggestions. I think I just need to keep tweaking fstab until I can see /dev/hda1. Interestingly, after adding /dev/hdb to fstab, I can now access that drive via /mnt/hd directory. If I can access /dev/hda1 through /mnt/win98, I'll have it made. I'll try your suggestions and post here when I succeed. Thanks again.
 
Old 05-17-2006, 06:29 AM   #4
wchild
Member
 
Registered: Mar 2006
Distribution: Slackware
Posts: 63

Rep: Reputation: 15
Does hdb show up at all in dmesg?
 
Old 05-17-2006, 04:26 PM   #5
whitshade
Member
 
Registered: Sep 2003
Location: New Hampshire
Distribution: Xubuntu 16.04
Posts: 100

Original Poster
Blog Entries: 1

Rep: Reputation: 21
wchild-

Thanks. hdb does show up in dmesg.

drkstr,

I tried your suggestions with no luck. It seems to me that I;ve run into a similar problem before. Any other suggestions would be appreciated. Here is the error message I get when I try to mount /mnt/win98:

mount: wrong fs type, bad option, bad superblock on /dev/hda1,
or too many mounted file systems


Thanks.
 
Old 05-17-2006, 07:01 PM   #6
pbhj
Member
 
Registered: Dec 2002
Location: UK
Distribution: Slackware 12; Ubuntu 7.10
Posts: 358

Rep: Reputation: 32
When I look at my fdisk (actually cfdisk) I noticed I had "1C" (not 1B that you have) for the type for W95 ...

/dev/hda1 * 1 961 7265128+ c W95 FAT32 (LBA)

... perhaps changing the type will help?

pbhj

PS: Don't blame me if it fsck.vfat's up your system.
 
Old 05-17-2006, 08:19 PM   #7
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
do you have more then 4 primary partitions? I don't know a lot about vfat, but I remember reading somewhere that it does not like it if there are more then 4 primary (hence the creation of extended partitions). For debuging purposes, try only mounting the / drive and the win98 drive and see if that is the problem.

regards,
...drkstr
 
Old 05-19-2006, 07:15 AM   #8
whitshade
Member
 
Registered: Sep 2003
Location: New Hampshire
Distribution: Xubuntu 16.04
Posts: 100

Original Poster
Blog Entries: 1

Rep: Reputation: 21
I have only three primary partitions (vfat, ext3(Slack) and ext3(RH). I have an extended partition for swap and /boot(RH). I have tried just mount /and /mnt/win98 with no luck. I can't help thinking it's something small I've overlooked (that's usually the cause of these things). My fstab on the 20-gig drive that this 80-gig drive is replacing is identical to the one above. That drive only has Win98 and Slack installed on it. I'll keep trying different things. Any ideas?

Thanks,
 
Old 05-20-2006, 10:43 AM   #9
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
whitshade

1. type 'mount' and see what all are mounted..
can you see anything mounted on /mnt/win98??


2. do you have a folder named '/mnt/win98' ie., a folder named win98 in /mnt ?

what does this dots mean??
Quote:
./win98 and ./hd.
also i am confused with your mount commands
Quote:
I have tried just mount /and /mnt/win98 with no luck
also
since u can mount ur /mnt/hd(second hard disk) no problem of vfat modules, so the problem may be due to the directories, ie the mount point

DONT try to mount partition to an already mounted folder

---
BEFORE editing fstab you can try
1. mounting the win98 to a custom folder(do as root)
for this please make a folder (say /mnt/test)"mkdir /mnt/test"
and apply this command
Code:
mount -t vfat /dev/hda1 /mnt/test
and see wether it is mounted "ls /mnt/test"

and if it is working then there is no problem (you only need to be sure about the mount points)


BEST OF LUCK

Last edited by rkrishna; 05-20-2006 at 10:48 AM.
 
Old 05-24-2006, 07:12 PM   #10
whitshade
Member
 
Registered: Sep 2003
Location: New Hampshire
Distribution: Xubuntu 16.04
Posts: 100

Original Poster
Blog Entries: 1

Rep: Reputation: 21
Thanks for the input, rkrishna. When I enter the mount command (just "mount" and nothing else), the partition in question is not listed. I tried your suggestion of creating a new directory ("test"), but when I try to mount this directory ("mount -t vfat /dev/hda1 /mnt/test"), I get the following error:

"Mount wrong fs type, bad option, bad superblock on /dev/hda1 or too many mounted file systems"

I apologize for my lack of clarification as to how I was using the mount command. This problem has me perplexed. Here's what I initially did to add this drive:

1. I added ./win98 to the /mnt directory.

2. I added the drive to /etc/fstab as stated above

3. I tried to mount the drive with this command: mount -t vfat /dev/hda1 /mnt/win98

4. I got an the above error message.

There has to be something I've overlooked. I've done this before, but not often enough to make the process go off without a hitch.

Any other ideas? There has to be SOMETHING I've overlokked.

Thanks,
 
Old 05-24-2006, 07:59 PM   #11
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Rep: Reputation: 40
Please post the output to the following commands:

Code:
whoami
Code:
df -h
Code:
mount
Code:
fdisk -l /dev/hda
Code:
ls -l /dev/hda[1-6]
 
Old 05-27-2006, 10:02 AM   #12
whitshade
Member
 
Registered: Sep 2003
Location: New Hampshire
Distribution: Xubuntu 16.04
Posts: 100

Original Poster
Blog Entries: 1

Rep: Reputation: 21
WindowBreaker,

Before you proceed, I should tell you that I have unistalled the 4GB hard drive mentioned above and replaced it with the 20GB hard drive that the 80GB hard drive was was meant to replace. This was my original intention. The 80GB drive is still /dev/hda. /dev/hdb1 is a FAT32 partition and mounts under /mnt/hd. The problem accessing /dev/hda1 from Linux still persists.

Here is the output for each command:

root@darkstar:/mnt# whoami
Code:
root
root@darkstar:/mnt# df -h
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3              27G  3.0G   22G  12% /
/dev/hdb1             3.9G  3.1G  913M  78% /mnt/hd
root@darkstar:/mnt# mount
Code:
/dev/hda3 on / type reiserfs (rw)
/dev/hdb1 on /mnt/hd type vfat (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
proc on /proc type proc (rw)
usbfs on /proc/bus/usb type usbfs (rw)
root@darkstar:/mnt# fdisk -l /dev/hda

Code:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        2433    19543041    b  W95 FAT32
/dev/hda2            2434        5966    28378822+  83  Linux
/dev/hda3            5967        9499    28378822+  83  Linux
/dev/hda4            9500        9729     1847475    5  Extended
/dev/hda5            9500        9512      104391   83  Linux
/dev/hda6            9513        9729     1743021   82  Linux swap
root@darkstar:/mnt# ls -l /dev/hda[1-6]

Code:
brw-rw----    1 root     disk       3,   1 Jun  9  2002 /dev/hda1
brw-rw----    1 root     disk       3,   2 Jun  9  2002 /dev/hda2
brw-rw----    1 root     disk       3,   3 Jun  9  2002 /dev/hda3
brw-rw----    1 root     disk       3,   4 Jun  9  2002 /dev/hda4
brw-rw----    1 root     disk       3,   5 Jun  9  2002 /dev/hda5
brw-rw----    1 root     disk       3,   6 Jun  9  2002 /dev/hda6
Thanks.
 
Old 05-29-2006, 12:32 PM   #13
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 173

Rep: Reputation: 22
I really can't undestand the problem a long shot:

Code:
fsck -f /dev/hda1
to check for possible errors in partition. If you care of hda1 backup /dev/hda1.

If it's easy, make only one primary partition, all other is extended partition.
 
Old 05-30-2006, 03:33 PM   #14
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
removed sorry i was trying this for the past one hour i couldnt post was there any error aa leave it

Last edited by rkrishna; 05-30-2006 at 04:24 PM.
 
Old 05-30-2006, 04:21 PM   #15
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
Thumbs up

hi whitshade, afer a long time i am logging and saw ur thread still unsolved, and iam sorry that i couldn't help you

this is your fstab entry corresponding to the crazy partition
"/dev/hda1 /mnt/win98 vfat defaults 1 0"
what is that "defaults" doing there
can you change it into
Code:
/dev/hda1 /mnt/win98 vfat auto,rw,umask=000 1 0
assuming that /mnt/win98 exists

auto and rw wil do but keep the umask option too
edit it and reboot and see if it is working (i dont like to reboot unless i need to check a new kernel but here you do it)

this is the error you are getting
"Mount wrong fs type, bad option, bad superblock on /dev/hda1 or too many mounted file systems"
1. Mount wrong fs , not sure with your file system in /dev/hda1, since one of your win partition is mountin thre is no pro with vfat module.
so i have to assume that they are different flavors of DOS partition.

2. too many mounted file systems". since our entry is already there in fstab that may give this error. but it is clear form "mount" command is that it is not mounted!!!

what next?
are you using a custom made kernel?
and you are sure that the partition is fat32 not ntfs!!

do a dmesg and see ie #dmesg |more, and c if you are getting anything special
i think "#dmesg |grep hda1" wil solve our problem

do one thing just remove the fstab entry or comment it(if needed reboot) and try the manual mount command
"mount -t vfat /dev/hda1 /mnt/test" if the partition is NTFS you need to change vfat to ntfs

best of luck
regards rkrishna\

Last edited by rkrishna; 05-30-2006 at 04:22 PM.
 
  


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
fstab issues after installation Fjord Fedora - Installation 6 11-04-2005 08:21 AM
Whacky FSTAB issues?!?1 raid517 Linux - Software 2 10-05-2005 11:32 AM
fstab issues djljjm Linux - Newbie 2 04-11-2005 06:18 PM
/etc/fstab issues haldara Linux - Newbie 2 02-08-2005 02:53 PM
kernel 2.6.0 issues with fstab? danielw Linux - General 3 12-31-2003 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:32 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