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 - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-23-2019, 01:38 PM   #1
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware64-multilib 15.0, SARPI, artix
Posts: 401

Rep: Reputation: 32
mount .dsk file


I have a .dsk file which is an ext4 formatted hard drive image created with R-Studio. R-Studio is for Windows and the image was created in Windows.

file image.dsk:

Code:
image.dsk: Linux rev 1.0 ext4 filesystem data, UUID=702bca38-459b-44d3-908f-eade1955f3cb (needs journal recovery) (extents) (large files) (huge files)
sudo mount -t ext4 -o loop,ro,noexec image.dsk /mnt/tmp:

Code:
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error
sudo dmesg | tail:

Code:
[212374.594038] EXT4-fs (loop0): bad geometry: block count 488315232 exceeds size of device (488315216 blocks)
sudo /sbin/fdisk -l image.dsk:

Code:
Disk image.dsk: 1.8 TiB, 2000139124736 bytes, 3906521728 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
I get too many weird errors trying to run R-Studio in Linux, so I think it would be easier to mount the image, so I was wondering if anyone here wanted to take a stab at it.

I'm hesitant to fsck it since it took 20 hours to create the image file and I don't want to ruin it somehow. Maybe someone knows better than I do.

Thanks.

Last edited by hedron; 04-23-2019 at 04:31 PM.
 
Old 04-23-2019, 03:20 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
It appears you left out the -o flag - also there shouldn't be a colon at end:
sudo mount -t ext4 loop,ro,noexec image.dsk /mnt/tmp:

Should be:
sudo mount -t ext4 -o loop,ro,noexec image.dsk /mnt/tmp
 
Old 04-23-2019, 04:32 PM   #3
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware64-multilib 15.0, SARPI, artix
Posts: 401

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by MensaWater View Post
It appears you left out the -o flag - also there shouldn't be a colon at end:
sudo mount -t ext4 loop,ro,noexec image.dsk /mnt/tmp:

Should be:
sudo mount -t ext4 -o loop,ro,noexec image.dsk /mnt/tmp
Oh, thanks. That was just a typo in the post, when I used the command I did have the -o option.
 
  


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
mount reiserfs .dsk image failed : can't read superblock jalil1408 Linux - General 2 02-26-2015 07:17 PM
Total Newb - How to get DSK file onto SD Card Chevymetal Linux - Newbie 17 08-07-2013 08:36 PM
Extract a .dsk file peonuser Linux - Software 2 04-18-2011 11:32 PM
USB boots but Puppy becomes Attached Scsi rem. dsk SDA and stops wilsonb Puppy 1 10-08-2006 09:08 AM
pcmcia.dsk at installation superbondbond Slackware 1 11-25-2003 10:04 PM

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

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