LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-14-2002, 10:46 AM   #1
HoHah
LQ Newbie
 
Registered: Feb 2002
Location: Philly, PA
Distribution: RH72
Posts: 19

Rep: Reputation: 0
Questions regarding mounting partitions on the second hard drive


I recently bought another hard drive. the trick is that i could not mount any partition on the second hard drive, either fat or ext2, without affecting the availability of the cdrom. I mean, whenever a partition on the second drive is mounted, the cdrom can't be mounted any more.

Could somebody help? Thanks
 
Old 04-14-2002, 05:17 PM   #2
Psycho
Member
 
Registered: Feb 2002
Location: Carson City, Nevada
Distribution: Gentoo / SuSE 9.1 Pro (both A64)
Posts: 159

Rep: Reputation: 30
Probably not without more information. Hard drives are master & slave on primary IDE? CD-rom master on secondary IDE? Your /etc/fstab would help too...

<edit>typo</edit>
 
Old 04-14-2002, 07:03 PM   #3
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
How do you mount the new drive? W/o handcoding fstab, you're probably doing it wrong. If you don't want to handcode, then reinstall Linux.
 
Old 04-14-2002, 08:02 PM   #4
HoHah
LQ Newbie
 
Registered: Feb 2002
Location: Philly, PA
Distribution: RH72
Posts: 19

Original Poster
Rep: Reputation: 0
The linux system in the primary master drive, with a fat32 partition in the same drive mounted. I could not mount any partition in the primary slave, neither fat or ext, otherwise, the cdrom could be stucked out.

The err mesg in response to "mount /mnt/cdrom" or operation via linuxconf (with a partition in the primary slave mounted) is:

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

----------/etc/fstab-------------
LABEL=/ / ext2 defaults 1 1
LABEL=/boot /boot ext2 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/hdd4 /mnt/zip auto owner,exec,dev,suid,rw,noauto,kudzu 0 0
/dev/hda1 /mnt/win_c vfat exec,dev,suid,rw 1 1
/dev/fd0 /mnt/floppy auto owner,exec,dev,suid,rw,noauto,kudzu 0 0
/dev/hdb3 /opt ext2 exec,dev,suid,rw 1 1
/dev/cdrom /mnt/cdrom iso9660 owner,exec,dev,suid,ro,noauto 1 1
----------------------------------------------------------


Any help or idea would be greatly appreciated!!! ONLY, please don't, tell me to reinstall the syste, thanks:-)
 
Old 04-14-2002, 09:45 PM   #5
Psycho
Member
 
Registered: Feb 2002
Location: Carson City, Nevada
Distribution: Gentoo / SuSE 9.1 Pro (both A64)
Posts: 159

Rep: Reputation: 30
Was the cd-rom perhaps set up as primary slave before adding the second hard drive? What does ls -l /dev/cdrom link to? It's just a symbolic link, and if the cd-rom moved the link is broken.

If it was primary slave ls -l /dev/cdrom will look like
/dev/cdrom -> /dev/hdb which is where the slave hard drive is now. If that's the case as su rm /dev/cdrom and then, still as su make a new symbolic link.

Assuming the cd-rom is now hdc (secondary master) you would want to do
ln -s /dev/hdc /dev/cdrom so now ls -l /dev/cdrom will give you
/dev/cdrom -> /dev/hdc

Small matter of fixing a few things, no reinstall over something like that.
Your fstab don't even have to change to accomidate the cd-rom change if the guesses I've made are correct. btw the cd-rom shouldn't be slave to a hard drive anyway, it will slow the hard drive down.

<edit.>dang typos</edit>

Last edited by Psycho; 04-14-2002 at 09:47 PM.
 
Old 04-14-2002, 10:44 PM   #6
HoHah
LQ Newbie
 
Registered: Feb 2002
Location: Philly, PA
Distribution: RH72
Posts: 19

Original Poster
Rep: Reputation: 0
My case is:
Primary master: Hard drive
Primary slave: Hard drive
Secondary master: cdrom
Secondary slave: zip

The /dev/cdrom is linked to /dev/scd0 now, isn't it wierd? The cdrom worked well after I installing the second hard drive. Problem occurs only after I tried to mount any partition on the second drive.

Good lord, Psycho, how kind you are!
 
Old 04-14-2002, 11:02 PM   #7
HoHah
LQ Newbie
 
Registered: Feb 2002
Location: Philly, PA
Distribution: RH72
Posts: 19

Original Poster
Rep: Reputation: 0
I just accidently made a stupid mistake. When I tried to make the /dev/cdrom link to /dev/hdc, I put the parameters in the wrong positions. So, now, my hdc became a symbolic link instead of a disk file:

lrwxrwxrwx 1 root root 9 Apr 14 16:54 cdrom -> /dev/scd0
lrwxrwxrwx 1 root root 5 Apr 14 23:47 hdc -> cdrom

Could this be solved?
 
Old 04-14-2002, 11:14 PM   #8
Psycho
Member
 
Registered: Feb 2002
Location: Carson City, Nevada
Distribution: Gentoo / SuSE 9.1 Pro (both A64)
Posts: 159

