Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Ubuntu Help
Reload this Page I don't know how to mount drive
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Ubuntu Help Discussion and help about Ubuntu, Kubuntu, Xubuntu, and all the Ubuntu family

Reply
 
Thread Tools Display Modes
Old 12-12-2007   #1 (permalink)
Just Joined!
 
Join Date: Dec 2007
Posts: 3
I don't know how to mount drive

Hi,
I am new to Linux/Ubuntu.
I am currently running Ubuntu from the CD and want to see my 40 GB ntfs drive (from windows) so that I can recove all the data from it. It was earlier connected as secondary drive (slave) and I have data that I need to get back as my primary drive failed.
Please help.
kdhatt is offline   Reply With Quote
Old 12-12-2007   #2 (permalink)
Linux User
 
Agent-X's Avatar
 
Join Date: May 2005
Location: Dimension X
Posts: 261
You should be able to use Ubuntu's explorer (Nautilus) to double click on the drive, access the partition, and copy materials.
I suppose you'll want to copy things to another storage medium.

You have to be more specific, though.
What exactly do you want to recover? The whole partition? Some user-made data?
How much memory is being used by that HDD?

Go to the terminal

alt+f1 >> accessories >> Terminal
OR located in the top panel
Applications >> accessories >> Terminal

Type these one at a time.
Press enter after typing in each one.
Press "q" to leave each manual screen.

man sudo
man cp
man mkdir
man fdisk
man ntfs-3g
man mount
man umount
man cdrecord
man mkisofs
__________________
Agent-X is offline   Reply With Quote
Old 12-12-2007   #3 (permalink)
Just Joined!
 
Join Date: Dec 2007
Posts: 3
Thank you Agent X,
I was wondring if someone will reply to me on thnis.
As I said I am totally new to this.
I have my files (pictures and word documents) etc that I need to copy/backup on my usb drive that I have attached to this computer.


Is this Nautilus on the desktop and I can explorer the drive?
Also do I need to type each line on terminal as mentioned by you and enter.
What these commands are suppose to do.
Sorry for my ignorance but I appreciate your help on this.

Thanks in advance.
kdhatt is offline   Reply With Quote
Old 12-13-2007   #4 (permalink)
Linux User
 
Agent-X's Avatar
 
Join Date: May 2005
Location: Dimension X
Posts: 261
Quote:
Originally Posted by kdhatt View Post
Thank you Agent X,
I was wondring if someone will reply to me on thnis.
As I said I am totally new to this.
I have my files (pictures and word documents) etc that I need to copy/backup on my usb drive that I have attached to this computer.


Is this Nautilus on the desktop and I can explorer the drive?
Also do I need to type each line on terminal as mentioned by you and enter.
What these commands are suppose to do.
Sorry for my ignorance but I appreciate your help on this.

Thanks in advance.
1. What is the size of the jumpdrive?
2. Nautilus is like Windows Explorer
3. It would be beneficial to use the terminal, as I don't feel like telling you how to use a ton of GUI programs.
4. The above commands will display text-based manuals, describing each command.
5. When you type in a command (or copy paste), yes you hit enter. Sometimes, though, command can be automatically put in through a paste command. That's why I tend to like manually typing things unless I'm fully aware of what the pasted code is going to do.

Typically when someone says, "man programx" that person is telling you to look at the manual for that program.
To access the manual using such a command as "man programx" you type it into the terminal and hit enter.

The manuals can get dense, and sometimes need to be reread.
The most dangerous one would be the .. I think it's the cp (copy) if you're not careful.

__________________________________________________ _________

First thing, Ubuntu isn't too different from Windows. It's just a bunch of underlying code and hardware managing that makes a difference.

I'm going to describe a more thorough way of doing this.
A person probably could use

Quote:
sudo nautilus
But, you'll learn something more using the terminal.

