Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
06-19-2003, 06:17 PM
|
#1
|
Member
Registered: Jun 2003
Location: nj
Distribution: slack10
Posts: 46
Rep:
|
Mounting Problems
Hey.
i have a 120gb usb hd that has been working fine under XP. I've had redhat for about a month so i'm still new. I tried to (and can) mount my USB hd with the following:
[root@broxys(/home/oliver) | 06:11 PM]
#mount /dev/sda1 /mnt/usbhd
I originally had been trying to mount it in my /etc/fstab but that didn't seem to work right. (Anyone know why?) And now when i Boot, the cdrom doesn't get mounted right for whatever reason.
(when i try to mount it i get this error:
root@broxys(/home/oliver) | 06:11 PM]
#mount /dev/cdrom
mount: special device /dev/cdrom does not exist
[root@broxys(/home/oliver) | 06:14 PM]
#mount /mnt/cdrom
mount: special device /dev/cdrom does not exist)
My /etc/fstab is below.
Can anyone help?
[oliver@broxys(~) | 06:06 PM]
$cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/hda5 /mnt/d: vfat defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
thx.
.oliver
|
|
|
06-19-2003, 07:17 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well, just what is says really. there is no /dev/cdrom. try a "ls -l /dev/cdrom" and it'll say "no such file or directryo - i hope.
you need to find where the cd drive actually is connected, e.g. /dev/hdc for secondary master on an ide channel andcreate a symlink:
ln -s /dev/hdc /dev/cdrom
which will then creaet that entry. and that mount command should work. alternatively just replace the /dev/cdrom entry with /dev/hdc. you'd then call
mount /mnt/cdrom
in just the same way. /dev/cdrom is just a slight sugaring of the device, to make it more friendly than "hdc" or wherever drive actually is.
|
|
|
06-19-2003, 07:29 PM
|
#3
|
Member
Registered: Jun 2003
Location: nj
Distribution: slack10
Posts: 46
Original Poster
Rep:
|
alright thx. chris. i think the issue definitely is when i was poking around in fstab i confused the /dev/? with /dev/cdrom. so the million dollar question is How do i find out where the cd drive is actually connected?
thx a bunch.
.oliver
|
|
|
06-19-2003, 08:12 PM
|
#4
|
Member
Registered: Jun 2003
Location: nj
Distribution: slack10
Posts: 46
Original Poster
Rep:
|
i actually think i've got it all covered now. thx very much for the help. it was /dev/scd0.
|
|
|
07-10-2003, 01:33 PM
|
#5
|
Member
Registered: Jun 2003
Location: nj
Distribution: slack10
Posts: 46
Original Poster
Rep:
|
A new question:
alright. so now that everything with the cdrom is working relatively fine.
HOWEVER.
the harddrive is now having some issues:
i stil can mount it fine with a mount command:
#mount /dev/sda1 /mnt/usbhd
alright. so how do i mount it in fstab?
with the following fstab configuration i get an error that does not allow me to boot, it gives me the option to login as root to rectify the problem.
/dev/sda1 /mnt/usbhd vfat noauto,user 1 2
or if i try to mount from the fstab while that is in fstab i get:
#mount /dev/sda1
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
or too many mounted file systems
so. uh.. any ideas?
thx.
|
|
|
All times are GMT -5. The time now is 12:10 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|