LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-23-2020, 05:22 AM   #1
kaza
Member
 
Registered: Apr 2010
Distribution: FC17
Posts: 343

Rep: Reputation: 2
Ext. USB SSD: can't change partition type from "ntfs" to "ext4"


Hello!

I'm trying to connect an external SSD (USB) to one of our LINUX servers
to be visible (and accessible).

It came with a "ntfs" partition. At first I thought it's no problem
to "mount" it as "ntfs" type is among the known types. But I've got
an error:

mount: unknown filesystem type 'ntfs'

So I decided to remove the "ntfs" partision and to create a LINUX partition
instead.

Here's how the disk is visible:

Code:
lsusb
Bus 002 Device 005: ID 1058:1078 Western Digital Technologies, Inc. Elements Portable (WDBUZG)
lsscsi
[10:0:0:0]   disk    WD       Elements 1078    1065  /dev/sdc
I've run "fdisk /dev/sdc", deleted the partition, created new GPT
partition table, added a partition, here's how "fdisk" sees it:

Code:
fdisk /dev/sdc


WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Welcome to fdisk (util-linux 2.23.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p

Disk /dev/sdc: 2000.4 GB, 2000365289472 bytes, 3906963456 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt
Disk identifier: 77739321-A60D-45CA-A70F-15EB0DA20E22


#         Start          End    Size  Type            Name
 1         2048   3906963422    1.8T  Linux filesyste
But the "lsblk" still sees the partition type as "ntfs"
and "mount" gives the same error:

Code:
lsblk -f /dev/sdc1
NAME FSTYPE LABEL    UUID                                 MOUNTPOINT
sdc1 ntfs   Elements F474B7AA74B76DCC
I attempted to disconnect the SSD and re-connect it (thought that maybe some
cached information remains somewhere) but nothing changed: "fdisk" sees the
partition as LINUX and "lsblk/mount" see it as "ntfs".

What am I doing wrong?

TIA,
kaza.
 
Old 09-23-2020, 05:37 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,729

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
What distribution/version is running on your system?

The older ones did not automatically install ntfs-3g driver required for ntfs read/write support.

Did you actually create a ext4 filesystem using mkfs?
 
Old 09-23-2020, 08:53 AM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,500

Rep: Reputation: Disabled
Did you use the -t option when creating your Linux partition(?), & did you then create a Linux filesystem on the disk(?).

(Also, if it was mounted when you tried to alter it, the alterations won't have been written to the disk.)
 
Old 09-23-2020, 08:55 AM   #4
kaza
Member
 
Registered: Apr 2010
Distribution: FC17
Posts: 343

Original Poster
Rep: Reputation: 2
Thanks michaelk!

That's what I forgot: "mkfs" (long time since last time I did it).

All good now.

Regards,
kaza.
 
Old 09-23-2020, 02:51 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Wonder why it didn't work out of the box?
 
Old 09-25-2020, 10:02 AM   #6
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by jefro View Post
Wonder why it didn't work out of the box?
That answer is probably in post #2.
 
Old 09-25-2020, 02:41 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,993

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Almost every distro had NTFS read support for decades was my thinking. Would have to be odd to me not to have ntfs-3g in almost all newish distros.
Maybe command is wrong? Can't hurt to test for ntfs-3g but to read, mount had it for a long time.
 
  


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
How to change file system from ext4 journeying to ext4 writeback ? 5883 Linux - Newbie 6 03-10-2014 08:04 AM
Format Ext HD into Ext3 format only (not Ext 3/4) John Glasgow Fedora 8 01-02-2012 08:56 AM
Could zero-length partition error on ext4 ext HD be solved by switch to reiserfs? filosofic Linux - Hardware 5 01-12-2010 09:19 AM
Ext4 partition corrupted by resized NTFS Vista C:\ partition? graviton-boson Linux - Newbie 2 03-16-2009 01:26 PM
Filesystems: ext 2, ext 3, reiserfs. Which one? r3dhatter Linux - Newbie 12 07-15-2004 12:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:57 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