Plus, if you really don't know what you're doing, I think the command lines will provide more direction.
Also, you never know when Linux is going to backtalk you, saying you can't do something.
The command-line often gives more detail about what is happening to and inside a computer.

I think a person will eventually be using these commands again as he or she becomes more experienced.


First thing you want to do is learn what terminal is.
That's going to happen quickly.

First find the panelbar/taskbar that has "Applications"

Applications >> accessories >> terminal

Afterwards, I want you to type this:

Code:
sudo fdisk -l
Whatever has NTFS is most likely a partition with your data.

Copy the results and post them here.

Also, with the above post I gave you, type the individual lines into the terminal.

Each one will discuss a topic that has to do with Linux and managing filesystems. The cdrecord one has to do with controlling a CD burner. I think mkisofs deals with controlling a DVD burner.

that would be...

man mkisofs

Major thing to learn about Linux is that a lot of people like using the Terminal (also called Konsole/Console) [It's just a command-line box (like DOS but more powerful)] to control the software/hardware/system things with Linux.

---------------------------------------------------------------------------
Quote:
Here's what I think you really need to do:

Prediscussion:


I. You need to develop a plan

a. Depending on how much you plan on copying, you'll be using some possible devices.

1. DVD or CD
2. Jumpdrive
3. iomegas
4. Tape
5. Internet server (plz don't tell me you like mainframes)
6. Who knows; pick a card.

II. You need to know how to enact upon that option

a) if you're going to use a CD or DVD to copy the data, then you'll need to know how cdrecord and/or mkisofs work.
-- ab) I suppose you'll want to use a Live-USB with Ubuntu on it for that kind of scenario.

b) Or you could be sneaky by resizing the slave, creating multiple partitions, moving the partition with data to another partition, and put a version of Ubuntu on the first partition, and set in BIOS to boot to the slave; from there, copy the data to the a CD/DVD/flash.

* The problem with b is that typically people want to back up their data first, which makes this a stupid/unsafe/but optional decision. It's not that unsafe, but I have had problems with gparted, which is in the Ubuntu Live-CD, in the past.

c) You copy all the data to a jumpdrive or other external source

After that, I suspect you'll have your data on a storage medium, and you can choose to do whatever.


LET'S GET STARTED:

Reboot the computer without the jumpdrive in it.
Have the Live-CD already in the tray.
Don't put the jumpdrive in yet.

------------------------------------------------------------------------------

1. Understand the Linux filesystem hierarchy

Knowing that helps you go really far, really fast. Basically, know the foldertree system or whatever people want to call it these days.

http://tldp.org/LDP/Linux-Filesystem...tml/index.html

In Ubuntu, sometimes things are mounted to the /media/ folder
Other times, you'll be mounting things to your desktop.

The /media/ folder becomes more important during an actual HDD install.
During Live-CD mode, for new users, it often pertains to external media devices.
The mounting folder can be different in other Linux operating systems.

We'll employ /media in a little more detail later on.

For now, get some experience with nautilus.

Want a way to use Nautilus?
Use the terminal and type in:

Quote:
nautilus
That will give you nautilus, but closing the terminal (which executed and believes nautilus is now an extension of it) will also close nautilus. You can reopen it by repeating by opening terminal and typing in "nautilus" again.

Or you could go to Places >> Home Folder
Places is located on the top panelbar

++++++++
Quick discussion on nautilus, which is like Windows explorer.

1. You really can't tamper with many folders besides /home/ubuntu/ at the moment.

In other words, most folder except your home folder (like your folder in Documents and Settings) can't be tampered with.
And like Windows, it can't be played with unless you're the administrator.

Now, since you should be in nautilus as the user "ubuntu" we'll talk about what you'll be doing next.

Sometimes you have the left-side panel; sometimes you don't.

You could go through "view" >> side pane (maybe f9 does it, too) and see if you can toggle it.

Regardless, you can do the following...

type this:

/media/

A box, like a mozilla firefox/internet explorer search bar should have accepted what you typed.

