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 |
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.
|
 |
07-08-2004, 10:20 PM
|
#1
|
Member
Registered: Jun 2004
Location: Chicago, IL USA
Distribution: Mandrake 10
Posts: 103
Rep:
|
Odd hd device in fstab... can I delete it?
OK... So I decided to rename some of the devices in my /etc/fstab file. I don't like the names that the Mandrake installer picked for me. For example, my removable thumb drive ended up as /mnt/win_c3. So I made a directory in mnt called thumb, and renamed the mount point in fstab....
Anyway, while I was in there, I found an entry, and I can't for the life of me figure out what it is. I'll paste the entry, then describe my setup:
none /mnt/hd supermount dev=/dev/ide/host0/bus0/target0/lun0/part1,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,kudzu,codepage=850 0 0
Now, here's what I have on this system:
2 hard drives.
Primary drive - one partition, fat32 with a dysfunctional and soon to be deleted WinXP on it.
Secondary drive - Linux, with a swap partition, a / root partition, a /home partition (root and home are reiserfs), and a /data partition (fat32 for common data storage).
All of the partitions on the secondary drive already have mount points in fstab, and the partition on the primary drive has a mount point assigned as well (it mounts as /mnt/win_c).
So what the heck is that /dev/hd ??? I don't have any other partitions!
Can I delete it?? I'd like to get rid of the icon off my desktop at least. And, when I right-click the icon on the KDE desktop, there is no "unmount" option like the other vfat drives.
Thanks all!
|
|
|
07-08-2004, 10:35 PM
|
#2
|
Member
Registered: Jul 2004
Location: the other side of morning
Distribution: PCLOS, Fedora Core, Slackware and Mepis.
Posts: 54
Rep:
|
Don't delete it, just add a "#" in front of it, commenting it out, then see what happens. That way, if it messes something up, just take out the # and it's back 
|
|
|
07-09-2004, 02:14 PM
|
#3
|
Member
Registered: Jun 2004
Location: Chicago, IL USA
Distribution: Mandrake 10
Posts: 103
Original Poster
Rep:
|
Oooh good plan - I was wondering if that file supported comments
Do most LInux config files allow you to comment lines out? (And is it safe to assume the pound sign as the single-line comment character?)
|
|
|
07-09-2004, 03:24 PM
|
#4
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
Yes, # is usually the comment character.As always, there are exceptions. You can typically figure it out by scanning the existing file. Most distributions or software packages will have comments in a stock/default configuration file.
If I'm reading things correctly, that line in fstab is referring to your XP partition. If you dissect the dev= portion of the line, it's saying:
/dev/ide - IDE device
/host0 - connected physically to this machine
/bus0 - primary IDE channel
/target0 - master on the IDE channel
/lun0 - internal characteristic of the device; storage devices usually just have 1 lun
/part1 - partition 1
I'm not completely familiar with supermount, but my (limited) experience with it suggests it mounts disks/devices on-demand. So if you were to make a request to read or write something supermount knows is on your XP drive, it would try to mount it for you, perform the operation, and then unmount it when complete; sort of a way to hide the need to mount filesystems from the user.
So yeah, comment out the line first and see if it changes anything. If not, you could delete it if you like.
|
|
|
07-10-2004, 09:20 AM
|
#5
|
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577
Rep:
|
if you were to delete that ICON from the desktop AND it was a mounted
partition.............everything on that partition would
go bye bye!!(IE.....deleted, gone)!!
the saying goes........IF in doubt, comment it out...........
|
|
|
07-10-2004, 03:00 PM
|
#6
|
Member
Registered: Jun 2004
Location: Chicago, IL USA
Distribution: Mandrake 10
Posts: 103
Original Poster
Rep:
|
Looks like comments are the way to go - thanks all 
|
|
|
07-11-2004, 12:16 AM
|
#7
|
LQ Guru
Registered: Jan 2002
Posts: 6,042
Rep: 
|
Yep, commenting is better than depending on your memory.
|
|
|
All times are GMT -5. The time now is 04:48 AM.
|
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
|
|