LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 10-05-2015, 05:01 AM   #1
Tirnanog
Member
 
Registered: Sep 2015
Location: Cymru
Distribution: Linux maya 18.1
Posts: 42

Rep: Reputation: 1
Smile External hard drive formatting


Hi all,
Help - thus far you have solved all my issues.

I have two lap tops one running mint one running win 7 for safety until I am sure I can do what I want with mint
I had one large external hard drive (NTFS) on which I mirror things I don’t want to lose every 3-4 mths but mostly I use USB stick (fat32)

Last night I partitioned it into two drives primary one fat 32 and the second one ext4 - guess what Linux read the primary partition and refused to play ball with the second partition. I could not download anything to it root issue.(There will be a notice going out soon that ‘Terminal is dead’ it totally refused my approaches)

Question should I format it to suit Linux and windows (?NTFS Ext4 or fat 32) and use folders but windows on oracle must be able to read it, or how do I get root to recognize the Linux partition

What would be best Hope this makes sense it seems a bit long winded
Tirnanog

Last edited by Tirnanog; 10-05-2015 at 05:05 AM.
 
Old 10-05-2015, 05:59 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
After you formatted it did you make a file system for it? Note that you would partition with something like fdisk, but you next need to make a file system using something like mkfs. Perhaps you can relate the commands or processes you used to format the ext4 partition.
 
Old 10-05-2015, 07:26 AM   #3
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
I don't know what Terminal is dead means. I have never heard of that before.

If you are having trouble using the ext4 partition on the external drive it is probably just ownership.
In a terminal, enter the command
Code:
mount
to indentify the mount point of your partition on the external drive.
It will look something like this:
/dev/sdb2 on /media/yourusername/partitionlabel type ext4 (rw,nosuid,nodev,uhelper=udisks2)
Change ownership with this command:
Code:
sudo chown $USER:$USER  /media/yourusername/partitionlabel
That applies to linux formatted partitions (ext4), not ntfs.
Since Windows is not smart enough to use linux partitions, you do have to have a fat or ntfs partition for your Windows backups.
 
Old 10-05-2015, 08:48 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
I'd agree you need to post more information on what you did because it doesn't make sense. I have an external drive with 8 partitions, 2 primary ntfs and 6 logical with a Linux filesystem. I can access and use all from Linux but obviously, only the 2 ntfs from windows so something went wrong for you and you'll need to post more details, especially what "play ball" means.
 
Old 10-05-2015, 02:31 PM   #5
Tirnanog
Member
 
Registered: Sep 2015
Location: Cymru
Distribution: Linux maya 18.1
Posts: 42

Original Poster
Rep: Reputation: 1
sorry if i was unclear rather elderly female and dim
I used gparted made windows primary partition and linux the logical partition - sorry you misunderstood my English humor I wont do it again !!
 
Old 10-05-2015, 02:52 PM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
If I am reading your initial post correctly, you seem to be saying you cannot copy anything to the partition on the external disk. If that's the case, it is most likely a problem with the ownership of the mount point or permissions as suggested above and you would need to change that. You can get that information by opening a terminal and running the ls -l command on the mount point. Can't be any more detailed without more details from you.
 
Old 10-05-2015, 03:14 PM   #7
Tirnanog
Member
 
Registered: Sep 2015
Location: Cymru
Distribution: Linux maya 18.1
Posts: 42

Original Poster
Rep: Reputation: 1
hiYancek

yes that is all I want to do - wine is working - virtual drive is working I have saved all my windows stuff on partition 1 I just want to save all my Linux documents on Partition 2 I am using clonzilla for safety so I have images. I don't think I need a file system ---- afraid of the terminal (that why I wanted to shoot it) As you say hard drive shows up in root I did not have this issue before when it was all ntfs it just opened and I dropped my file in there.
Tirnanog
 
Old 10-05-2015, 07:19 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
I don't think I need a file system
Yes you do and I'm sure there is one. You can find the type of filesystem on any mounted partition by typing the following in a terminal:

df -T

For all partitions: sudo parted -l(Lower Case Letter L in the command)

Under Mint, additional partitions on an external hard drive will be available under the /media/username directory (replacing username with your actual user name). If you run the following command it will tell you the owner:group as well as the permissions for the owner:groupthers:

ls -l /media
ls -l /media/username

You can change the owner using the chown command as root (using sudo).

sudo chown -R username /media/username/partition2

Using the above, substitute your actual username and the directory mount point of the partition for partition2. Probably a UUID, a long series of numbers/letters unless you created a mount point for it.

Last edited by yancek; 10-05-2015 at 07:20 PM.
 
Old 10-06-2015, 11:59 AM   #9
Tirnanog
Member
 
Registered: Sep 2015
Location: Cymru
Distribution: Linux maya 18.1
Posts: 42

Original Poster
Rep: Reputation: 1
Smile

windows mounted but not linux these are the results of what you asked


Filesystem Type 1K-blocks Used Available Use% Mounted on/
/dev/sda2 ext4 206603936 79056192 117029780 41% /
none tmpfs 4 0 4 0% /sys/fs/cgroup
udev devtmpfs 1837372 12 1837360 1% /dev
tmpfs tmpfs 370588 1360 369228 1% /run
none tmpfs 5120 0 5120 0% /run/lock
none tmpfs 1852932 76 1852856 1% /run/shm
none tmpfs 102400 48 102352 1% /run/user
/dev/sda3 vfat 97631936 68938208 28693728 71% /media/joan/2E5C-D8B3
/dev/sdb1 vfat 513652224 135635008 378017216 27% /media/joan/Windows