Afterwards, hit enter.

If not, then you could double click on "File System" in the side pane. From there, go to the folder labeled "media".

It should bring you to the /media/ folder
You might see devices listed there.
If not, that means you didn't activate them yet.
Oh, the computer sees them. I know this to be true.
However, the computer typically looks at a local drive like a beautiful woman.
But you need to influence it to talk to the beautiful woman.

Don't do this yet, just take a look with your eyes, not a double-click: If you have the side-pane open, then you can most likely double-click on the drive/partition that has your data.

Now, if there isn't anything in your sidepanel relating to a hard drive or partition, this means you're having a kernel/module problem.
And that is a whole different story. Otherwise, Nautilus is being stupid. If that's the case, sudo fdisk -l in the terminal should reveal the current truth about your current hardware storage devices.

You can identify this if you understand how to identify the max amount of memory available (not free space, but kind of like how much hypothetical space in whole there would be if no data were present)

More about this HDD identification...

------------------------------------------------------------------------------

2. Understand how disks and partitions are labeled in Linux

This is the part where you'll want to reference to the output of...

Quote:
sudo fdisk -l
Sometimes I combine the usage of terminal with nautilus. This allows me to double-check my work and make sure that nautilus isn't acting like a stupid GUI that doesn't refresh well enough.

a. HDDs can be either sda or hda
-- ab. They'll be listed )if you have partitions) in

hda1 (first partition)
hda2 (second part.)

Something like that.

b. The other problems is that a lot of other storage devices can be called sda, sdb, or hdb.

I'm going to assume a second drive (as a slave) would be hdb or sdb.

c. You need to know how to tell the difference by using "sudo fdisk -l"

man fdisk

Don't have an open terminal? Get another one opened.

d. You need to be able to already understand how memory is allocated to storage devices: That helps determine what the output of fdisk is.

------------------------------------------------------------------------------

3. Time to "mount" the devices

* Quick note: mount is for ; ntfs-3g is for ntfs format.

The next few steps depend on how you want to transfer stuff.
Since you have a jumpdrive, we'll talk jumpdrives.

Open a terminal and insert this

This line makes folder on your desktop:
Code:
mkdir $HOME/Desktop/agentx
Quote:
When mounting a drive, you need to mount its hardware position to a logical position.
This is often achieved by creating a folder (which will act as the logical position) to direct the hardware position to.
For a Live-CD, you're most likely going to direct the hardware position to a logical position on your user desktop.
Next ...

Insert your jumpdrive
It should be automatically mounted after being inserted: a thing called udev takes care of this
* udev should now have mounted your jumpdrive to /media/disk

Use terminal

This line makes a folder on your jumpdrive:

Quote:
mkdir /media/disk/linuxforums


Alright, now...

Quote:
sudo fdisk -l
--- Compare it to the previous sudo fdisk -l

You should be able to identify which device is the jumpdrive
the /dev folder has a history of its own.

at the moment, we'll say it's like the /dev of a device is the hardware representation of it

so...

/dev/hdb1 would be the hardware representation of a possible second HDD's first partition

With a jumpdrive, it could /dev/sdc if you've got two HDDs in your box.
But that's if both are being recognized. If both aren't being recognized, it might be /dev/sdb1
Regardless, jumpdrives are often automatically mounted from their /dev position to a folder that logically represents them

So, let's say sudo fdisk -l led you to believe the jumpdrive is now /dev/sdb1
dev = device (I think)

In other words, the OS mounts it from...

/dev/sdb1 to /media/disk

If you wanted to unmount the jumpdrive, you would have to do this:

Quote:
umount /media/disk
An important thing to notice here is that the ./disk folder belongs to you, the user ubuntu.

But the /dev/sdb1 does not belong to you, because /dev (the hardware representation) belongs to the root user.

So, in a sense, you have an idea of what the /media folder is and what the /dev stuff is about.

