English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 25 August 2016, 12:04   #1
Gaula92
Registered User
 
Gaula92's Avatar
 
Join Date: Aug 2008
Location: Spain
Posts: 527
Mounting HDF with RDB in GNU/Linux

Hi,

I have been trying this for a while, but never got it to work.
It's supposed to be easy. First we find out the partition iffset using parted:

Code:
manuel@vader:~$ parted /media/manuel/MINIMIG_V1/hdf_sys31.hdf 
WARNING: You are not superuser.  Watch out for permissions.
GNU Parted 3.2
Using /media/manuel/MINIMIG_V1/hdf_sys31.hdf
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit
Unit?  [compact]? B                                                       
(parted) print                                                            
Pralloc = 0, Reserved = 2, blocksize = 1, root block at 737478
Model:  (file)
Disk /media/manuel/MINIMIG_V1/hdf_sys31.hdf: 754974720B
Sector size (logical/physical): 512B/512B
Partition Table: amiga
Disk Flags: 

Number  Start    End         Size        File system  Name  Flags
 1      258048B  754919423B  754661376B  affs1        DH0   boot
Ok, so 258048 is the offset we need. Then we try to mount with that offset:

Code:
manuel@vader:~$ sudo mount -o loop,rw,offset=258048 /media/manuel/MINIMIG_V1/hdf_sys31.hdf /mnt/hdd
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
What's going on here??? It SHOULD work!
Regarding the issue, dmesg only says this:

Code:
[ 2397.519252] affs: No valid root block on device loop0
So, is it possible at all? I have been other people trying and failing...

I have also tried using a loop device and then mounting it:

Code:
manuel@vader:~$ sudo losetup -o 258048 /dev/loop2 /media/manuel/MINIMIG_V1/hdf_sys31.hdf
manuel@vader:~$ sudo mount -t affs /dev/loop2 /mnt/hddmount: wrong fs type, bad option, bad superblock on /dev/loop2,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
...and again dmesg says no valid root block

Code:
[ 3102.708499] affs: No valid root block on device loop2
EDIT: OK, got it to work....
Code:
sudo mount -t affs -o loop,offset=258048,sizelimit=754661376 /media/manuel/MINIMIG_V1/hdf_sys31.hdf /mnt/hdd/
I was simply missing the sizelimit parameter, which is taken from the partition SIZE that parted gave us.
It seems that, in fact, I did it in the past...

http://www.minimig.net/viewtopic.php?f=3&t=553

Sorry for the monologue. I am leaving it here for future reference.

Last edited by Gaula92; 25 August 2016 at 12:16.
Gaula92 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting .hdf files from Linux side? How? Hercules support.OtherUAE 5 13 January 2020 10:48
Sega Genesis Joypad in GNU/Linux? [Resolved] iddqd support.FS-UAE 5 23 April 2016 21:47
Preparing a CF from GNU/Linux iddqd support.FS-UAE 1 21 June 2015 10:09
Copying / recovering old Amiga floppies under GNU/Linux Kellogs support.FS-UAE 14 17 May 2014 09:51
Linux mounting hdd AliasXZ New to Emulation or Amiga scene 8 06 February 2008 23:36

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

Forum Jump


All times are GMT +2. The time now is 20:40.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.12083 seconds with 13 queries