Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Cannot mount ext4 fs partition on USB flashdrive.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
The_Document
Apprentice
Apprentice


Joined: 03 Feb 2018
Posts: 273

PostPosted: Sun Feb 25, 2018 8:05 am    Post subject: [Solved] Cannot mount ext4 fs partition on USB flashdrive. Reply with quote

I have an 8GB USB 2.0 flashdrive with 1 ext4 partiton and it cannot be mounted for some reason, here is kernel config:
https://paste.pound-python.org/show/OjJzwJmsQQm9KKq13iCM/

here is dmesg when I plug it in:
https://paste.pound-python.org/show/sG5lVnnQBVs0GSS4tHkE/

I would like to be able to mount it.


Last edited by The_Document on Mon Feb 26, 2018 2:06 am; edited 1 time in total
Back to top
View user's profile Send private message
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 342
Location: Stockholm

PostPosted: Sun Feb 25, 2018 9:21 am    Post subject: Reply with quote

Didn't you partition it?
I get this message:
Code:
[10221.920530] usb 2-1: new high-speed USB device number 2 using ehci-platform
[10222.123930] usb 2-1: New USB device found, idVendor=1b1c, idProduct=1a09
[10222.123962] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[10222.123980] usb 2-1: Product: Voyager GT 3.0
[10222.123998] usb 2-1: Manufacturer: Corsair
[10222.124016] usb 2-1: SerialNumber: 0708663D001B9723
[10222.126184] usb-storage 2-1:1.0: USB Mass Storage device detected
[10222.127691] scsi host2: usb-storage 2-1:1.0
[10223.142664] scsi 2:0:0:0: Direct-Access     Corsair  Voyager GT 3.0   000A PQ: 0 ANSI: 6
[10223.146409] sd 2:0:0:0: Attached scsi generic sg1 type 0
[10223.150813] sd 2:0:0:0: [sdb] 123600896 512-byte logical blocks: (63.3 GB/58.9 GiB)
[10223.157575] sd 2:0:0:0: [sdb] Write Protect is off
[10223.157609] sd 2:0:0:0: [sdb] Mode Sense: 2b 00 00 08
[10223.159621] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[10224.798693]  sdb: sdb1 sdb2 sdb3 sdb4
[10224.819153] sd 2:0:0:0: [sdb] Attached SCSI removable disk

Code:
fdisk -l /dev/sdb
Disk /dev/sdb: 59 GiB, 63283658752 bytes, 123600896 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
Disklabel type: dos
Disk identifier: 0xf694db41

Device     Boot     Start       End  Sectors  Size Id Type
/dev/sdb1  *         8064  10493824 10485761    5G 83 Linux
/dev/sdb2        10493825  31465345 20971521   10G 83 Linux
/dev/sdb3        31465346 104865666 73400321   35G 83 Linux
/dev/sdb4       104865667 122915327 18049661  8.6G 83 Linux
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43559
Location: 56N 3W

PostPosted: Sun Feb 25, 2018 9:50 am    Post subject: Reply with quote

The_Document,

Code:
# CONFIG_MSDOS_PARTITION is not set

The kernel cannot read the partition table.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
The_Document
Apprentice
Apprentice


Joined: 03 Feb 2018
Posts: 273

PostPosted: Mon Feb 26, 2018 2:07 am    Post subject: Reply with quote

NeddySeagoon wrote:
The_Document,

Code:
# CONFIG_MSDOS_PARTITION is not set

The kernel cannot read the partition table.


Is it because flash drive has built in DOS partition table or because I made a dos partition table without knowing it?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43559
Location: 56N 3W

PostPosted: Mon Feb 26, 2018 9:50 am    Post subject: Reply with quote

The_Document,

FLASH drives have an MSDOS partition table when you buy them.
Usually with a single partition with some form of FAT filesystem.
This keeps Windows users happy.

You can change the partition table if you want to.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Mon Feb 26, 2018 4:57 pm    Post subject: Reply with quote

USB sticks don't usually have partition table at all, just plain file system.

Edit: This is not correct, might be remebering nonworking second partition with Windows.


Last edited by P.Kosunen on Sun Mar 11, 2018 5:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7195
Location: almost Mile High in the USA

PostPosted: Mon Feb 26, 2018 6:03 pm    Post subject: Reply with quote

P.Kosunen wrote:
USB sticks don't usually have partition table at all, just plain file system.

Every single flash media I've bought has a partition table on it. Some of them even uses the 4th entry (versus the 1st entry) as the pointer to the single partition, this I have no idea why.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum