LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-27-2011, 12:42 PM   #16
lisle2011
Member
 
Registered: Mar 2011
Location: Surrey B.C. Canada (Metro Vancouver)
Distribution: Slackware 2.6.33.4-smp
Posts: 183
Blog Entries: 1

Rep: Reputation: 25

I replied to the email I recieved from this forum expecting it to appear here. It didn't so here is what I said.

Access denied on lost and found is because you need to be root.

You can give the disk a label and it will probably help, there is no reason to not mount the disk under / but why don't you put it under your home/username?

All the bolded text are commands; italics are options to commands the hilighted parts are output from commands.

Open a terminal.

switch to superuser

su

(then type in the superuser password)

To label a disk:

blkid /dev/sdb1
/dev/sdb1: LABEL="Graphics" UUID="725aa4a2-2b37-4a1c-a928-0dd1c8e61237" TYPE="ext3" SEC_TYPE="ext2" -->this is my second drive

e2label /dev/sdb1 "Second_Drive"

then run blkid /dev/sdb1 again you will see something like the output above.

to mount it somewhere else edit fstab, do all of these things using the superuser account.

nano /etc/fstab

make your edit and don't worry it will be OK.

it should look like this

#<file system> <mount point> <type> <options> <dump> <pass>
/dev/sdb1 /home/yourname ext3 defaults 0 2

if your /home directory 'username' is NOT yourname use the name of whatever it is called

go ahead and mount the drive if it is not mounted or unmount if it is

umount /dev/sdb1

mount /dev/sdb1 /home/username

chown yourloginname:user /home/username or loginname whichever

exit

Your done.

close the terminal window and you are done.

I don't know what kind of computing you have been doing but I seem to recall that you are moving from Windows to Linux. There are some important differences when it comes to hard disk drives.
With Windows the disks have letters and seem independent. With Linux there is what is known as a 'mount point' and that point is /. Everything else is relative to that point. It doesn't matter what you want to see you 'mount' the hardware on /. If you plug in a cdrom or ram stick they are mounted on that point. This effectively give you one large disk, there really is no difference between the mounted hardware as far as the operating system is concerned. Forget the Windows style of referrring to individual disks, you no longer need to do that because all media are mounted on / so it's all the same. Even if you have access to other machines the media on those machines are mounted on /.

Good luck

David

From man mount
DESCRIPTION
All files accessible in a Unix system are arranged in one big tree, the
file hierarchy, rooted at /. These files can be spread out over several
devices. The mount command serves to attach the filesystem found
on some device to the big file tree. Conversely, the umount(8) command
will detach it again.
 
  


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
Power went out and can't mount Hard Drive on Ubuntu? LinuxNewbMartyr Linux - Newbie 6 07-06-2010 07:41 AM
Have to manually Mount Hard Drive Partitions on every boot moshebagelfresser Linux - Hardware 4 01-14-2009 12:29 PM
How do I mount a second hard drive? (PC/OS : Ubuntu) Crystal_Bits Linux - Newbie 3 12-23-2008 12:34 PM
Mount problems for hard drive partition in ubuntu 6.06 krishghosh Ubuntu 3 03-29-2007 05:03 AM
Ubuntu will not mount my other hard drive Trance56k Linux - Newbie 6 02-26-2005 02:08 PM


All times are GMT -5. The time now is 08:47 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration