hard drive installed, formated, but won't show up when browsing?
Linux - NewbieThis 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.
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.
Sorry Nylex, I missed your last post. Here are some results:
mike@mike-desktop:~$ mount
/dev/sda6 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.24-19-generic/volatile type tmpfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
gvfs-fuse-daemon on /home/mike/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=mike)
/dev/sda5 on /media/New Volume type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096)
/dev/sdb5 on /mnt type ext3 (rw)
mike@mike-desktop:~$
So I can see here my /dev/sdb5. I can not browse to it to use it.
here is ls -l:
mike@mike-desktop:~$ ls -l
total 10044
-rw------- 1 mike mike 404770 2008-09-20 12:22 bookmarks.html
drwxr-xr-x 3 mike mike 4096 2008-09-19 08:14 Desktop
drwxr-xr-x 2 mike mike 4096 2008-09-14 12:32 Documents
drwxr-xr-x 2 mike mike 4096 2008-09-19 08:14 downloads
lrwxrwxrwx 1 mike mike 26 2008-09-14 06:26 Examples -> /usr/share/example-content
-rw-r--r-- 1 mike mike 1110512 2008-09-19 10:09 gnucash backup
-rw-r--r-- 1 mike mike 170 2008-09-19 08:09 gnucash backup.20080919080944.log
-rw-r--r-- 1 mike mike 170 2008-09-19 08:09 gnucash backup.20080919080948.log
-rw-r--r-- 1 mike mike 1139 2008-09-19 09:34 gnucash backup.20080919093001.log
-rw-r--r-- 1 mike mike 1110162 2008-09-19 08:09 gnucash backup.20080919093415.xac
-rw-r--r-- 1 mike mike 170 2008-09-19 09:34 gnucash backup.20080919093418.log
-rw-r--r-- 1 mike mike 959 2008-09-19 10:09 gnucash backup.20080919100845.log
-rw-r--r-- 1 mike mike 1110374 2008-09-19 09:34 gnucash backup.20080919100946.xac
-rw-r--r-- 1 mike mike 170 2008-09-19 10:09 gnucash backup.20080919100949.log
drwxr-xr-x 4 mike mike 4096 2008-09-19 08:10 Music
drwxr-xr-x 2 mike mike 4096 2008-09-14 12:32 Pictures
drwxr-xr-x 2 mike mike 4096 2008-09-14 12:32 Public
-rw-r--r-- 1 mike mike 48151 2008-09-21 08:44 Screenshot--dev-sdb - GParted.png
-rw-r--r-- 1 mike mike 18556 2008-09-21 08:45 Screenshot-mike@mike-desktop: ~.png
drwxr-xr-x 2 mike mike 4096 2008-09-14 12:32 Templates
-rw-r--r-- 1 mike mike 6379397 2008-09-19 08:09 translog.20080919080516.log
drwxr-xr-x 2 mike mike 4096 2008-09-14 12:32 Videos
mike@mike-desktop:~$
Right, we are convinced that the partition is mounted on /mnt. So, any files you create in /mnt are being written to that partition, since "mounting" just means to attach the file system on a device (here, /dev/sdb5) to the "filesystem tree".
Quote:
drwxr-xr-x 4 root root 4096 2008-09-21 10:32 mnt
Quote:
I tried every combination I could think of for the ls -l / |grep mnt. Probably not getting the correct command typed?
You missed the pipe ("|"), but never mind, since you ran "ls -l /" anyway and the relevant output is there:
Quote:
drwxr-xr-x 4 root root 4096 2008-09-21 10:32 mnt
You should be able to read the contents at least. Not sure if your GUI file manager is preventing you from even doing that (and if so, I don't know what the cause is).
I feel a little explanation may help (apologies if you aready know this, but it's common misunderstanding for new Linux users who are experienced in Windows).
In Linux, you don't actually see the "drives" as you do in Windows, when moving from directory to directory. Instead, you see a single file system, spanning out from / (root).
If a drive (or partition) is mounted on a particular directory, ls and similar commands will only show you the directory, but any files saved to this directory will actually end up on the drive.
You can actually mount a drive on a directory that already contains files. The files on the drive will "overlay" those already in the directory (but not delete them). When the drive is unmounted, you will be able to see them once more.
For instance, on my system, my home directory is on a separate partition - df shows the device name, usage and mount point:
Code:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda8 10365264 894536 8944200 10% /home
While mount shows the options with which the partition has been mounted:
Code:
/dev/sda8 on /home type ext3 (rw)
However, if I enter ls -l /home, there's no sign of the partition:
Code:
total 20
drwx------ 2 root root 16384 2008-01-20 21:27 lost+found
drwxr-xr-x 55 rob rob 4096 2008-09-21 14:42 rob
OK. I can see the mnt folder is (close to) the size of the hard drive I installed.
Keep in mind I am a new guy here. I expected to see the hard drive as a "new volume", or some sort of thing like that, that I could browse to.
Sooooo. Now I have a folder/directory named mnt that is approx. 180 gig. I really feel ridiculous/foolish (Linux seems to have a way of doing that to me), I can see the folder under "filesystem", but can not create a folder within it, or save anything to it. For example, if I want to save a OO document, I can not browse to this directory to save to it.
I can not create a link to it, or to the "testdir" within it. I'm sorry for the thickness here, but I can't seem to figure out how to use this hard drive. My plan was to use this extra drive to store (and access!) music, photos and such. Is there something right in front of me that I am missing? I do know how to browse to folders, I know how to save to folders. I can find this mnt folder, but can not save to it. I can not copy a file to it. What am I missing?
All I am trying to accomplish, is add a hard drive to increase my storage capacity.
Do I need to somehow mount this drive in my home folder?
I almost have an idea about how I do not see, or have to see, the separate drive. But as you can see from my previous post, I am unable to write to this drive/directory, or create a directory within it, or create a link to it etc.
I have a partition on my disk that I use for music and stuff and what I do is mount it under my home directory. The permissions and everything seem to be taken care of. Edit: I assume that GUI file managers will work ok as well, but I never use them so I don't know. Anyway, to do this, you'll need to create a directory in your home to use as the mount point and then add an entry to your /etc/fstab. My fstab entry looks like this:
/dev/hdd3 /home/nick/shared ext3 auto,rw 1 2
There's a guide to understanding and editing fstab here. It's a text file, so any text editor will do. You'll need to use sudo to get privileges to edit the file (i.e. run something like "sudo gedit /etc/fstab" to open the file with gedit).
OK. I am remembering some of this. I finally got the gedit /etc/fstab command. Problem is, my /dev/sdb5 is not listed.
I tried to "mount /dev/sdb5/home/mike, but got the message that sdb5 was not listed in fstab.
So it appears that the drive is mounted in the filesystem tree, but it is not listed in fstab. Do I have to try and manually enter it in fstab? I was thinking it would be there, and I would only edit the line.
You don't need an entry in fstab to be able to mount partitions. However, adding an entry is useful, for instance, if you want partitions mounted automatically when the system is booted.
Firstly, you're missing the entries for the last two columns and secondly, you probably don't want to mount that partition on /home/mike, you probably want a directory in your home directory as the mount point (as I have, I use the directory called shared).
mike@mike-desktop:~$ sudo mount /dev/sdb5/home/mike/backup
[sudo] password for mike:
mount: can't find /dev/sdb5/home/mike/backup in /etc/fstab or /etc/mtab
1. Your entry for /dev/hdb5 has a # at the beginning, which means that it will be ignored (it's "commented out").
2. When you run mount, you need to put a space between the device (/dev/sdb5) and the mount point (/home/mike/backup). When you have an fstab entry, you can actually omit the mount point (i.e. "mount /dev/sdb5" should work), since mount will check the fstab file.
mike@mike-desktop:~$ sudo mount /dev/sdb5
[sudo] password for mike:
Sorry, try again.
[sudo] password for mike:
mount: mount point /home/mike/backup does not exist
mount: mount point /home/mike/backup does not exist
Quote:
Can you see what I am still doing wrong?
Trying to mount to a directory that doesn't exist. Create the directory backup in /home/mike if that's the directory you want to use. You use mkdir to create directories: mkdir /home/mike/backup (or, obviously "mkdir backup" if you're in /home/mike).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.