LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 04-07-2015, 12:28 PM   #1
Haines
LQ Newbie
 
Registered: Mar 2014
Posts: 18

Rep: Reputation: Disabled
Problem partitioning a VirtualBox disk


I'm running virtualBox under Debian Wheezy and want to use it to install Slackware in it. The machine has two hard disks, but the booted one is /dev/sdb and this where I want to install Slackware.

In VM VirtualBox Manager I have a Slackware drive. I enabled PAE for my CPU. In the VM Storage Tree is Slackware.vdi drive and the disk is slackware-14.1-install-d1.iso. In the VM Manager Slackware is
initially displayed as Powered Off and so I click Start and it powers on. This seems to start a Slackware installation routine in a terminal. I boot the installation with boot: ENT. I log in with "root". It looks like I'm now working with: "scsi 3:0:0:0 CD/ROM VBOX..."

I'm told

- mdadm: no arrays found in config file or automacially
- Reading all physical volumes.
- This may take a while
- No volume groups found

Not sure of the implications of this, but I suspect it can be ignored. I'm next asked to provide a keyboard map. The problem arises when I next try to use cfdisk or fdisk to partition a virtual drive from the root@slackware:/# command prompt.

With cfdisk for /dev/sdb, but I get: "FATAL ERROR: Cannot open disk drive". I try fdisk and get "fdisk.bin: unable to open /dev/sdb: no such file or directory". In a terminal I have no trouble dispaying the /dev/sdb partition table with cfdisk.

I assume this partition should be ext3, primary and bootable and perhaps 50 Gb. I assume that (given that this machine is only a sandbox in which I can play and I've got 16 Gb RAM in it) I don't really need to create a swap partition.

I'm told to use pkgtool to mount my partition(s) under /mnt. Pkgtool sounds like Slackware's package manager rather than a command such as mount. In any case, I have to create the Slackware partition
first.
 
Old 04-07-2015, 12:51 PM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Have you read the VirtualBox documentation and created a virtual disk for the install? When you created the virtual machine which operating system did you tell it to create one for?
VMs are great but they are different to dual-boot and the like and the concepts need a bit of thought. Apologies if you know that, in which case are you booting from the .iso or the CD or DVD image, how much space did you gove to the virtual drive and how much RAM did you give the VM?
 
Old 04-07-2015, 02:34 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,064

Rep: Reputation: Disabled
In the virtual machine the virtual hard disk you prepared (aka Slackware.vdi) is known as /dev/sda, not /dev/sdb. Viewed from Debian, Slackware.vdi is just a file, not a disk.

Also, bear in mind that installed through VirtualBox Slackware will stay in this virtual hard disk and you will have to start VirtualBox first from Debian to start and use Slackware. Is that really what you want, or would you prefer a dual boot?

Last edited by Didier Spaier; 04-07-2015 at 04:00 PM.
 
1 members found this post helpful.
Old 04-08-2015, 12:21 PM   #4
Haines
LQ Newbie
 
Registered: Mar 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
Thanks 273 and Didier. You have moved me past the hurdle.

In answer to informational questions, I told VirtualBox to install for Linux, Other. At this point I'm installing Slackware 14.1 installation disk 1 ISO. I gave it the default 8 Mb disk space and 512 Mb RAM.

When I run cfdisk on /dev/sda instead of the physical disk sdb, cfdisk operates correctly. I create a 1 Gb Linux (83) and 500 Mb swap (82) partition and write to disk. However, when I do:

root@slackware:/# mount -t vboxfs /dev/sda1 /mnt

I'm told vboxfs is an unrecognized file system. This is whether I have cfdisk define the partion type as Linux (83) or as VMWare VMFS (FB). But mount still returns the error. I found nothing in the manual that addresses the issue of what the file system should be.
 
Old 04-08-2015, 12:38 PM   #5
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
The file system within the virtual machine is not virtual to the Slackware. Installer.
In essence, once you set up that virtual machine you follow the standard Slackware (or any other distro or OS) install procedure in the VirtualBox window. I think you still need to make that leap of understanding. Sorry if that sounds a little condescending as I don't mean it at all -- I know I misunderstood at first.
 
Old 04-08-2015, 12:48 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,064

Rep: Reputation: Disabled
Why set the type as vboxfs while you did format /dev/sda1 as of type linux?

The right command would be just:
Code:
mount /dev/sda1 /mnt
But this will fail anyway because you did set the partition type but not yet (I guess) put a filesystem in it.

So just type "setup" and let the Slackware installer do all that for you. It will ask you which partition you want to use as installation "target" (and propose you /dev/sda1 that you will accept) then which filesystem you want (the default ext4 is good enough).

Also, I hope that you meant 8GB for /dev/sda1, not 8Mb. Anyway if you really want to use Slackware I suggest that you set it to at least 10 GB to be able to store your data and add third party software.

Finally, I suggest that you do some reading before installing, so go to SlackDocs now.

PS the mount command with vboxfs is for a shared folder, e.g. containing files in your Debian system that you would like to access from your Slackware system in the virtual machine. You will need to have completed the installation of Slackware in that virtual machine to be able to use this feature: do not do that from the installer, as it's just a tentative system that live in RAM till you reboot or shutdown the machine, then disappears.

And, from your installed Slackware system, you won't be mounting a partition (as is the case with an usual mount command) but somehow "remount" a Debian's folder in Slackware when using shared folders.

I hope I did shed some light, but else feel free to ask more questions.

Last edited by Didier Spaier; 04-09-2015 at 10:37 AM. Reason: PS added.
 
1 members found this post helpful.
  


Reply

Tags
partitioning, slackware 14.1, virtual box



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
Problem partitioning external usb hard disk rng Linux - General 1 04-01-2012 02:13 AM
Problem partitioning disk with RHEL5 and Vista (DELL) deel2 Linux - Laptop and Netbook 5 08-08-2008 02:40 AM
facing problem on disk partitioning setup shahg_shahg Red Hat 3 12-18-2005 06:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 11:05 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