LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-30-2015, 02:09 PM   #1
Upendra Pratap Singh
Member
 
Registered: May 2011
Location: India
Distribution: Ubuntu 14.04
Posts: 110
Blog Entries: 4

Rep: Reputation: 0
how to access other disk partition


I have got 5 partitions of my hard disk. Four of them are for Windows and the one is for Ubuntu.

Is there a way to access files of other partitions( windows partition) from Ubuntu terminal.

The df output looks like

F
Code:
ilesystem     1K-blocks     Used Available Use% Mounted on
udev              885496        0    885496   0% /dev
tmpfs             179184     9344    169840   6% /run
/dev/sda2      100660656  6967472  88556800   8% /
tmpfs             895908     1356    894552   1% /dev/shm
tmpfs               5120        4      5116   1% /run/lock
tmpfs             895908        0    895908   0% /sys/fs/cgroup
tmpfs             179184       52    179132   1% /run/user/1000
/dev/sda3      153599996 56507192  97092804  37% /media/snowbell/Fun Time
/dev/sda5       81946180 26517192  55428988  33% /media/snowbell/Study
 
Old 08-30-2015, 03:26 PM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Code:
# mount /dev/sdaX /mnt
 
Old 08-30-2015, 10:08 PM   #3
Upendra Pratap Singh
Member
 
Registered: May 2011
Location: India
Distribution: Ubuntu 14.04
Posts: 110

Original Poster
Blog Entries: 4

Rep: Reputation: 0
Thanks @Head on a Stick

I am able to access the files of sda5 successfully. But then, the df output no longer shows the line


Quote:
/dev/sda3 153599996 56507192 97092804 37 /media/snowbell/Fun Time
which it was showing in the above quoted output.

What could be the reason?
 
Old 09-02-2015, 06:13 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
What cmd did you use exactly??
 
Old 09-02-2015, 06:51 AM   #5
oldtechaa
Member
 
Registered: May 2015
Location: US
Distribution: Fedora
Posts: 364

Rep: Reputation: 83
If you want to access them, you could just find the files in the "/media/snowbell/Fun Time" directory.
 
Old 09-02-2015, 07:16 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Need more information.

Post the output of the command:
sudo fdisk -l (that is a small L)

If the disk is formatted using legacy MBR then you will have an extended partition and if you have a swap partition that could account for the missing two.
 
Old 09-02-2015, 02:20 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
/media/snowbell/Fun Time
so you have BLANK spaces in folder names ....

not good , this will CAUSE to need to do extra work

ether use quotes around the full path
"/media/snowbell/Fun Time"
or escape it
/media/snowbell/Fun\Time

quotes work better most of the time
 
1 members found this post helpful.
Old 09-02-2015, 04:32 PM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
If you're trying to access sda5, just go to /media/snowbell/Study

Similarly, if you're trying to access sda3, go to /media/snowbell/Fun Time

If you already have a partition mounted (you can see it in df), then there's no reason to mount it again somewhere else, and mounting sda5 somewhere won't cause sda3 to unmount, so as chrism01 asked, we need to know what exact command you ran.
 
Old 09-02-2015, 07:07 PM   #9
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Typically, the device auto-discovery process will create a /dev entry for each attached disk and for each partition on that disk.

To access the partition, you must mount it. The general format is: mount /dev/devicename mount_point, where mount_point is the name of an existing, but empty, directory, usually in the root directory ("/") The contents of the partition, if successfully mounted, then appear as the "contents" of that directory.
 
Old 09-05-2015, 12:12 PM   #10
Upendra Pratap Singh
Member
 
Registered: May 2011
Location: India
Distribution: Ubuntu 14.04
Posts: 110

Original Poster
Blog Entries: 4

Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
so you have BLANK spaces in folder names ....

not good , this will CAUSE to need to do extra work

ether use quotes around the full path
"/media/snowbell/Fun Time"
or escape it
/media/snowbell/Fun\Time

quotes work better most of the time
How to unmount the same partition?
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to access hard disk partition other than the filesystem Upendra Pratap Singh Linux - Software 12 07-21-2015 04:37 PM
[SOLVED] Can't access partition on hard disk with linux OS installed Higgsboson Linux - Newbie 13 01-07-2015 05:48 PM
Access hard disk with deleted Linux partition demonvsgod Linux - Newbie 2 07-04-2013 08:33 PM
[SOLVED] Not able to access a Hard Disk Partition in fedora 14 fabe856 Linux - Software 6 05-21-2012 06:23 AM
[SOLVED] Access to multi-partition disk image theNbomr Programming 2 01-30-2010 05:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:42 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
Open Source Consulting | Domain Registration