Rep: Reputation: 30
That's interesting, I get myself confused easily here... scd0 would mean you're using scsi emulation, which is usually used for dcr(ecordable) or rw.
That's fine, I think in fstab you're ok. Is it a writer or re-writer?

Was it on primary slave before adding the drive? Maybe you have a leftover hdb=ide-scsi if it is. Ether in /etc/lilo.conf or /boot/grub that should be changed from hdb to hdc.
 
Old 04-14-2002, 11:24 PM   #9
Psycho
Member
 
Registered: Feb 2002
Location: Carson City, Nevada
Distribution: Gentoo / SuSE 9.1 Pro (both A64)
Posts: 159

Rep: Reputation: 30
Quote:
Originally posted by HoHah
I just accidently made a stupid mistake. When I tried to make the /dev/cdrom link to /dev/hdc, I put the parameters in the wrong positions. So, now, my hdc became a symbolic link instead of a disk file:

lrwxrwxrwx 1 root root 9 Apr 14 16:54 cdrom -> /dev/scd0
lrwxrwxrwx 1 root root 5 Apr 14 23:47 hdc -> cdrom

Could this be solved?
Everything can be solved...

Was this in /dev?? It should have told you /dev/hdc already existed and not let you link it to /dev/cdrom. Don't make any more changes until I catch up here
 
Old 04-14-2002, 11:34 PM   #10
Psycho
Member
 
Registered: Feb 2002
Location: Carson City, Nevada
Distribution: Gentoo / SuSE 9.1 Pro (both A64)
Posts: 159

Rep: Reputation: 30
So did you actually replace the /dev/hdc with a symbolic link? I doubt it would let even su do that, can't say I've ever tried though...

Oh-oh,, no reply. Check out man MAKEDEV if you really clobbered /dev/hdc You should be able to re-create it with MAKEDEV.

Dang, my bad Should have made him answer questions before dispensing advice. /me goes to stand in corner

Last edited by Psycho; 04-15-2002 at 12:04 AM.
 
Old 04-15-2002, 12:40 AM   #11
HoHah
LQ Newbie
 
Registered: Feb 2002
Location: Philly, PA
Distribution: RH72
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Is it a writer or re-writer?
RW

Quote:
So did you actually replace the /dev/hdc with a symbolic link?
Yes, I did it. :-(. su could do that.

I'll try to figure it out tomorrow. It's mid night here. Psycho, thank you so much for everything you did today, actually, yesterday.
 
Old 04-15-2002, 08:16 AM   #12
Psycho
Member
 
Registered: Feb 2002
Location: Carson City, Nevada
Distribution: Gentoo / SuSE 9.1 Pro (both A64)
Posts: 159

Rep: Reputation: 30
OK, i'm really sorry for the problems.

Just to be safe I would comment out the line in fstab for hdb with an # or disconnect the drive until you get the devices straightened out.

First. you should be able to put /dev/hdc back with MAKEDEV, see man MAKEDEV. I don't know if copying /dev/hde to /dev/hdc would work instead, I've never tried copying a device. Knowing Linux it would probably work.

If the cd-rw used to be hdb there is an append line you will need to correct. If you're using lilo, edit /ect/lilo.conf and change append="hdb=ide-scsi" to "hdc=ide-scsi" and rerun lilo. If you're using grub it's in /boot/menulist, just change the drive. You don't need to run grub or anything.

Having the /dev/cdrom link to /dev/scd0 would be correct for the scsi emulation. You can re-link that, ln -s something somewhere.

I'm really sorry for leading you astray, I will try to check the thread later from work.

--glenn
 
Old 04-15-2002, 11:26 AM   #13
HoHah
LQ Newbie
 
Registered: Feb 2002
Location: Philly, PA
Distribution: RH72
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
I don't know if copying /dev/hde to /dev/hdc would work instead
No, it won't. I tried yesterday.

Quote:
I'm really sorry for leading you astray.
Please don't say that. You won't know how I appreciate your nice help.

I am at campus and can't access my linux box. I shall try what you taught me later this afternoon. Have a great day.
 
Old 04-15-2002, 08:36 PM   #14
Psycho
Member
 
Registered: Feb 2002
Location: Carson City, Nevada
Distribution: Gentoo / SuSE 9.1 Pro (both A64)
Posts: 159

Rep: Reputation: 30
Onward & upward

Was the cd-rw on primary slave before adding the hard drive?
 
Old 04-16-2002, 03:38 AM   #15
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You can recreate /dev/hdc by running:

rm /dev/hdc
mknod /dev/hdc b 22 0
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting hard drive partitions oldforce SUSE / openSUSE 6 04-01-2005 04:09 AM
auto mounting of hard disk partitions rm1 Programming 3 11-08-2004 09:04 AM
Mounting hard disks & partitions dbong Linux - Hardware 3 01-16-2004 12:16 PM
hard drive partitions bm1 Linux - Hardware 3 11-26-2003 04:32 PM
Hard Drive / Partitions Starburn Linux - Hardware 2 10-29-2003 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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