Questions regarding mounting partitions on the second hard drive
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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...
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
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.
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.
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:
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.
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:
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.