LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 07-08-2004, 10:20 PM   #1
phlyersphan
Member
 
Registered: Jun 2004
Location: Chicago, IL USA
Distribution: Mandrake 10
Posts: 103

Rep: Reputation: 15
Question 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!
 
Old 07-08-2004, 10:35 PM   #2
diablo111
Member
 
Registered: Jul 2004
Location: the other side of morning
Distribution: PCLOS, Fedora Core, Slackware and Mepis.
Posts: 54

Rep: Reputation: 15
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
 
Old 07-09-2004, 02:14 PM   #3
phlyersphan
Member
 
Registered: Jun 2004
Location: Chicago, IL USA
Distribution: Mandrake 10
Posts: 103

Original Poster
Rep: Reputation: 15
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?)
 
Old 07-09-2004, 03:24 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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.
 
Old 07-10-2004, 09:20 AM   #5
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
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...........
 
Old 07-10-2004, 03:00 PM   #6
phlyersphan
Member
 
Registered: Jun 2004
Location: Chicago, IL USA
Distribution: Mandrake 10
Posts: 103

Original Poster
Rep: Reputation: 15
Looks like comments are the way to go - thanks all
 
Old 07-11-2004, 12:16 AM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Yep, commenting is better than depending on your memory.
 
  


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
USB storage/camera device fstab help munkie_poo Linux - Hardware 1 03-15-2005 10:22 AM
Options in /etc/fstab seem not to apply when device is mounted. dr_zayus69 Linux - Hardware 2 03-07-2005 06:28 AM
USB Device Fstab Entry Campy19 Linux - Hardware 4 01-07-2005 09:34 AM
odd sound device settings in Gentoo 1.4 nekromancer Linux - Hardware 1 11-05-2003 09:56 AM
Adding 4-Bay SCSI Device To /etc/fstab? wvman45 Linux - General 3 09-29-2003 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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