@night 1803 access accessdata active directory admissibility ads aduc aim aix ajax alex levinson alissa torres amcache analysis anjp anssi answer key antiforensics apfs appcompat appcompatflags applocker april fools argparse arman gungor arsenal artifact extractor attachments attacker tools austin automating automation awards aws azure azuread back to basics backstage bam base16 best finds beta bias bitcoin bitlocker blackbag blackberry enterprise server blackhat blacklight blade blanche lagny book book review brute force bsides bulk extractor c2 carved carving case ccdc cd burning ceic cfp challenge champlain chat logs Christmas Christmas eve chrome cit client info cloud forensics command line computer forensics computername conference schedule consulting contest cool tools. tips copy and paste coreanalytics cortana court approved credentials cryptocurrency ctf cti summit cut and paste cyberbox Daily Blog dbir deep freeze defcon defender ata deviceclasses dfa dfir dfir automation dfir exposed dfir in 120 seconds dfir indepth dfir review dfir summit dfir wizard dfrws dfvfs dingo stole my baby directories directory dirty file system disablelastaccess discount download dropbox dvd burning e01 elastic search elcomsoft elevated email recovery email searching emdmgmt Encyclopedia Forensica enfuse eric huber es eshandler esxi evalexperience event log event logs evidence execution exfat ext3 ext4 extended mapi external drives f-response factory access mode false positive fat fde firefox for408 for498 for500 for526 for668 forenisc toolkit forensic 4cast forensic lunch forensic soundness forensic tips fraud free fsutil ftk ftk 2 full disk encryption future gcfe gcp github go bag golden ticket google gsuite guardduty gui hackthebox hal pomeranz hashlib hfs honeypot honeypots how does it work how i use it how to howto IE10 imaging incident response indepth information theft infosec pro guide intern internetusername Interview ios ip theft iphone ir itunes encrypted backups jailbreak jeddah jessica hyde joe sylve journals json jump lists kali kape kevin stokes kibana knowledgec korman labs lance mueller last access last logon lateral movement leanpub libtsk libvshadow linux linux forensics linux-3g live systems lnk files log analysis log2timeline login logs london love notes lznt1 mac mac_apt macmini magnet magnet user summit magnet virtual summit mari degrazia mathias fuchs md viewer memorial day memory forensics metaspike mft mftecmd mhn microsoft milestones mimikatz missing features mlocate mobile devices mojave mount mtp multiboot usb mus mus 2019 mus2019 nccdc netanalysis netbios netflow new book new years eve new years resolutions nominations nosql notifications ntfs ntfsdisablelastaccessupdate nuc nw3c objectid offensive forensics office office 2016 office 365 oleg skilkin osx outlook outlook web access owa packetsled paladin pancake viewer path specification pdf perl persistence pfic plists posix powerforensics powerpoint powershell prefetch psexec py2exe pyewf pyinstaller python pytsk rallysecurity raw images rdp re-c re-creation testing reader project recipes recon recursive hashing recycle bin redteam regipy registry registry explorer registry recon regripper remote research reverse engineering rhel rootless runas sample images san diego SANS sans dfir summit sarah edwards saturday Saturday reading sbe sccm scrap files search server 2008 server 2008 r2 server 2012 server 2019 setmace setupapi sha1 shadowkit shadows shell items shellbags shimcache silv3rhorn skull canyon skype slow down smb solution solution saturday sop speed sponsors sqlite srum ssd stage 1 stories storport sunday funday swgde syscache system t2 takeout telemetry temporary files test kitchen thanksgiving threat intel timeline times timestamps timestomp timezone tool tool testing training transaction logs triage triforce truecrypt tsk tun naung tutorial typed paths typedpaths uac unc understanding unicorn unified logs unread updates usb usb detective usbstor user assist userassist usnjrnl validation vhd video video blog videopost vlive vmug vmware volatility vote vss web2.0 webcast webinar webmail weekend reading what are you missing what did they take what don't we know What I wish I knew whitfield windows windows 10 windows 2008 windows 7 windows forensics windows server winfe winfe lite winscp wmi write head xboot xfs xways yarp yogesh zimmerman zone.identifier

Daily Blog #199: Adventures with Paladin and Write Blocked devices

Hello Reader,
        I'm going to interrupt the current series to document what I found today before I forget to. I've been using Linux on and off since 1995 and in that time I've never encountered this issue I did today. I did some searching on Google to resolve my issue and found a lot of confused answers and then figured it out. So for the benefit of those future confused examiners trying to figure out why their external drive is mounting read only as a write protected device in Linux here is the solution.


Paladin is fast becoming one of my favorite Linux Live CD distributions. When it comes to dealing with Mac systems specifically Paladin is my go to distribution as they tend to have better driver support for newer chip sets, such as the new MacBook Air. I was testing Paladin, a Thunderbolt external drive and a newer model MacMini to determine if the driver support was there as well as to test Thunderbolt support under Paladin.

When the MacMini first successfully booted off the Paladin Boot CD I went straight to see if the 3TB Seagate Backup Plus Thunderbolt drive I connected was recognized. I was happy to see that /dev/sdb was in fact my Thunderbolt drive and there appeared to be no issues. It was time to mount the Thunderbolt drive and do some transfer rate tests to see if its would be a better/faster acquisition option.


Once I attempted to mount the drive I received the following error from mount:
mount: block device /dev/sdb2 is write-protected, mounting read-only
Now I knew the block device was not actually write protected, and to make sure there was not some special Paladin feature I wasn't aware of in this distribution I attempted to mount the partition read/write within Paladin Toolkit. The Paladin Toolkit also failed to mount the volume read/write and instead falls back to a read only volume. So I here I am with a read only 3TB thunderbolt drive that I cannot write to and cannot test.

At this point I turned to Google and found a series of posts with people incorrectly blaming the lack of the newest ntfs-3g driver for the issue. The Thunderbolt drive I purchased was formatted hfs+ so I was quite certain that the ntfs-3g driver was not the issue and the hfs+ driver for Linux does not use fuse so I was sure that wasn't at issue either. Attempting to mount with -o force, remounting and other combinations of option all failed to override the read only behavior.


It was then that I saw someone mention fsck to check the disk and I remembered that many drive vendors clone an image on to disks in the factory. In this process many drive manufacturers leave the file system in a 'dirty' state meaning the last transaction was left unfinished in the journal for the filesystem. I wasn't used to the idea that a 'dirty' filesystem wouldn't mount with -o force passed in, the ntfs-3g driver for instance will mount a dirty ntfs filesystem with force or atleast used to. So I checked the status of the partition with fsck.hfsplus -q and sure enough it came back dirty.

I then ran fsck.hfsplus against /dev/sdb2, it fixed the state and then magically it mounted read/write again and I was able to finish my test and go to the client site to acquire a MacMini. I'm still not getting the transfer rates I expected, but it was still better than USB2. 

So if you find yourself with a partition that won't mount read/write in Linux, check the partition with fsck and you might find a dirty volume. This to me is a new behavior with the file system driver respecting the journal state of a volume, if anyone knows how long this has been true I'd be curious to know!

Post a Comment


Author Name

Contact Form


Email *

Message *

Powered by Blogger.