However, you could always tell it to go fly a kite by pulling out the USB jumpdrive.

Not recommended to pull it out without unmounting, though, because that leads to a possible data damage.
Linux is picky and unlike windows: You really, really should manually unmount a device before pulling it out.

Reason(s):

1. Just because it looks like data isn't being transferred does not mean data is done transferring.
2. Sometimes data is just lost for who knows why. Maybe Linux wasn't done accessing it in the first place.
3. By now, you've put a folder on the jumpdrive, and that means you have accessed the jumpdrive and you might damage it.

If you unmounted your jumpdrive, pull it out and put it back in.
-- Otherwise, just continue.

Now, you need to mount that NTFS partition.

I hope you've identified which /dev/* it is: sudo fdisk -l

Quote:
Remember, it's up to you to figure out how the Linux OS is determining your internal and external drives.
What I've said so far may be confusing, which is why you, the reader, need to think critically.
Next, you're going to be using sudo.

replace /dev/xxx with the correct xxx you have.

There should be no slash after the xxx!

/dev/xxx/ <-- no

/dev/xxx <-- yes

Quote:
sudo ntfs-3g /dev/hda1 /home/ubuntu/Desktop/agentx
------------------------------------------------------------------------------

4. It's the Final Countdown

Now, you should be able to go to your desktop and go into the agentx folder, which contains the NTFS partition.

HOWEVER, let's go into the folder labeled "disk" on the desktop.
It should be there.

That's your jumpdrive.
The explorer window system you are in is called nautilus.

Go into the folder "linuxforums"

Now, things are going to be like Windows or other operating systems.
You're going to copy files from one area to the other.
In other words, things are going to be more simple.

Go into the agentx folder on the Desktop and browse through.
You should see the contents of whatever is in that NTFS partition.

Start collecting stuff, right-clicking to copy, and pasting to the transference folder.

WARNING: The NTFS folder is not read-only.
Don't do anything stupid.

When you're done, right click on the "disk" folder, which should be on the desktop.
Click "eject" if it's there, or click "unmount" if it's there.
It could be a variety of terms, because the ubuntu versions jack things around.
Basically, you're unmounting your device.

You could do it in terminal instead with your new experience...

Quote:
umount /media/disk
Wait until you get to the next

Quote:
ubuntu@blahblah:~$
and that let's you know that the command was executed correctly.

After unmounting the jumpdrive, remount it (also known as put it back in) and check to see what you copied to it is actually there.
Afterwards, unmount it again.

And uh, that should be pretty good.

_________________________________________________-

Tags: backup data, ntfs-3g, data recovery, mount, umount, fdisk, slave drive,
__________________
Agent-X is offline   Reply With Quote
Old 12-13-2007   #5 (permalink)
Just Joined!
 
Join Date: Dec 2007
Posts: 3
Thumbs up

Thanks alot.
I hope this will get me started.
I hope I can get back to you if I need more help.


World is a nice place with people like you around.
kdhatt is offline   Reply With Quote
Old 12-13-2007   #6 (permalink)
Just Joined!
 
Filipet's Avatar
 
Join Date: Jul 2006
Posts: 70
Biggest reply I've ever seen.
Filipet is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot mount USB drive "bad superblock" / "VFS: Can't find a valid FAT filesystem" SJWackness Ubuntu Help 3 12-06-2007 01:47 PM
cant mount usb drive after reboot, get mount error UNDERNET Redhat / Fedora Linux Help 2 09-19-2006 11:43 PM
how to mount my exteded ntfs partition jacklinux Linux Newbie 7 09-01-2006 02:51 PM
SuSE 10.0 Linux on External USB Dell Latitude D610 jmcdaniel3 SuSE Linux Help 4 08-17-2006 12:30 AM
How to Mount a drive ? Wambat Redhat / Fedora Linux Help 3 03-08-2006 03:52 PM

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 01:25 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0