LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Hard Drive Icon (https://www.linuxquestions.org/questions/linux-newbie-8/hard-drive-icon-825833/)

Vhal 08-12-2010 11:43 AM

Hard Drive Icon
 
trying to help a friend out here. hes more of a GUI person, im more CLI..

hes running redhat enterprise, newest version.

he installed a second internal hard drive (hdc) i partitioned and mounted it at /storage, updated fstab.

now heres my question.

in the GUI, on the desktop and in the menu bar, theres a "Computer" icon/menu, and it shows his cdrom, filesystem (/) and any flash drives he has plugged into it. hes wanting to get his second hard drive to show up in there as well, similar to windows when you have more than 1 hard drive.

im scratching my head on this. the only thing i have been able to think of is a softlink, but that "Computer" section is a directory that i know of..

any help?

zootboy 08-12-2010 12:04 PM

Can you post the fstab listing? As I recall, if it's listed properly in fstab, it'll show up in the 'computer' folder automatically.

Vhal 08-12-2010 12:31 PM

not sure what he did while i was gone lol. said he did something with the logical volume manager GUI. the way he has it mounted just kinda looks weird to me...anyways heres the fstab contents

Code:

LABEL=/boot            /boot                  ext3    defaults        1 2
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                  /dev/shm                tmpfs  defaults        0 0
proc                    /proc                  proc    defaults        0 0
sysfs                  /sys                    sysfs  defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
/dev/VolGroup00/LogVol00                /                ext3        defaults        1 2
/dev/Storage/storage                /storage                ext3        defaults        1 2


r3sistance 08-12-2010 03:34 PM

Quote:

Originally Posted by Vhal (Post 4064371)
not sure what he did while i was gone lol. said he did something with the logical volume manager GUI. the way he has it mounted just kinda looks weird to me...anyways heres the fstab contents

Code:

/dev/Storage/storage                /storage                ext3        defaults        1 2

It should be mounting as /storage if it works but /dev/Storage/storage.... how did ya (or he) get it to reference as such. Usually I'd expect something like /dev/hdc1 or LABEL=/storage ... something along those lines. Have you confirmed /dev/Storage/storage actually exists and works... and is a reference to the correct place?

Vhal 08-12-2010 04:56 PM

yeah it works, im not sure what he did, i havnt had time to mess with it as im at work.

and yes i was expecting to see in fstab /dev/hdc1 /storage....weird

i was just going to mount it at /storage or /mnt/storage...

but yes it works otherwise. i will probably redo it tomorrow sometime so its cleaner and less confusing.

zootboy 08-12-2010 07:45 PM

Be careful modifying stuff like that. There are logical volumes involved, which add a whole layer of confusion to the matter. Logical volumes show up in the system as /dev/VOLUMENAME/LOGICAL_PARTITION, so the fstab line is perfectly valid. It cannot be changed to anything less confusing.

To be honest, I don't know a whole lot about LVM simply because I don't use it. Whenever I format for linux, I just make real partitions. But here's what happens: The hard drive is formatted with one big "real" partition. Then LVM is setup in that partition, getting the /dev/VOLUME link instead of /dev/hda1 or whatever. Within this 'logical volume partition', 'logical volumes' are created. These are partitions, but are not seen by a normal partition manager. LVM is required to access them. Read here for more info:
http://en.wikipedia.org/wiki/Logical_volume_management

To answer the original question, I have no idea how Gnome handles LVs (since I never use them), so I can't help you with the icon issue.


Edit: Also, it is mounted as /storage right now. If it's not working, you may have to create the /storage directory. Just make sure it's empty.


All times are GMT -5. The time now is 10:38 AM.