LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-09-2017, 03:00 PM   #1
Azhar.iq
LQ Newbie
 
Registered: Jul 2012
Posts: 27

Rep: Reputation: Disabled
How can i use the remaining space in bootable disk?


Hello everyone,

I recently installed a new Linux based OS on my laptop by making a bootable disk. Since i didnot had any memory sticks with me so i used a 200 GB external harddisk as bootable disk to install.

After successful installation, when i connect my external harddisk (bootable hd) to my laptop, i am not able to use it for storage. Only solution that i have found is to format it and then use it as external storage.

Is there any way i could use my external harddisk for storage without formatting it???
 
Old 01-09-2017, 03:12 PM   #2
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
For clarification, are you saying you used an external hdd to make a live usb from which to install an OS on your laptop and you are trying to use the unused space on the external hdd for storage without killing your live usb installation?
If not, why don't you want to format the external hdd?
 
Old 01-09-2017, 03:14 PM   #3
Azhar.iq
LQ Newbie
 
Registered: Jul 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
Just out of curiosity. I would like to retain my live usb and use the remaining space for storage, if its possible.
 
Old 01-09-2017, 03:22 PM   #4
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
I would google search for "live usb with persistence". Should get you going in the right direction. There are many tutorials
 
Old 01-09-2017, 03:30 PM   #5
Azhar.iq
LQ Newbie
 
Registered: Jul 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
But that would mean i am using Live Usb and storing data (if i understood that correctly). What i want (if possible) is to use my external hdd which has a bootable image copied to it, to be used as external storage device (all the while retaining the external hdd ability to be a bootable media).
 
Old 01-09-2017, 03:44 PM   #6
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
Yes, I understand what you're saying. I have done this before only it was on a usb flashdrive rather than hdd. I was able to boot from the usb as well as plug the usb into an already running system and mount the persistent partition as just a regular storage partition and copy files to/from it.
 
1 members found this post helpful.
Old 01-09-2017, 03:51 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Azhar.iq View Post
Since i didnot had any memory sticks with me so i used a 200 GB external harddisk as bootable disk to install.

After successful installation, when i connect my external harddisk (bootable hd) to my laptop, i am not able to use it for storage. Only solution that i have found is to format it and then use it as external storage.

Is there any way i could use my external harddisk for storage without formatting it???
no.
you explained it well, so the answer is simple:
NO.
 
Old 01-09-2017, 03:51 PM   #8
dolphin_oracle
MX Linux
 
Registered: Dec 2013
Posts: 402

Rep: Reputation: Disabled
how did you make your hard drive into a bootable image? dd?
 
Old 01-09-2017, 03:54 PM   #9
Azhar.iq
LQ Newbie
 
Registered: Jul 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dolphin_oracle View Post
how did you make your hard drive into a bootable image? dd?
YES
 
Old 01-09-2017, 03:57 PM   #10
dolphin_oracle
MX Linux
 
Registered: Dec 2013
Posts: 402

Rep: Reputation: Disabled
Quote:
Originally Posted by Azhar.iq View Post
YES

Ok, so what you did was take your large hard drive and turn the entire thing into a read-only filesystem, of whatever size the iso was that you used.

tools like unetbootin or the live-usb-maker tool in mx/antiX (or other similar tools) deconstruct the iso and install onto media in a way that allows the space to be written to again.
 
1 members found this post helpful.
Old 01-09-2017, 04:01 PM   #11
Azhar.iq
LQ Newbie
 
Registered: Jul 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dolphin_oracle View Post
Ok, so what you did was take your large hard drive and turn the entire thing into a read-only filesystem, of whatever size the iso was that you used.

tools like unetbootin or the live-usb-maker tool in mx/antiX (or other similar tools) deconstruct the iso and install onto media in a way that allows the space to be written to again.
Thanks, will try.
 
Old 01-09-2017, 06:29 PM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
It would have been a lot simpler, if you wanted to use additional space on the drive for storage, to install Grub2 on the external and create a grub.cfg file manually from the many examples available. You could then simply copy the iso (or multiple iso's) to that partition and boot it/them from Grub leaving the rest of the drive to be partitioned as you wanted.
 
1 members found this post helpful.
Old 01-10-2017, 06:04 PM   #13
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Azhar.iq View Post
Hello everyone,

I recently installed a new Linux based OS on my laptop by making a bootable disk. Since i didnot had any memory sticks with me so i used a 200 GB external harddisk as bootable disk to install.

After successful installation, when i connect my external harddisk (bootable hd) to my laptop, i am not able to use it for storage. Only solution that i have found is to format it and then use it as external storage.

Is there any way i could use my external harddisk for storage without formatting it???
when I do this to a USB Stick. if you open up Gparted on that drive you'll see that if you used DD to create the boot sick then it parted it out. Leaving this unused room that is apart from the dd OS into it. I take that then make it into a partiton then use it to whatever I want. here is a SD Card I did this with.


Code:
mmcblk0     179:0    0  14.5G  0 disk 
├─mmcblk0p2 179:2    0   1.4M  0 part 
└─mmcblk0p1 179:1    0  14.5G  0 part [SWAP]
it is still a bootable SD Card when I need it, and a SWAP drive too two things in one.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_SDCard-2017-01-10_18-04-26.png
Views:	14
Size:	43.1 KB
ID:	23956  

Last edited by BW-userx; 01-10-2017 at 06:16 PM.
 
  


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
[SOLVED] this comp has only 340 MB disk space remaining ( output form bleachbit) baloon68 Ubuntu 5 09-17-2012 02:04 PM
Can I fill remaining space with zeros on DVD Sed_Awk Linux - Newbie 2 12-13-2011 11:37 AM
vfat; drive space remaining itzfritz Linux - General 1 11-13-2004 08:14 AM
Remaining space on harddisk WiWa Linux - General 4 10-19-2003 09:20 AM
samba / xp / remaining space bobio Linux - Networking 0 02-03-2002 09:37 AM

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

All times are GMT -5. The time now is 04:00 AM.

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