/media and HD's [SOLVED]

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
LaQuirrELL

/media and HD's [SOLVED]

Post by LaQuirrELL »

Asus P5Q Deluxe c2d 3.0gHZ 4.0GB ram

Hi
Fairly new to the linux experience.
Installed Linux Mint 9 yesterday. Went well, without errors.
At the time of installation I also installed a 5th internal harddrive and named it MusicShare320SG
This is what things look like upon 1st starting up.
snapshot2.jpeg
I am assuming the [/] on the icon [leftside] means not mounted and when I click on any Hard Drive, I get asked for root password, which when I enter it , the [/] changes to an arrow and I can access the info on that HD and it shows up in /media.
snapshot3.jpeg
Do I need to change permissions or ownership, so any user can access with out having to go to root.
The one that is named Disk should be named MusicShare320SG. How can I change it?
The entries for these disks [4] show up in mtab, I am used to them being in fstab. Where should they be?
Also, I am used to them being listed in my /home directory, can they be put there ?
How would I go about this without mucking up my Hard drives?

This is the contents of the fstab and mtab:

fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda2 during installation
UUID=8a08caca-962d-414b-8b0f-dd0852ac2db1 / ext3 errors=remount-ro 0 1
# /home was on /dev/sda3 during installation
UUID=b69c2b82-50a0-434a-a905-c610a2a4fd65 /home ext3 defaults 0 2
# swap was on /dev/sda1 during installation
UUID=9237c032-d552-4fcf-a5af-6cf9988971bb none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
mtab
/dev/sda2 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
none /sys sysfs rw,noexec,nosuid,nodev 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
none /dev devtmpfs rw,mode=0755 0 0
none /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
none /dev/shm tmpfs rw,nosuid,nodev 0 0
none /var/run tmpfs rw,nosuid,mode=0755 0 0
none /var/lock tmpfs rw,noexec,nosuid,nodev 0 0
none /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
/dev/sda3 /home ext3 rw 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
/dev/sde1 /media/disk ext3 rw,nosuid,nodev,uhelper=hal 0 0
/dev/sdd1 /media/MusicLibrary ext3 rw,nosuid,nodev,uhelper=hal 0 0
/dev/sdb1 /media/MusicShare ext3 rw,nosuid,nodev,uhelper=hal 0 0
/dev/sdc1 /media/MusicStore ext3 rw,nosuid,nodev,uhelper=hal 0 0
Do things look right in them?
Also I would like to get rid of the floppy and floppy0 folders, as iI do not have a floppy drive on this machine.
Thank you
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
altair4
Level 20
Level 20
Posts: 11425
Joined: Tue Feb 03, 2009 10:27 am

Re: /media and HD's

Post by altair4 »

Might I suggest the following:

Auto Mount Partitions on Boot
: http://forums.linuxmint.com/viewtopic.php?f=42&t=22093
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
StanTheMan

Re: /media and HD's

Post by StanTheMan »

To get rid of the floppy defaults , do this - -
Terminal
cd /media
sudo rmdir floppy0
sudo rm floppy
( and you can remove the lines referring to it in /etc/fstab )

Your extra hard-drives are classified as devices.
/dev/sdd1
File storage devices always have a partition number, even if there is only one partition (i.e. the whole drive)
I presume you are looking at the Nautilus file manager , which has a side bar listing available drives.
When you click on the listing in the side bar , it creates a temporary mount point folder and mounts it on ' /media/xxxxxx '
But you can create a permanent folder like this - -
Terminal
cd /media
sudo mkdir MusicShare320SG

Now to fix permissions - -
sudo chgrp plugdev MusicShare320SG
sudochmod g+rw MusicShare320SG
ls -l

As your UserAdm is by default , a member of the group ' plugdev ' ,
this gives the group ' plugdev ' read and write permissions.
Next is to mount it . You can mount it by CLI , or automatically by adding a line to /etc/fstab - -
/dev/sdd1 /media/MusicShare320SG ext3 defaults 0 0
-- and save the fstab file.

Note that you cannot change the name of the device , but you can change the name of the mount point folder to anything you like.
altair4
Level 20
Level 20
Posts: 11425
Joined: Tue Feb 03, 2009 10:27 am

Re: /media and HD's

Post by altair4 »

StanTheMan,

I don't disagree with anything you posted except the order of the steps.

If the MusicShare320GS is currently mounted then unmount it:

Code: Select all

sudo umount /media/MusicShare320SG
On this one we agree:
Terminal
cd /media
sudo mkdir MusicShare320SG
It should be followed by this:
Next is to mount it . You can mount it by CLI , or automatically by adding a line to /etc/fstab - -
/dev/sdd1 /media/MusicShare320SG ext3 defaults 0 0
-- and save the fstab file.
You might want to add that to mount it after adding it to fstab you would do a:

Code: Select all

sudo mount -a
And only then do this:
Now to fix permissions - -
sudo chgrp plugdev MusicShare320SG
sudochmod g+rw MusicShare320SG
If you set permissions on a mountpoint before the partition is mounted those permissions won't survive the mount. If MusicShare320SG itself is currently root:root 755 then regardless of what you do to the mountpoint before it's mounted it will mount root:root 755.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
LaQuirrELL

Re: /media and HD's

Post by LaQuirrELL »

altair4 and Stan the Man

Thank You for replying and help. I have read altair4's link to Fred's how to automount, but followed the layout suggested here, by altair4 and Stan the Man.
The 1st time I tried it, I rebooted after I made the changes and could not get back into the OS. I believe I made some drastic error and when it rebooted it could not find disks or something. It just hung at opening splash screen.
Reinstalled Linux Mint 9 and tried again to auto mount. Have since rebooted and it is working fine. I used the legacy [/dev/sdxx] identifier, but wonder how hard it would be to change it to the UUID identifier, as i do swap drives in and out, and have also near reached my max on the # of drives I can use on this m/board.

Is it just a matter of replacing the sdxx with the UUID #?

Also, one of my disk sizes is being incorrectly reported in /media. When I do a Right click/Properties on MusicShare in Dolphin, it shows 36.1 gb free of 146.7 gb. This disk is a 320 gb disk and when I do an fdisk -l from terminal it shows as 320 gb or when I look at the disk in KDE partition editor it shows as 320 gb. How would I go about correcting this or finding out what is wrong?
Thank you
LaQuirrELL

Re: /media and HD's

Post by LaQuirrELL »

oK for all intents and purposes the original ? has been answered satisfactorily.

ty altair4 and Stan the Man

I will post my additional ?'s in other posts.
Locked

Return to “Beginner Questions”