NeXT Computers Forum Index NeXT Computers
www.NeXTComputers.org
 
Log in to check your private messagesLog in to check your private messages

Log inLog in  RegisterRegister


Profile  Search  Memberlist  FAQ  Usergroups
Mounting Partitions under Linux

 
Post new topic   Reply to topic    NeXT Computers Forum Index -> NeXT Work Logs
View previous topic :: View next topic  
Author Message
wa2flq



Joined: 18 Dec 2008
Posts: 24

PostPosted: Sat Nov 07, 2015 9:52 am    Post subject: Mounting Partitions under Linux Reply with quote

Does anyone know how to mount a partition other that the first one under Linux (Ubuntu 7)?
I can easily mount and access the first one either from a disk or disk image. These are from my Intel SCSI drives.
Code:
$ mkdir /media/NS_Disk
$ sudo losetup /dev/loop0 NS_Disk0.img
$ sudo mount -t ufs -r -o ufstype=openstep /dev/loop0 /media/NS_Disk
$ ls -ald /media/NS_DISK/N*
dr-xr-xr-x  2 root root 1024 2004-01-13 01:17 /media/N/Net
drwxr-xr-x  2 root root 1024 1998-06-17 00:10 /media/N/News
drwxr-xr-x 11 root root 1024 2009-06-16 17:42 /media/N/NextAdmin
drwxr-xr-x 13 root root 1024 1999-08-06 12:26 /media/N/NextApps
drwxr-xr-x 10 root root 1024 1997-03-27 14:17 /media/N/NextDeveloper

But when I try to mount the second or third, using an offset from the /etc/disktab I used to build the disk it doesn't work. Is it possible to mount the other partitions?

Or does someone know what a good signature would be for the start of the partition I could use to locate the correct offset into the image?
Back to top
View user's profile Send private message
wa2flq



Joined: 18 Dec 2008
Posts: 24

PostPosted: Sun Nov 08, 2015 10:47 am    Post subject: Reply with quote

Caulk this one up to pilot error Embarassed

When I was computing the offsets, I didn't catch that the calculator was in Octal mode, instead of Decimal. Once I recomputed the partition block offset (4144304) into the base10 byte offset, the mount worked perfectly for all the other partitions in the disk image.
Code:
$ sudo losetup -o 2121883648  /dev/loop0 NS_Disk0.img
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NeXT Computers Forum Index -> NeXT Work Logs All times are GMT - 7 Hours
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



Powered by phpBB © 2017 phpBB Group