LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2019, 11:08 PM   #1
kvmkvm
LQ Newbie
 
Registered: Feb 2019
Distribution: CAINE, KALI
Posts: 3

Rep: Reputation: Disabled
Question Mount read write please!


Hello, fairly new to the Linux world. I work for a public school and would really appreciate any help, i'm trying to help search a student device with CAINE. I'm trying to pull an image of the drive for analysis, first I'm trying to mount an external USB hard drive 'sdb' with read and write privileges so I can write to it and copy the image with Guymager tool. If i just try to mount with CAINE it automatically write protects anything.

I'm tried first as root user: mkdir /media/forensicA
Then: mount -o rw /dev/sdb /media/forensicA

but i get this error:
"wrong fs type, bad option, bad superblock on /dev/sdb/, missing codepage or helper program, or other error"

i've googled around but nothing specific that helps.
 
Old 02-17-2019, 11:16 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,158

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
There's a scary thought - a new user let loose on a system using Caine and/or Kali ...

You don't generally (in a non-forensics world) mount devices, you mount partitions. So you probably want to mount /dev/sdb1 - whichever partition has an already formatted filesystem on it big enough for the purpose.
 
Old 02-17-2019, 11:26 PM   #3
kvmkvm
LQ Newbie
 
Registered: Feb 2019
Distribution: CAINE, KALI
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
There's a scary thought - a new user let loose on a system using Caine and/or Kali ...

You don't generally (in a non-forensics world) mount devices, you mount partitions. So you probably want to mount /dev/sdb1 - whichever partition has an already formatted filesystem on it big enough for the purpose.
Thanks for the reply! I'm not sure if this info is useful but the student device I'm attempting to image and analyze is Windows 10, NTFS drive/partition.
 
Old 02-17-2019, 11:45 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,158

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Doesn't matter - presuming /dev/sdb is the target where you want to write the image. After all the image is just a file. Analyzing it later is a different matter, then you'll need the NTFS tools, but that shouldn't be a problem using what you have.

Plug the external in and run this from a Linux terminal.
Code:
lsblk -f
 
Old 02-18-2019, 06:14 AM   #5
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,528

Rep: Reputation: Disabled
Never work on the original filesystem, create a disk dump of it, then make a copy of it, then mount that to work on, to find the problem.

If you mess up, you should have a back up of the disk dump file to work on.

I create mine using dd, (see man dd), then you will need to loop mount the file to access the drive copy, (see man mount).

(You may need to install ntfs3g to acess the files.)
 
Old 02-18-2019, 08:25 AM   #6
kvmkvm
LQ Newbie
 
Registered: Feb 2019
Distribution: CAINE, KALI
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fatmac View Post
Never work on the original filesystem, create a disk dump of it, then make a copy of it, then mount that to work on, to find the problem.

If you mess up, you should have a back up of the disk dump file to work on.

I create mine using dd, (see man dd), then you will need to loop mount the file to access the drive copy, (see man mount).

(You may need to install ntfs3g to acess the files.)
Thanks for the reply! Yes, thats what I'm trying to do, booting from USB live CAINE, then copy HD image to a external USB drive. My challenge is, i have only been able to mount the external drive as 'read only' , thus not allowing copy of HD image.
 
Old 02-18-2019, 10:03 AM   #7
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,528

Rep: Reputation: Disabled
If the external drive is NTFS, you likely don't have ntfs-3g installed in the live distro you are using.

Been a while since I needed to mount NTFS, but something like this should work.
Code:
sudo mount -t ntfs /dev/sdb1 /mnt

https://www.tuxera.com/community/open-source-ntfs-3g/

Last edited by fatmac; 02-18-2019 at 10:08 AM.
 
  


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
Read Write access to a iso9660 filesystem..mount a .iso image as read write ceazar123 Linux - Newbie 16 09-01-2010 09:07 AM
Read Write access to a iso9660 filesystem..mount a .iso image as read write ceazar123 Linux - General 2 08-26-2010 03:32 PM
Reiserfs vs JFS base on Read, Re-read, Write, Re-write Hesi Linux - Newbie 1 03-19-2010 04:08 AM
read/write,write/write lock with smbclient fails swatidas11 Linux - Networking 1 03-10-2010 12:27 PM
Open office read only, K-write read/write mode lwtvh Linux - Newbie 1 07-19-2003 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:35 PM.

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