ls -l /media
total 4
drwxr-x---+ 4 root root 4096 Oct 6 16:36 joan

ls -l /media/username
ls: cannot access /media/username: No such file or directory


sudo chown -R username /media/username/partition2

chown: cannot access ‘/media/xxxx/partition2/linux/’: No such file or directory
chown: cannot access ‘HDS721010CLA332:’: No such file or directory
chown: cannot access ‘Linux’: No such file or directory

I don't really understand what what is wrong start from scratch I think is called for

Tirnanog

 
Old 10-06-2015, 12:23 PM   #10
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by Tirnanog View Post
windows mounted but not linux

ls -l /media/username
ls: cannot access /media/username: No such file or directory

sudo chown -R username /media/username/partition2
chown: cannot access /media/xxxx/partition2/linux/: No such file or directory

I don't really understand what what is wrong start from scratch I think is called for
Tirnanog
When you do ls (list) for /media it will not show your linux partition, because it is not mounted - as you noted already.
The only way it will show up, and the only way you can run the chown command on it, is if it is mounted.

You don't have to start from scratch. It is just a matter of learning what to do.

Last edited by TxLonghorn; 10-06-2015 at 12:24 PM.
 
Old 10-06-2015, 12:26 PM   #11
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
Please run these 2 commands and post the result here.
Code:
sudo blkid
Code:
cat /etc/fstab
 
Old 10-06-2015, 12:29 PM   #12
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by Tirnanog View Post
Filesystem Type 1K-blocks Used Available Use% Mounted on/
/dev/sda2 ext4 206603936 79056192 117029780 41% /
none tmpfs 4 0 4 0% /sys/fs/cgroup
udev devtmpfs 1837372 12 1837360 1% /dev
tmpfs tmpfs 370588 1360 369228 1% /run
none tmpfs 5120 0 5120 0% /run/lock
none tmpfs 1852932 76 1852856 1% /run/shm
none tmpfs 102400 48 102352 1% /run/user
/dev/sda3 vfat 97631936 68938208 28693728 71% /media/joan/2E5C-D8B3
/dev/sdb1 vfat 513652224 135635008 378017216 27% /media/joan/Windows
I don't see an external hard drive here at all. I interpret /dev/sda as internal, you have Windows likely on sda1 and then Linux as your second boot on sda2. Seems that sda3 is partitioned as a Windows drive partition.
 
Old 10-06-2015, 12:31 PM   #13
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Quote:
Originally Posted by Tirnanog View Post

ls -l /media
total 4
drwxr-x---+ 4 root root 4096 Oct 6 16:36 joan

ls -l /media/username
ls: cannot access /media/username: No such file or directory
What he meant for you to do was replace "username" with your username, as he didn't know yours. So, now,

Code:
ls -l /media/joan
Quote:
sudo chown -R username /media/username/partition2

chown: cannot access /media/xxxx/partition2/linux/: No such file or directory
chown: cannot access HDS721010CLA332:: No such file or directory
chown: cannot access Linux: No such file or directory

I don't really understand what what is wrong start from scratch I think is called for

Tirnanog
Code:
sudo chown -R joan /media/joan/<insert mount point of EXT4 partition here>
So if
Code:
ls -l /media/joan
Gives you
Code:
drwxr-x---+ 4 root root 4096 Oct  6 16:36 my_linux_files
You would run

Code:
sudo chown -R joan /media/joan/my_linux_files
This won't help you now, as your output doesn't show the partition mounted, but this should help you in the future when someone tells you to enter a command with "username" in it.

Now, to try and mount that filesystem, plug in the drive. If it's not autodetected, run garted. Right click the partition, and select the menu item to "Mount" the partition. However, something's funny here as Mint should be automounting it if everything was done right. If still no luck, paste the output of the command TXLonghorn asked for here.

Last edited by goumba; 10-06-2015 at 12:36 PM.
 
Old 10-06-2015, 02:08 PM   #14
Tirnanog
Member
 
Registered: Sep 2015
Location: Cymru
Distribution: Linux maya 18.1
Posts: 42

Original Poster
Rep: Reputation: 1
Many Thanks to you all - I have only been using Linux for 2 weeks and it is fully functioning to do teaching materials etc. edit books Internet and mail so this is not important

Can anyone point me to a crib sheet which I can follow otherwise I will return to NTFS for now - I need to learn these commands it is getting very confusing

Regards Tirnanog
 
Old 10-06-2015, 04:44 PM   #15
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
The first link is the most detailed, the other links are more basic with just a few commands for starters.

http://www.comptechdoc.org/os/linux/..._ugbasics.html

http://www.tecmint.com/useful-linux-...s-for-newbies/

http://www.dummies.com/how-to/conten...-commands.html
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting an external hard drive with Ubuntu strifemaster Linux - Newbie 3 04-19-2009 09:27 PM
Formatting External Windows XP Hard Drive with Mepis 7.0 Eric952x Linux - Hardware 11 02-09-2009 07:05 PM
formatting my external hard drive twelvenine Linux - Newbie 7 12-27-2006 02:53 AM
Help formatting an external hard drive. ruddyss4 Linux - Hardware 3 03-04-2006 01:01 PM
formatting an external hard drive pobfosheezy Linux - Laptop and Netbook 1 09-18-2003 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

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

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