my usb is screwed, can u help me out lol

borny

New Member
Credits
60
(note that I'm kinda of a newb on Linux, so pls don't judge me)

Hello, I have recently just tried to manually make a bootable USB through Kali Linux, whilst doing it, I screwed alot of things up and somehow fixed them later, tho I quickly gave up on making the bootable USB through Kali Linux and decided to just make it through my Windows 7 laptop on Rufus. So I tried to copy the ISO file from my Downloads into my USB which I formatted, but when I tried to unmount it, the USB just dissapears, I then went onto this page and copy and pasted the code "modprobe usb-storage" into my terminal! The USB showed up again, but when I tried to copy the ISO file into it, it shows me this error:

"Error opening file “/media/borny/en_windows_7_ultimate_x86_dvd.iso”: Permission denied"

Ofc I tried to change the permission of the file but nothing seemed to work!
Later I went on "gparted" where I tried to do something with it to make it work, but when I tried to switch between partitions, the only visible partition was the "sda" partition.
I went in terminal and typed in "fdisk -l", the partition "sdb1" wasn't there either.

Please help me out somehow!
 


arochester

Moderator
Staff member
Gold Supporter
Credits
2,109
I find it difficult to work out what your problem is from your post.

What ISO are you trying to put on the stick? Are you trying to put Windows on your USB stick?
 

gvisoc

Member
Credits
938
Check the ownership, more than the permissions, of the mount you are trying to open the ISO from.

By the looks of it, you're trying to burn the ISO directly from a mounted directory (are you using a VM, and maybe mounting a shared folder?). If you mounted all using sudo, it will belong to the root user. Either run the command to flash the drive with sudo (are you trying to use dd?), or change the ownership of the ISO file and the containing directoru to you, using chown, and then make sure that you can read it with chmod.

Both chown and chmod have plenty of documentation in the manpages or all around the web (example here).
 

jglen490

Well-Known Member
Credits
3,076
First, you are describing COPYing an ISO to a USB device and expecting it to be bootable. That won't work, no matter what OS you are using. You have two choices:

1) Burn the ISO to the USB device. Rufus in Windows. Etcher or dd in Linux.
2) Continue to pull your hair out.

1 will work, 2 will work until you have no hair.
 

wizardfromoz

Super Moderator
Staff member
Gold Supporter
Credits
7,334
welcome @borny :)

First format the stick to FAT32 and then follow the advice above.

Etcher is cross-platform and works under Windows.

Cheers

Chris Turner
wizardfromoz

BTW don't pull your hair out, and also read this

https://linux.oneandoneis2.org/LNW.htm
 

borny

New Member
Credits
60
Check the ownership, more than the permissions, of the mount you are trying to open the ISO from.

By the looks of it, you're trying to burn the ISO directly from a mounted directory (are you using a VM, and maybe mounting a shared folder?). If you mounted all using sudo, it will belong to the root user. Either run the command to flash the drive with sudo (are you trying to use dd?), or change the ownership of the ISO file and the containing directoru to you, using chown, and then make sure that you can read it with chmod.

Both chown and chmod have plenty of documentation in the manpages or all around the web (example here).
yeah I think I pretty much did everything in root by the fact that I had to set the mount point in the "/mnt/iso" directory as I looked it up online, I unmounted it and later deleted the folder "iso" because I wanted to clean it up. Before this even happened, my goal was to simply copy the ISOs system files onto the mounted USB, I also followed this tutorial on how to do it. Gave up halfway though. Now my goal is to only restore the USB and just put my ISO on it and do everything on my Windows 7 laptop with "Rufus".
 

borny

New Member
Credits
60
Check the ownership, more than the permissions, of the mount you are trying to open the ISO from.

By the looks of it, you're trying to burn the ISO directly from a mounted directory (are you using a VM, and maybe mounting a shared folder?). If you mounted all using sudo, it will belong to the root user. Either run the command to flash the drive with sudo (are you trying to use dd?), or change the ownership of the ISO file and the containing directoru to you, using chown, and then make sure that you can read it with chmod.

Both chown and chmod have plenty of documentation in the manpages or all around the web (example here).
Ok so the article helped me out ALOT! I did the following command:

[email protected]:~$ sudo chown borny /media/borny/BORNYS_USB/
[sudo] password for borny:
[email protected]:~$


And it seems that when I tried to copy the ISO onto the USB, it works perfectly!
I'm gonna remove the ISO from the USB and format it into a FAT32 type
 

borny

New Member
Credits
60
Ok so update, went onto gparted, tried to unmount it and it shows me somekind of error that the target is busy?
 

gvisoc

Member
Credits
938
Ok so update, went onto gparted, tried to unmount it and it shows me somekind of error that the target is busy?
Just check that you don’t have any shell in the mounted directory, or any open file from that mount.
 

borny

New Member
Credits
60
Hey, sorry for not being online, had to study hard for my last days of school! Anyways here's the result:

(yes it did end up it was all because I had an open file from the mount lol)
and I followed these instructions on how to completely format it
and it ended up going pretty smoothly, so I'm just gonna copy my windows 7 iso onto my usb and just yeah do it all with Rufus on my windows laptop
 


Members online

No members online now.

Latest posts

Top